:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #14161c;
  --text-dim: #5b6172;
  --accent: #4f8cff;
  --accent-2: #7c5cff;
  --border: #e4e6ec;
  --max-w: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-alt: #12151c;
    --text: #e8eaf0;
    --text-dim: #9aa1b2;
    --border: #232733;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11, 13, 18, 0.85); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  height: 28px;
  width: auto;
  display: block;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
}

.logo .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a:not(.btn) {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }

.btn-small {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-small:hover { border-color: var(--accent); }

/* Hero */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.subhead {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Sections */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p { color: var(--text-dim); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #fff;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* CTA section */
.cta { text-align: center; }
.cta .section-lead { margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 720px) {
  nav { gap: 16px; }
  nav a:not(.btn) { display: none; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
}

