/* ====================================================================
   Salesiphy — Enterprise AI Sales Intelligence
   Design system + components
   ==================================================================== */

/* ---------- Tokens ---------- */
:root {
  --indigo: #6366f1;
  --indigo-600: #4f46e5;
  --cyan: #06b6d4;
  --violet: #8b5cf6;

  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --ink: #0b1220;
  --ink-2: #475069;
  --ink-3: #7a86a1;
  --line: #e6eaf2;
  --line-strong: #d6dcec;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 2px 8px rgba(11,18,32,.04);
  --shadow: 0 10px 30px rgba(15,23,42,.08), 0 2px 8px rgba(15,23,42,.05);
  --shadow-lg: 0 30px 70px rgba(15,23,42,.16), 0 8px 24px rgba(15,23,42,.10);
  --shadow-glow: 0 30px 80px rgba(99,102,241,.28);

  --grad: linear-gradient(120deg, var(--indigo) 0%, var(--violet) 45%, var(--cyan) 100%);
  --grad-soft: linear-gradient(120deg, rgba(99,102,241,.12), rgba(6,182,212,.12));

  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 72px;
}

[data-theme="dark"] {
  --bg: #070b16;
  --bg-alt: #0b1120;
  --surface: #0f1626;
  --surface-2: #141d33;
  --ink: #eaf0ff;
  --ink-2: #aebbd6;
  --ink-3: #7c89a8;
  --line: #1e293f;
  --line-strong: #2a3858;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 12px 36px rgba(0,0,0,.45);
  --shadow-lg: 0 36px 90px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
h1,h2,h3,h4,h5 { font-family: "Sora", "Inter", sans-serif; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; border-radius: 999px;
  padding: 12px 22px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, opacity .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(99,102,241,.5); }
.btn--ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--line-strong); }
.btn--glass {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .4s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 800; font-size: 1.24rem; }
.brand__mark { display: inline-grid; place-items: center; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(99,102,241,.45); }
.brand__name {
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #4f46e5 0%, #8b5cf6 45%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 10px rgba(99,102,241,.25));
  transition: filter .3s var(--ease);
}
.brand:hover .brand__name { filter: drop-shadow(0 2px 16px rgba(99,102,241,.45)); }
.footer .brand__name { background: linear-gradient(120deg, #818cf8 0%, #a78bfa 45%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); transition: .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: 0;
  background:
    radial-gradient(50% 50% at 20% 20%, rgba(99,102,241,.22), transparent 70%),
    radial-gradient(45% 45% at 85% 10%, rgba(6,182,212,.20), transparent 70%),
    radial-gradient(40% 40% at 60% 60%, rgba(139,92,246,.16), transparent 70%);
  filter: blur(8px);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; color: var(--indigo-600);
  background: var(--grad-soft); border: 1px solid var(--line);
}
[data-theme="dark"] .pill { color: #c7ccff; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 3px rgba(99,102,241,.25);} 50%{ box-shadow:0 0 0 7px rgba(99,102,241,0);} }

.hero__title { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; margin: 18px 0 18px; }
.hero__sub { font-size: 1.14rem; color: var(--ink-2); max-width: 540px; }
.hero__cta { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: .9rem; }
.hero__trust li { position: relative; padding-left: 18px; }
.hero__trust li::before { content: "✓"; position: absolute; left: 0; color: var(--indigo); font-weight: 700; }

/* ---------- Hero dashboard mockup ---------- */
.hero__visual { position: relative; }
.dash {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); position: relative;
  transform: perspective(1600px) rotateY(-12deg) rotateX(4deg);
  transition: transform .6s var(--ease);
  animation: floaty 7s ease-in-out infinite;
}
.hero__visual:hover .dash { transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); }
@keyframes floaty { 0%,100%{ transform: perspective(1600px) rotateY(-12deg) rotateX(4deg) translateY(0);} 50%{ transform: perspective(1600px) rotateY(-12deg) rotateX(4deg) translateY(-12px);} }

.dash__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.dash__dot { width: 11px; height: 11px; border-radius: 50%; }
.dash__dot--r{background:#ff5f57;} .dash__dot--y{background:#febc2e;} .dash__dot--g{background:#28c840;}
.dash__title { margin-left: 10px; font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.dash__body { display: grid; grid-template-columns: 46px 1fr; min-height: 360px; }

.dash__side { background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.dash__logo { margin-bottom: 8px; }
.dash__navitem { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; color: var(--ink-3); transition: .2s; }
.dash__navitem.is-active, .dash__navitem:hover { background: var(--grad-soft); color: var(--indigo); }

.dash__main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi__label { display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.kpi__val { display: block; font-family: "Sora"; font-weight: 700; font-size: 1.3rem; margin-top: 2px; }
.kpi__trend { font-size: .72rem; font-weight: 600; }
.kpi__trend.up { color: #16a34a; }

.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.widget__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.widget__head h4 { font-size: .82rem; font-family: "Inter"; font-weight: 600; }
.badge { font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.badge--good { background: rgba(22,163,74,.14); color: #16a34a; border-color: transparent; }
.spark { width: 100%; height: 70px; }

.opp { display: flex; flex-direction: column; gap: 8px; }
.opp li { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; padding: 6px 8px; border-radius: 8px; background: var(--surface); }
.opp__score { font-family: "Sora"; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 6px; }
.opp__score.good { background: rgba(22,163,74,.15); color: #16a34a; }
.opp__score.warn { background: rgba(245,158,11,.18); color: #d97706; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.chat__msg { font-size: .72rem; padding: 8px 10px; border-radius: 10px; max-width: 92%; }
.chat__msg--user { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 2px; }
.chat__msg--ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 2px; color: var(--ink-2); }
.chat__msg--ai b { color: var(--ink); }
.cite { color: var(--indigo); font-weight: 600; }

.matrix { display: flex; flex-direction: column; gap: 7px; }
.matrix__row { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; }
.m { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.m--ok { background: #16a34a; }
.m--partial { background: #f59e0b; }
.m--miss { background: #ef4444; }

.dash__float {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 12px; padding: 9px 13px; font-size: .8rem; font-weight: 600;
}
.float-1 { top: 18px; right: -22px; animation: floaty2 6s ease-in-out infinite; }
.float-2 { bottom: 26px; left: -26px; animation: floaty2 6s ease-in-out infinite .8s; }
@keyframes floaty2 { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

/* ---------- Logos ---------- */
.logos { padding: 40px 0 10px; border-top: 1px solid var(--line); }
.logos__label { text-align: center; color: var(--ink-3); font-size: .9rem; margin-bottom: 22px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.logos__row span { font-family: "Sora"; font-weight: 700; font-size: 1.02rem; color: var(--ink-3); opacity: .8; transition: .25s; }
.logos__row span:hover { opacity: 1; color: var(--ink); }

/* ---------- Section shell ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section__lead { color: var(--ink-2); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Modules ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.module::before {
  content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s;
}
.module:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module:hover::before { opacity: 1; }
.module > * { position: relative; }
.module__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; box-shadow: var(--shadow); }
.module__icon svg { width: 26px; height: 26px; }
.module h3 { font-size: 1.18rem; margin-bottom: 8px; }
.module p { color: var(--ink-2); font-size: .95rem; }
.i1{background:linear-gradient(135deg,#6366f1,#8b5cf6);}
.i2{background:linear-gradient(135deg,#06b6d4,#3b82f6);}
.i3{background:linear-gradient(135deg,#8b5cf6,#ec4899);}
.i4{background:linear-gradient(135deg,#10b981,#06b6d4);}
.i5{background:linear-gradient(135deg,#f59e0b,#ef4444);}
.i6{background:linear-gradient(135deg,#6366f1,#06b6d4);}
.i7{background:linear-gradient(135deg,#3b82f6,#6366f1);}
.i8{background:linear-gradient(135deg,#ef4444,#f59e0b);}
.i9{background:linear-gradient(135deg,#8b5cf6,#6366f1);}
.i10{background:linear-gradient(135deg,#06b6d4,#10b981);}

/* ---------- Dashboard section ---------- */
.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dashboard__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.dashboard__panel--wide { grid-column: span 2; }
.dashboard__panelhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dashboard__panelhead h3 { font-size: 1.05rem; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg__btn { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; color: var(--ink-3); }
.seg__btn.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.bar { flex: 1; height: var(--h); background: var(--grad); border-radius: 8px 8px 4px 4px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.bar span { position: absolute; bottom: -22px; font-size: .72rem; color: var(--ink-3); }

.donut { position: relative; width: 150px; margin: 6px auto 14px; }
.donut svg { transform: rotate(-90deg); width: 100%; }
.donut__bg { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.donut__fg { fill: none; stroke: url(#logoGrad); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s var(--ease); }
.donut__fg.is-filled { stroke-dashoffset: calc(314 - (314 * var(--p) / 100)); }
.donut__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__label strong { font-family: "Sora"; font-size: 1.6rem; }
.donut__label span { font-size: .72rem; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; font-size: .78rem; color: var(--ink-2); }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; }
.lg--ok{background:#16a34a;} .lg--part{background:#f59e0b;} .lg--miss{background:#ef4444;}

.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dtable th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.dtable tbody tr:hover { background: var(--surface-2); }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag--low{background:rgba(22,163,74,.14);color:#16a34a;}
.tag--mid{background:rgba(245,158,11,.18);color:#d97706;}
.tag--high{background:rgba(239,68,68,.16);color:#ef4444;}
.tag--go{background:rgba(99,102,241,.16);color:var(--indigo);}
.tag--rev{background:rgba(139,92,246,.16);color:#8b5cf6;}
.tag--hold{background:var(--surface-2);color:var(--ink-3);}

.agents { display: flex; flex-direction: column; gap: 12px; }
.agents li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.agents__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); }
.agents__state { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.agents__state.ok { background: rgba(22,163,74,.14); color: #16a34a; }
.agents__state.run { background: rgba(6,182,212,.16); color: #0891b2; }

/* ---------- Workflow ---------- */
.flow { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding-bottom: 14px; }
.flow__step { flex: 1 0 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm); position: relative; }
.flow__num { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-family: "Sora"; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.flow__step h4 { font-size: 1rem; margin-bottom: 6px; }
.flow__step p { font-size: .85rem; color: var(--ink-2); }
.flow__arrow { align-self: center; color: var(--ink-3); font-size: 1.4rem; flex: 0 0 auto; }
.flow__step--win { background: var(--grad); border-color: transparent; }
.flow__step--win h4, .flow__step--win p { color: #fff; }

/* ---------- Industries ---------- */
.industries { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin-inline: auto; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: .92rem; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: .25s; }
.chip:hover { color: var(--ink); border-color: var(--indigo); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit__num { display: block; font-family: "Sora"; font-weight: 800; font-size: 2.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.benefit__num--text { font-size: 1.7rem; }
.benefit p { color: var(--ink-2); font-size: .96rem; margin-top: 8px; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.security__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.security__list li { display: flex; gap: 12px; font-size: 1rem; color: var(--ink-2); }
.tick { color: var(--indigo); font-weight: 700; flex: 0 0 auto; }
.security__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.sec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sec-card__ic { font-size: 1.6rem; margin-bottom: 12px; }
.sec-card h4 { font-size: 1rem; margin-bottom: 6px; }
.sec-card p { font-size: .85rem; color: var(--ink-2); }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.compare__col { border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--line); }
.compare__col--old { background: var(--surface); }
.compare__col--new { position: relative; background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }
.compare__col h3 { font-size: 1.3rem; margin-bottom: 20px; }
.compare__col ul { display: flex; flex-direction: column; gap: 14px; }
.compare__col li { display: flex; gap: 12px; font-size: .98rem; align-items: flex-start; }
.compare__col--old li { color: var(--ink-2); }
.x, .v { flex: 0 0 auto; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.x { background: rgba(239,68,68,.15); color: #ef4444; }
.compare__col--new .v { background: rgba(255,255,255,.25); color: #fff; }
.compare__badge { position: absolute; top: -14px; left: 30px; background: #fff; color: var(--indigo); font-weight: 700; font-size: .8rem; padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow); }

/* ---------- Testimonials ---------- */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.testi__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi__card blockquote { font-size: 1rem; color: var(--ink); line-height: 1.65; }
.testi__card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testi__av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: "Sora"; }
.testi__card figcaption strong { display: block; font-size: .92rem; }
.testi__card figcaption span { font-size: .82rem; color: var(--ink-3); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: transparent; box-shadow: var(--shadow-glow); background: var(--surface); overflow: hidden; }
.plan--featured::before { content: ""; position: absolute; inset: 0; padding: 2px; border-radius: var(--radius-lg); background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__flag { position: absolute; top: 18px; right: 18px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.plan__for { color: var(--ink-3); font-size: .9rem; margin: 6px 0 18px; }
.plan__price { font-family: "Sora"; font-weight: 800; font-size: 2.4rem; margin-bottom: 20px; }
.plan__cur { font-size: 1.3rem; vertical-align: super; color: var(--ink-2); }
.plan__per { font-size: .95rem; font-weight: 500; color: var(--ink-3); }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan ul li { font-size: .94rem; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 1.02rem; font-weight: 600; text-align: left; color: var(--ink); }
.acc__ic { font-size: 1.4rem; color: var(--indigo); flex: 0 0 auto; transition: transform .3s; }
.acc__item.open .acc__ic { transform: rotate(45deg); }
.acc__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.acc__a p { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta__glow { position: absolute; inset: 0; background: var(--grad); opacity: .12; }
.cta__inner { position: relative; z-index: 1; max-width: 720px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p { color: var(--ink-2); font-size: 1.1rem; margin: 16px 0 30px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer__brand p { color: var(--ink-3); font-size: .92rem; margin: 16px 0 18px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-2); transition: .2s; }
.footer__social a:hover { color: var(--ink); border-color: var(--indigo); transform: translateY(-2px); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h5 { font-size: .95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--ink-3); font-size: .9rem; padding: 5px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--indigo); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; flex-wrap: wrap; gap: 12px; }
.footer__legal a { margin-left: 18px; }
.footer__legal a:hover { color: var(--indigo); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(7,11,22,.55); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal__card { position: relative; z-index: 1; width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__close { position: absolute; top: 16px; right: 18px; font-size: 1.6rem; color: var(--ink-3); line-height: 1; }
.modal__close:hover { color: var(--ink); }
.modal__brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 700; margin-bottom: 6px; }
.modal__card h3 { font-size: 1.6rem; }
.modal__sub { color: var(--ink-2); font-size: .95rem; margin: 8px 0 22px; }
.modal__form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.modal__success { text-align: center; padding: 14px 0; }
.modal__check { width: 64px; height: 64px; border-radius: 50%; background: rgba(22,163,74,.15); color: #16a34a; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { max-width: 560px; margin-inline: auto; }
  .dashboard { grid-template-columns: repeat(2, 1fr); }
  .dashboard__panel--wide { grid-column: span 2; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .testi, .pricing, .modules { grid-template-columns: repeat(2, 1fr); }
  .security { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; box-shadow: var(--shadow);
  }
  .nav__burger { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .section { padding: 64px 0; }
  .modules, .testi, .pricing, .benefits { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard__panel--wide { grid-column: span 1; }
  .compare { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-wrap: nowrap; }
  .dash { transform: none; animation: none; }
  .float-1, .float-2 { display: none; }
}
@media (max-width: 440px) {
  .security__grid, .footer__cols { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
