/* ============================================================
   FlowClick - Site Design System (v2)
   ============================================================ */
:root {
  --fc-blue: #2563EB;
  --fc-blue-dark: #1D4ED8;
  --fc-blue-light: #DBEAFE;
  --fc-indigo: #4F46E5;
  --fc-violet: #7C3AED;
  --fc-amber: #F59E0B;
  --fc-amber-light: #FEF3C7;
  --fc-emerald: #10B981;
  --fc-emerald-light: #D1FAE5;
  --fc-rose: #F43F5E;
  --fc-slate-900: #0F172A;
  --fc-slate-800: #1E293B;
  --fc-slate-700: #334155;
  --fc-slate-600: #475569;
  --fc-slate-500: #64748B;
  --fc-slate-400: #94A3B8;
  --fc-slate-300: #CBD5E1;
  --fc-slate-200: #E2E8F0;
  --fc-slate-100: #F1F5F9;
  --fc-slate-50: #F8FAFC;
  --fc-white: #FFFFFF;
  --grad-brand: linear-gradient(135deg, #2563EB 0%, #4F46E5 55%, #7C3AED 100%);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,0.12);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--fc-slate-800);
  background: var(--fc-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; color: var(--fc-slate-900); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--fc-slate-500); font-size: 1.0625rem; }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { font-size: 1.25rem; font-weight: 700; color: var(--fc-slate-900); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--fc-slate-500);
  font-size: 0.9375rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--fc-slate-900); }
.nav-links a.active { color: var(--fc-blue); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--fc-slate-700); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 0.5625rem;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none; line-height: 1.3;
}
.btn-primary { background: var(--fc-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--fc-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--fc-white); color: var(--fc-slate-800); border: 1px solid var(--fc-slate-200); }
.btn-secondary:hover { border-color: var(--fc-slate-400); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fc-slate-600); }
.btn-ghost:hover { color: var(--fc-slate-900); }
.btn-light { background: #fff; color: var(--fc-blue-dark); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.0325rem; border-radius: 0.7rem; }

/* Layout helpers */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-head { max-width: 720px; margin: 0 auto 3.25rem; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.125rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fc-blue); background: var(--fc-blue-light);
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.eyebrow.amber { color: #B45309; background: var(--fc-amber-light); }
.eyebrow.emerald { color: #047857; background: var(--fc-emerald-light); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 9.5rem 0 5.5rem;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(37,99,235,0.10), transparent 65%),
    radial-gradient(800px 420px at 12% 4%, rgba(124,58,237,0.07), transparent 60%),
    var(--fc-slate-50);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero-sub { font-size: 1.2rem; color: var(--fc-slate-600); max-width: 560px; margin-bottom: 2.1rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.875rem; color: var(--fc-slate-400); }

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--fc-white); border: 1px solid var(--fc-slate-200);
  border-radius: var(--radius-lg); padding: 1.9rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 1.85rem; font-weight: 800; color: var(--fc-slate-900); letter-spacing: -0.02em; }
.stat span { font-size: 0.875rem; color: var(--fc-slate-500); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--fc-white); border: 1px solid var(--fc-slate-200);
  border-radius: var(--radius-lg); padding: 1.9rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--fc-blue-light); }
.card h3 { margin: 1.1rem 0 0.6rem; }
.card p { font-size: 0.975rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--fc-blue-light); color: var(--fc-blue);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.amber { background: var(--fc-amber-light); color: #B45309; }
.card-icon.emerald { background: var(--fc-emerald-light); color: #047857; }
.card-icon.violet { background: #EDE9FE; color: var(--fc-violet); }

/* Feature checklist */
.checks { list-style: none; margin-top: 1.1rem; }
.checks li {
  position: relative; padding-left: 1.85rem; margin-bottom: 0.6rem;
  color: var(--fc-slate-600); font-size: 0.975rem;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.32rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--fc-emerald-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 0.68rem; background-repeat: no-repeat; background-position: center;
}

/* Alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 3.4rem 0; }
.feature-row + .feature-row { border-top: 1px solid var(--fc-slate-100); }
.feature-row h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0.85rem 0 0.9rem; }
.feature-row.flip > .feature-visual { order: -1; }
.feature-visual {
  background: var(--fc-slate-50); border: 1px solid var(--fc-slate-200);
  border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm);
}

/* Mock UI bits */
.mock-window {
  background: #fff; border: 1px solid var(--fc-slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.7rem 1rem; background: var(--fc-slate-100);
  border-bottom: 1px solid var(--fc-slate-200);
  font-size: 0.8rem; font-weight: 600; color: var(--fc-slate-500);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fc-slate-300); }
.mock-dot.r { background: #FCA5A5; } .mock-dot.y { background: #FCD34D; } .mock-dot.g { background: #86EFAC; }
.mock-body { padding: 1.25rem; }
.flow-step {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--fc-slate-50); border: 1px solid var(--fc-slate-200);
  border-radius: 0.6rem; padding: 0.7rem 0.95rem; margin-bottom: 0.55rem;
  font-size: 0.9rem; font-weight: 600; color: var(--fc-slate-700);
}
.flow-step .chip {
  margin-left: auto; font-size: 0.7rem; font-weight: 700;
  padding: 0.16rem 0.55rem; border-radius: 999px;
  background: var(--fc-emerald-light); color: #047857;
}
.flow-step .chip.wait { background: var(--fc-amber-light); color: #B45309; }
.flow-arrow { text-align: center; color: var(--fc-slate-300); font-size: 0.95rem; line-height: 1; margin: 0.1rem 0 0.55rem; }

/* AI positioning trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.trio-card {
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  background: var(--fc-white); border: 1px solid var(--fc-slate-200);
}
.trio-card .kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fc-slate-400); }
.trio-card h3 { margin: 0.5rem 0 0.7rem; font-size: 1.35rem; }
.trio-card.hero-card {
  background: var(--grad-brand); border: none; color: #fff;
  box-shadow: 0 16px 40px rgba(37,99,235,0.35);
}
.trio-card.hero-card .kicker { color: rgba(255,255,255,0.7); }
.trio-card.hero-card h3 { color: #fff; }
.trio-card.hero-card p { color: rgba(255,255,255,0.88); }

/* Dark layered diagram */
.dark-section { background: var(--fc-slate-900); }
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section .section-head p { color: var(--fc-slate-400); }
.layer {
  border-radius: var(--radius-lg); padding: 1.6rem 2rem;
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.layer-label {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  min-width: 175px;
}
.layer-body { flex: 1; min-width: 260px; }
.layer-body b { display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.layer-body span { font-size: 0.93rem; }
.layer.intelligence { background: rgba(124,58,237,0.14); border: 1px solid rgba(124,58,237,0.4); }
.layer.intelligence .layer-label { color: #C4B5FD; }
.layer.intelligence b { color: #EDE9FE; } .layer.intelligence span { color: #C4B5FDcc; color: rgba(196,181,253,0.85); }
.layer.orchestration { background: rgba(37,99,235,0.18); border: 1px solid rgba(59,130,246,0.55); box-shadow: 0 0 48px rgba(37,99,235,0.25); }
.layer.orchestration .layer-label { color: #93C5FD; }
.layer.orchestration b { color: #fff; } .layer.orchestration span { color: rgba(191,219,254,0.9); }
.layer.systems { background: rgba(148,163,184,0.10); border: 1px solid rgba(148,163,184,0.3); }
.layer.systems .layer-label { color: var(--fc-slate-400); }
.layer.systems b { color: var(--fc-slate-200); } .layer.systems span { color: var(--fc-slate-400); }
.layer-flow {
  display: flex; justify-content: space-between; max-width: 680px; margin: 0.45rem auto;
  font-size: 0.8rem; color: var(--fc-slate-400); padding: 0 1rem;
}

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--fc-slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.85rem 1.2rem; text-align: left; border-bottom: 1px solid var(--fc-slate-100); }
table.compare thead th { background: var(--fc-slate-50); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fc-slate-500); }
table.compare th.fc-col, table.compare td.fc-col { background: rgba(37,99,235,0.05); }
table.compare thead th.fc-col { color: var(--fc-blue); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td { color: var(--fc-slate-600); }
.yes { color: #047857; font-weight: 700; }
.no { color: var(--fc-slate-400); }

/* Badges / compliance strip */
.badge-strip { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--fc-white); border: 1px solid var(--fc-slate-200);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--fc-slate-700);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--fc-emerald); }

/* Testimonials */
.quote-card { background: var(--fc-slate-50); border: 1px solid var(--fc-slate-200); border-radius: var(--radius-lg); padding: 1.9rem; }
.quote-card p { font-size: 1rem; color: var(--fc-slate-700); font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.3rem; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
}
.quote-who b { display: block; font-size: 0.94rem; color: var(--fc-slate-900); }
.quote-who span { font-size: 0.83rem; color: var(--fc-slate-500); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--fc-slate-200); border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--fc-blue); box-shadow: 0 16px 40px rgba(37,99,235,0.16); position: relative; }
.price-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fc-blue); position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--fc-blue-light); padding: 0.25rem 0.9rem; border-radius: 999px; }
.price-card h3 { font-size: 1.2rem; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--fc-slate-900); margin: 0.9rem 0 0.1rem; letter-spacing: -0.03em; }
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--fc-slate-400); }
.price-card .checks { flex: 1; margin: 1.2rem 0 1.6rem; }
.price-card .btn { width: 100%; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--fc-slate-200); border-radius: var(--radius); background: #fff; padding: 1.1rem 1.4rem; margin-bottom: 0.8rem; }
.faq summary { font-weight: 600; color: var(--fc-slate-800); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--fc-slate-400); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 0.7rem; font-size: 0.975rem; }

/* CTA band */
.cta-band { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 4rem 2.5rem; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 2rem; }

/* Footer */
.footer { background: var(--fc-slate-900); color: var(--fc-slate-400); padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.footer p { color: var(--fc-slate-400); font-size: 0.92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.9rem; }
.footer a { display: block; color: var(--fc-slate-400); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.55rem; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.5rem 0;
  border-top: 1px solid var(--fc-slate-800);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom a { display: inline; margin: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .feature-row, .grid-3, .trio, .price-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row.flip > .feature-visual { order: 0; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 7.5rem; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--fc-slate-200);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .layer { padding: 1.3rem 1.4rem; }
}
