/* ============================================================
   WooHub — landing page styles
   Bilingual (FA/EN · RTL/LTR) · light + dark · brand indigo/violet
   Built with logical properties so one sheet serves both directions.
   ============================================================ */

/* ---- Fonts (Vazirmatn variable, latin + arabic subsets) ---- */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/vazirmatn:vf@latest/latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/vazirmatn:vf@latest/arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}

/* ---- Design tokens ---- */
:root {
  /* light is the base; dark overrides below */
  --bg: #f6f7fc;
  --bg-2: #eceffa;
  --surface: #ffffff;
  --surface-2: #f3f4fc;
  --surface-3: #eaecf7;
  --border: #e5e7f3;
  --border-strong: #d3d7ec;
  --text: #12162e;
  --text-2: #39406a;
  --muted: #6a7199;
  --faint: #99a0c2;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-3: #6366f1;
  --on-accent: #ffffff;
  --accent-soft: rgba(79, 70, 229, 0.10);
  --accent-line: rgba(79, 70, 229, 0.22);
  --live: #0a9d6c;
  --live-soft: rgba(10, 157, 108, 0.13);
  --glow: rgba(99, 102, 241, 0.28);
  --shadow-sm: 0 1px 2px rgba(18, 22, 46, 0.05), 0 4px 14px rgba(18, 22, 46, 0.06);
  --shadow-lg: 0 10px 30px rgba(18, 22, 46, 0.10), 0 30px 70px rgba(18, 22, 46, 0.10);
  --shadow-glow: 0 20px 60px -18px var(--glow);

  --grid-line: rgba(79, 70, 229, 0.06);
  --hero-fade: #f6f7fc;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --maxw: 1160px;
  --font: "Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060a15;
    --bg-2: #0a1022;
    --surface: #0e1730;
    --surface-2: #131d3c;
    --surface-3: #182348;
    --border: #212c50;
    --border-strong: #2c3868;
    --text: #eef1fb;
    --text-2: #c4cae6;
    --muted: #8b93bb;
    --faint: #5e6690;
    --accent: #818cf8;
    --accent-2: #a78bfa;
    --accent-3: #6366f1;
    --on-accent: #0a0f22;
    --accent-soft: rgba(129, 140, 248, 0.14);
    --accent-line: rgba(129, 140, 248, 0.30);
    --live: #34d399;
    --live-soft: rgba(52, 211, 153, 0.15);
    --glow: rgba(129, 140, 248, 0.42);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5), 0 40px 90px rgba(0, 0, 0, 0.45);
    --grid-line: rgba(129, 140, 248, 0.08);
    --hero-fade: #060a15;
  }
}

/* explicit theme overrides win over the media query in both directions */
:root[data-theme="light"] {
  --bg: #f6f7fc; --bg-2: #eceffa; --surface: #ffffff; --surface-2: #f3f4fc; --surface-3: #eaecf7;
  --border: #e5e7f3; --border-strong: #d3d7ec; --text: #12162e; --text-2: #39406a;
  --muted: #6a7199; --faint: #99a0c2; --accent: #4f46e5; --accent-2: #7c3aed; --accent-3: #6366f1;
  --on-accent: #ffffff; --accent-soft: rgba(79,70,229,0.10); --accent-line: rgba(79,70,229,0.22);
  --live: #0a9d6c; --live-soft: rgba(10,157,108,0.13); --glow: rgba(99,102,241,0.28);
  --shadow-sm: 0 1px 2px rgba(18,22,46,0.05), 0 4px 14px rgba(18,22,46,0.06);
  --shadow-lg: 0 10px 30px rgba(18,22,46,0.10), 0 30px 70px rgba(18,22,46,0.10);
  --grid-line: rgba(79,70,229,0.06); --hero-fade: #f6f7fc;
}
:root[data-theme="dark"] {
  --bg: #060a15; --bg-2: #0a1022; --surface: #0e1730; --surface-2: #131d3c; --surface-3: #182348;
  --border: #212c50; --border-strong: #2c3868; --text: #eef1fb; --text-2: #c4cae6;
  --muted: #8b93bb; --faint: #5e6690; --accent: #818cf8; --accent-2: #a78bfa; --accent-3: #6366f1;
  --on-accent: #0a0f22; --accent-soft: rgba(129,140,248,0.14); --accent-line: rgba(129,140,248,0.30);
  --live: #34d399; --live-soft: rgba(52,211,153,0.15); --glow: rgba(129,140,248,0.42);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 6px 20px rgba(0,0,0,0.30);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.5), 0 40px 90px rgba(0,0,0,0.45);
  --grid-line: rgba(129,140,248,0.08); --hero-fade: #060a15;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* section rhythm */
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 128px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); text-transform: none;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-block: 18px 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.gradient-text {
  background: linear-gradient(115deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ---- */
.btn {
  --pad-i: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  padding: 13px var(--pad-i); border-radius: 13px; border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: var(--on-accent);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn-lg { --pad-i: 28px; font-size: 16px; padding-block: 16px; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none; position: relative;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,0.3);
  display: grid; place-items: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand b { font-weight: 800; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--text-2); padding: 8px 14px; border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-btn { width: auto; padding-inline: 14px; letter-spacing: 0.02em; }
.theme-ico-dark { display: none; }
:root[data-theme="dark"] .theme-ico-dark { display: block; }
:root[data-theme="dark"] .theme-ico-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-dark { display: block; }
  :root:not([data-theme="light"]) .theme-ico-light { display: none; }
}
.nav-toggle { display: none; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(60px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 40%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 40%, transparent 78%);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.hero-blob.b1 { width: 460px; height: 460px; inset-block-start: -140px; inset-inline-end: -80px; background: radial-gradient(circle, var(--accent-2), transparent 65%); }
.hero-blob.b2 { width: 420px; height: 420px; inset-block-start: 120px; inset-inline-start: -120px; background: radial-gradient(circle, var(--accent), transparent 65%); }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); font-weight: 850; letter-spacing: -0.025em; margin-block: 22px 20px; }
.hero h1 .line { display: block; }
.hero-sub { font-size: clamp(16px, 2.2vw, 19.5px); color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 30px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); list-style: none; }
.hero-trust svg { width: 17px; height: 17px; color: var(--live); flex: none; }
.hero-trust ul { display: contents; }

/* Hero visual: canvas hub + floating dashboard card */
.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
#hubCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.float-card {
  position: relative; z-index: 3; width: min(340px, 84%);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 16px; overflow: hidden;
}
.fc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fc-title { font-size: 13.5px; font-weight: 700; }
.fc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--live); background: var(--live-soft); padding: 3px 9px; border-radius: 999px; }
.fc-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.fc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fc-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 13px; }
.fc-stat .k { font-size: 11px; color: var(--muted); }
.fc-stat .v { font-size: 21px; font-weight: 800; margin-top: 2px; }
.fc-stat .v.live { color: var(--live); }
.fc-feed { display: flex; flex-direction: column; gap: 7px; }
.fc-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.fc-row .badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; flex: none; }
.fc-row .who { font-weight: 600; }
.fc-row .amt { margin-inline-start: auto; font-weight: 700; color: var(--live); font-variant-numeric: tabular-nums; }
.fc-row.enter { animation: rowin 0.5s cubic-bezier(0.16,1,0.3,1); }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- Marquee / logos-ish trust band ---- */
.stats-band { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 34px; }
.stat { text-align: center; }
.stat .v { font-size: clamp(26px, 3.6vw, 38px); font-weight: 850; letter-spacing: -0.02em; }
.stat .v .gradient-text { font-weight: 850; }
.stat .k { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.stat + .stat { border-inline-start: 1px solid var(--border); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.step .n {
  counter-increment: step; position: absolute; inset-block-start: -18px; inset-inline-start: 26px;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px -8px var(--glow);
}
.step .n::before { content: counter(step, decimal); }
.step h3 { font-size: 19px; margin-block: 14px 9px; }
.step p { color: var(--muted); font-size: 14.5px; }
.step-connect { display: none; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity 0.25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.feature:hover::after { opacity: 1; }
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---- Showcase (product frame) ---- */
.showcase { position: relative; }
.showcase-frame {
  margin-top: 46px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.sc-topbar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.sc-dots { display: flex; gap: 7px; }
.sc-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display: block; }
.sc-dots i:nth-child(1){ background:#ff5f57; } .sc-dots i:nth-child(2){ background:#febc2e; } .sc-dots i:nth-child(3){ background:#28c840; }
.sc-url { margin-inline: auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); background: var(--surface-3); padding: 4px 14px; border-radius: 8px; direction: ltr; }
.sc-body { display: grid; grid-template-columns: 210px 1fr; min-height: 380px; }
.sc-side { border-inline-end: 1px solid var(--border); padding: 18px 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 5px; }
.sc-side .sb-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; margin-bottom: 14px; padding-inline: 8px; }
.sc-side .sb-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; } .sc-side .sb-brand .brand-mark svg{ width:16px;height:16px; }
.sc-nav { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.sc-nav svg { width: 17px; height: 17px; opacity: 0.8; }
.sc-nav.active { background: var(--accent-soft); color: var(--accent); }
.sc-main { padding: 22px; }
.sc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.sc-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 15px; }
.sc-card .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sc-card .v { font-size: 25px; font-weight: 800; margin-top: 6px; }
.sc-card .chip { font-size: 11px; font-weight: 700; color: var(--live); background: var(--live-soft); padding: 2px 7px; border-radius: 6px; }
.sc-chart { height: 128px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; }
.sc-bar { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 6px 6px 3px 3px; opacity: 0.9; min-height: 8%; }

/* ---- Personas ---- */
.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.persona {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.persona:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.persona .emoji { font-size: 30px; margin-bottom: 12px; }
.persona h3 { font-size: 18px; margin-bottom: 8px; }
.persona p { color: var(--muted); font-size: 14.5px; }

/* ---- Pricing ---- */
.price-toggle { display: inline-flex; align-items: center; gap: 4px; margin: 26px auto 0; padding: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.price-toggle button {
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted);
  border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease;
}
.price-toggle button.active { color: var(--on-accent); background: linear-gradient(120deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px -8px var(--glow); }
.price-toggle .save { font-size: 11.5px; color: var(--live); font-weight: 700; margin-inline-start: 4px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent); }
.plan.featured::before {
  content: attr(data-badge); position: absolute; inset-block-start: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px var(--glow);
}
:root[dir="ltr"] .plan.featured::before { transform: translateX(-50%); }
.plan .p-name { font-size: 16px; font-weight: 700; color: var(--accent); }
.plan .p-desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; min-height: 40px; }
.plan .p-price { display: flex; align-items: baseline; gap: 7px; margin-block: 16px 4px; flex-wrap: wrap; }
.plan .p-amount { font-size: 40px; font-weight: 850; letter-spacing: -0.02em; }
.plan .p-unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan .p-note { font-size: 12.5px; color: var(--faint); min-height: 18px; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li svg { width: 18px; height: 18px; color: var(--live); flex: none; margin-top: 2px; }
.plan .btn { width: 100%; margin-top: auto; }
.price-selfhost { text-align: center; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.price-selfhost a { color: var(--accent); font-weight: 700; border-bottom: 1px solid var(--accent-line); }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: start; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--text); cursor: pointer;
  background: transparent; border: 0; padding: 19px 22px; display: flex; align-items: center; gap: 14px; }
.faq-q .chev { margin-inline-start: auto; width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* ---- CTA band ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 68px);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 45%), radial-gradient(circle at 85% 80%, rgba(255,255,255,0.12), transparent 45%); }
.cta-inner > * { position: relative; z-index: 2; }
.cta-inner h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 520px; margin-inline: auto; margin-bottom: 28px; }
.cta-inner .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 14px 30px -12px rgba(0,0,0,0.4); }
.cta-inner .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(0,0,0,0.5); }
.cta-inner .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); box-shadow: none; }
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: #fff; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-block: 56px 30px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; padding-block: 5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fc-live .dot, .fc-row.enter { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 380px; order: 2; }
  .hero-copy { order: 1; max-width: none; text-align: center; margin-inline: auto; }
  .hero-sub { margin-inline: auto; } .hero-cta, .hero-trust { justify-content: center; }
  .steps, .features, .personas, .pricing { grid-template-columns: 1fr 1fr; }
  .sc-body { grid-template-columns: 1fr; } .sc-side { flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .steps, .features, .personas, .pricing, .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--border); padding-top: 18px; }
  .stats-grid { gap: 8px; }
  .plan.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sc-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); }
}

/* mobile menu (simple) */
.mobile-menu { display: none; position: fixed; inset: 70px 0 0; z-index: 55; background: var(--bg); padding: 22px 24px; flex-direction: column; gap: 6px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 17px; font-weight: 600; padding: 13px 8px; border-bottom: 1px solid var(--border); }
