:root {
  --bg: #ffffff;
  --bg-soft: #F8FAFC;
  --surface: #ffffff;
  --surface-2: #F1F5F9;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --accent: #2563EB;
  --text: #0F172A;
  --body: #475569;
  --muted: #64748B;
  --ok: #16A34A;
  --danger: #DC2626;
  --warn: #D97706;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--body);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  color: var(--body);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-soft);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 10px 18px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--bg);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--line-strong);
}

.btn-ghost {
  border-color: transparent;
  color: var(--primary);
  background: transparent;
  padding: 6px 0;
}

.btn-ghost:hover {
  color: var(--primary-hover);
  transform: none;
}

/* ── Page Hero ── */
main { overflow: clip; }

.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
}

.hero-grid:has(.hero-panel) {
  max-width: none;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(37,99,235,0.06);
  width: fit-content;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--text);
  font-weight: 800;
}

.hero-subtitle {
  color: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  max-width: 560px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-panel img {
  border-radius: 10px;
  margin-bottom: 10px;
}

.hero-panel p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--body);
  font-size: 1.02rem;
}

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards ── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(37,99,235,0.06);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.feature-list li {
  color: var(--body);
  font-size: 0.9rem;
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 9px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(37,99,235,0.06);
  width: fit-content;
}

/* ── Pricing ── */
.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 28px 24px;
  display: grid;
  gap: 12px;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price small {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Forms ── */
.form-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 14px; }

label {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 10px 12px;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ── CTA Band ── */
.cta-band {
  padding: 88px 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.6px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--body);
  font-size: 1.02rem;
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Callout ── */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 28px;
}

.callout h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.callout p { color: var(--body); }

/* ── KPI / Metrics ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  padding: 14px;
  text-align: center;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.kpi strong {
  font-size: 1.1rem;
  color: var(--text);
}

/* ── Flow ── */
.flow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 20px;
  overflow-x: auto;
}

.flow-track {
  min-width: 920px;
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  gap: 12px;
}

.node {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 140px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.note-panel {
  margin-top: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  color: var(--body);
}

/* ── Media Panel ── */
.media-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.media-head h3 { font-size: 0.95rem; color: var(--text); }

.media-body { position: relative; }

.media-body img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 10px;
}

.metric span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.metric strong { font-size: 0.95rem; color: var(--text); }

/* ── Footer ── */
.site-footer {
  padding: 48px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-title {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-list a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .hero-grid:has(.hero-panel) { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .footer-grid, .metric-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .media-body img { height: 280px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 5vw 12px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .nav-links.open { display: flex; }

  .header-actions .btn-ghost { display: none; }

  .grid-4, .grid-3, .footer-grid, .metric-grid, .kpi-grid { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .page-hero { padding: 64px 0 48px; }
}
