/* ==========================================================================
   Meridian Group AI · landing page styles
   AI-first, dark-default, luminous. Light theme aware.
   Display: Space Grotesk · Body: Inter · Mono: Space Mono
   ========================================================================== */

:root {
  /* dark is the default canvas */
  --bg:        #06090f;
  --bg-2:      #0a0f1a;
  --surface:   #0d1320;
  --surface-2: #111a2b;
  --surface-3: #16223a;
  --ink:       #eef2fb;
  --ink-soft:  #c7d0e4;
  --muted:     #8b97b4;
  --faint:     #5d6987;
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* signature spectrum: cyan -> indigo -> violet */
  --c-cyan:    #2fe6e0;
  --c-blue:    #4f8cff;
  --c-indigo:  #6366f1;
  --c-violet:  #a855f7;
  --accent:    #5b8cff;
  --accent-ink:#86abff;
  --grad:      linear-gradient(100deg, #2fe6e0 0%, #4f8cff 42%, #8b5cf6 100%);
  --grad-soft: linear-gradient(100deg, rgba(47,230,224,0.16), rgba(99,102,241,0.16), rgba(168,85,247,0.16));

  --ok:        #34d399;
  --warn:      #f5b942;

  --glass:     rgba(255, 255, 255, 0.04);
  --glass-2:   rgba(255, 255, 255, 0.06);
  --shadow:    0 30px 80px -40px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 10px 30px -16px rgba(0, 0, 0, 0.7);
  --glow:      0 0 0 1px rgba(91,140,255,0.25), 0 24px 70px -28px rgba(79,140,255,0.45);

  --maxw: 1200px;
  --rad: 18px;
  --rad-lg: 26px;

  --disp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="light"] {
  --bg:        #f6f8fc;
  --bg-2:      #eef2f8;
  --surface:   #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #eaf0f9;
  --ink:       #0b1020;
  --ink-soft:  #28324a;
  --muted:     #54617a;
  --faint:     #8a96ac;
  --line:      rgba(11, 16, 32, 0.10);
  --line-2:    rgba(11, 16, 32, 0.16);
  --accent:    #2f6bff;
  --accent-ink:#1c52e0;
  --glass:     rgba(255, 255, 255, 0.6);
  --glass-2:   rgba(255, 255, 255, 0.78);
  --shadow:    0 30px 70px -40px rgba(24, 39, 75, 0.35);
  --shadow-sm: 0 12px 30px -18px rgba(24, 39, 75, 0.28);
  --glow:      0 0 0 1px rgba(47,107,255,0.18), 0 24px 60px -30px rgba(47,107,255,0.35);
}

/* ----------------------------------------------------------------- reset */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4 {
  font-family: var(--disp);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1.05em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(91,140,255,0.32); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 920px; }

/* ----------------------------------------------------------------- type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; border-radius: 2px;
  background: var(--grad);
}
.eyebrow.center::before { display: none; }

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

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }

.section { padding: clamp(76px, 11vw, 138px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 56px; }
.section-head.left { margin-left: 0; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 18px; }

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  color: var(--faint); text-transform: uppercase;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 13px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.22s cubic-bezier(.2,.7,.3,1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #06080f;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 14px 38px -14px rgba(79,140,255,0.6);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(79,140,255,0.75); background-position: 100% 50%; }
.btn-ghost {
  color: var(--ink); background: var(--glass); border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--glass-2); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ----------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; gap: 18px;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 11px 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; }
.brand .ai { color: var(--accent-ink); }
.nav-mid { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  padding: 9px 13px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); background: var(--glass); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.toggle {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line-2); color: var(--ink);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.toggle svg { width: 18px; height: 18px; }
.ico-sun { display: none; }
[data-theme="light"] .ico-sun { display: block; }
[data-theme="light"] .ico-moon { display: none; }

.menu-btn { display: none; }

/* ----------------------------------------------------------------- aurora bg */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite;
}
[data-theme="light"] .aurora span { opacity: 0.32; mix-blend-mode: multiply; filter: blur(90px); }
.aurora .a1 { width: 620px; height: 620px; top: -200px; left: -120px; background: radial-gradient(circle, rgba(47,230,224,0.55), transparent 65%); }
.aurora .a2 { width: 680px; height: 680px; top: -120px; right: -160px; background: radial-gradient(circle, rgba(168,85,247,0.5), transparent 65%); animation-delay: -7s; }
.aurora .a3 { width: 560px; height: 560px; bottom: -240px; left: 30%; background: radial-gradient(circle, rgba(79,140,255,0.5), transparent 65%); animation-delay: -13s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.12); }
  66% { transform: translate(-40px, 30px) scale(0.94); }
}

/* faint grid overlay */
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 0%, transparent 75%);
  opacity: 0.5;
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; padding: 168px 0 90px; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/images/hero-cliff.jpg');
  background-size: cover; background-position: center 38%;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 92%);
}
[data-theme="light"] .hero-photo { opacity: 0.14; }
.hero-inner { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }
.pill .dot.v { background: var(--c-violet); box-shadow: 0 0 10px var(--c-violet); }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.035em; line-height: 0.98; margin-bottom: 24px;
}
.hero .lede { font-size: clamp(17px, 2.1vw, 21px); margin-bottom: 34px; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: var(--faint); font-size: 13.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--ok); }

/* ----------------------------------------------------------------- browser mock */
.mock {
  border-radius: var(--rad-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-dots i:nth-child(1){ background:#ff5f57; } .mock-dots i:nth-child(2){ background:#febc2e; } .mock-dots i:nth-child(3){ background:#28c840; }
.mock-url {
  flex: 1; margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--faint);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px;
  display: flex; align-items: center; gap: 7px;
}
.mock-url svg { width: 12px; height: 12px; color: var(--ok); }

.hero-mock { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-style: preserve-3d; transition: transform 0.4s ease; }
.hero-mock:hover { transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); }

/* dashboard mock interior */
.dash { display: grid; grid-template-columns: 188px 1fr; min-height: 430px; }
.dash-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.dash-brand { display: flex; align-items: center; gap: 8px; font-family: var(--disp); font-weight: 600; font-size: 13.5px; padding: 4px 8px 14px; }
.dash-brand .mark { width: 20px; height: 20px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.dash-nav a svg { width: 15px; height: 15px; opacity: 0.8; }
.dash-nav a.on { background: var(--grad-soft); color: var(--ink); border: 1px solid var(--line-2); }
.dash-main { padding: 18px 20px; overflow: hidden; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-top h4 { font-size: 16px; margin: 0; }
.dash-top .who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.dash-top .av { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 15px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.kpi .lab { font-size: 10.5px; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .val { font-family: var(--disp); font-size: 21px; font-weight: 600; }
.kpi .delta { font-size: 10.5px; font-weight: 600; margin-top: 3px; display: inline-flex; gap: 4px; align-items: center; }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: #ff7a7a; }
.dash-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px 15px; }
.dash-panel .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-panel .ph span { font-size: 12.5px; font-weight: 600; }
.dash-panel .ph em { font-style: normal; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.chart { display: flex; align-items: flex-end; gap: 9px; height: 92px; }
.chart .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--grad); opacity: 0.85; min-height: 8px; transition: height 0.9s cubic-bezier(.2,.7,.3,1); }
.chart .bar:nth-child(even) { opacity: 0.5; }
.ai-strip {
  margin-top: 13px; display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-soft);
}
.ai-strip .spark { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--grad); color: #06080f; }
.ai-strip .spark svg { width: 13px; height: 13px; }

/* ----------------------------------------------------------------- marquee */
.marquee-wrap { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.marquee { display: flex; gap: 14px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee .chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 11px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.marquee .chip svg { width: 16px; height: 16px; color: var(--accent-ink); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 14px; }
.stat .n { font-family: var(--disp); font-size: clamp(34px, 5vw, 54px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 12px; }

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

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 26px;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.card .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: var(--accent-ink);
  margin-bottom: 18px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }
.card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 10px; }
.card.lift-glow:hover { box-shadow: var(--glow); }

/* feature with top gradient line on hover */
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
}
.feature:hover::before { opacity: 1; }

/* problem list */
.prob { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 22px 24px; display: flex; gap: 15px; align-items: flex-start; }
.prob .x { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255,90,90,0.12); color: #ff7a7a; border: 1px solid rgba(255,90,90,0.22); }
.prob .x svg { width: 17px; height: 17px; }
.prob h4 { font-size: 16px; margin: 1px 0 5px; }
.prob p { font-size: 14px; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- portal tabs */
.portal { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tab {
  text-align: left; cursor: pointer; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px;
  padding: 17px 18px; display: flex; gap: 14px; align-items: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  color: var(--ink); font-family: inherit;
}
.tab:hover { transform: translateX(3px); border-color: var(--line-2); }
.tab.on { border-color: transparent; background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.tab .ti { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--accent-ink); }
.tab.on .ti { background: var(--grad); color: #06080f; border-color: transparent; }
.tab .ti svg { width: 20px; height: 20px; }
.tab b { display: block; font-family: var(--disp); font-size: 15.5px; font-weight: 600; }
.tab small { color: var(--muted); font-size: 12.5px; }

.tab-panels { position: relative; min-height: 460px; }
.panel { display: none; animation: fade-up 0.5s cubic-bezier(.2,.7,.3,1); }
.panel.on { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* portal UI interior */
.portal-ui { padding: 0; }
.pu-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pu-head h4 { font-size: 18px; margin: 0 0 4px; }
.pu-head p { margin: 0; font-size: 13px; color: var(--muted); }
.pu-badge { font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(52,211,153,0.14); color: var(--ok); border: 1px solid rgba(52,211,153,0.28); display: inline-flex; gap: 7px; align-items: center; }
.pu-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pu-body { padding: 22px 24px; display: grid; gap: 16px; }
.pu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pu-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.pu-tile .t-lab { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.pu-tile .t-lab svg { width: 14px; height: 14px; color: var(--accent-ink); }
.pu-tile .t-val { font-family: var(--disp); font-size: 22px; font-weight: 600; }
.pu-tile .t-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.pu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.pu-row .left { display: flex; align-items: center; gap: 12px; }
.pu-row .ava { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); flex: none; display: grid; place-items: center; color: #06080f; font-weight: 700; font-size: 13px; font-family: var(--disp); }
.pu-row .nm { font-size: 13.5px; font-weight: 600; }
.pu-row .meta { font-size: 11.5px; color: var(--muted); }
.pu-state { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.pu-state.ok { background: rgba(52,211,153,0.13); color: var(--ok); }
.pu-state.pend { background: rgba(245,185,66,0.14); color: var(--warn); }
.pu-state.new { background: var(--grad-soft); color: var(--accent-ink); }
.pu-progress { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.pu-progress i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.pu-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.pu-cta svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- automations flow */
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: center;
}
.fnode {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 15px;
  padding: 18px 16px; text-align: center; position: relative; z-index: 2;
}
.fnode .fi { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-ink); border: 1px solid var(--line-2); }
.fnode.ai .fi { background: var(--grad); color: #06080f; border-color: transparent; }
.fnode .fi svg { width: 21px; height: 21px; }
.fnode b { display: block; font-family: var(--disp); font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.fnode small { font-size: 12px; color: var(--muted); }
.farrow { display: grid; place-items: center; color: var(--faint); position: relative; z-index: 1; }
.farrow svg { width: 26px; height: 26px; }
.farrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--c-cyan); position: absolute; box-shadow: 0 0 10px var(--c-cyan); animation: flow-pulse 2.4s ease-in-out infinite; }
@keyframes flow-pulse { 0% { transform: translateX(-18px); opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(18px); opacity: 0; } }

/* ----------------------------------------------------------------- full-bleed background feature */
.bgfeature { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 170px) 0; }
.bgfeature-img { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-attachment: fixed; }
@media (max-width: 900px) { .bgfeature-img { background-attachment: scroll; } }
.bgfeature::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,7,12,0.94) 0%, rgba(4,7,12,0.78) 38%, rgba(4,7,12,0.30) 72%, rgba(4,7,12,0.12) 100%); }
@media (max-width: 760px) { .bgfeature::after { background: linear-gradient(180deg, rgba(4,7,12,0.62), rgba(4,7,12,0.9)); } }
.bgfeature-in { position: relative; z-index: 2; }
.bgfeature-card {
  max-width: 620px;
  background: rgba(9, 13, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rad-lg);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(16px) saturate(135%);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
/* pinned light text so it stays legible in both themes (sits over a photo) */
.bgfeature-card .eyebrow { color: #9fe0ff; }
.bgfeature-card h2 { color: #ffffff; }
.bgfeature-card .lede { color: rgba(255, 255, 255, 0.84); }
.bgfeature-card .split-list li { color: rgba(255, 255, 255, 0.9); }
.bgfeature-card .split-list b { color: #ffffff; }
.bgfeature-card .split-list .ck { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26); color: #7fe9e0; }

.split-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.split-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.split-list .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-ink); border: 1px solid var(--line-2); margin-top: 1px; }
.split-list .ck svg { width: 14px; height: 14px; }
.split-list b { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 26px; }
.step .num { font-family: var(--disp); font-size: 14px; font-weight: 700; color: #06080f; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); margin-bottom: 18px; }
.step::before { content: ""; position: absolute; top: 18px; left: 50px; right: -10px; height: 1px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- security */
.sec-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.sec-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.sec-badge { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.25s, transform 0.25s; }
.sec-badge:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sec-badge .si { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(52,211,153,0.1); color: var(--ok); border: 1px solid rgba(52,211,153,0.22); }
.sec-badge .si svg { width: 18px; height: 18px; }
.sec-badge b { font-size: 14px; display: block; }
.sec-badge small { font-size: 12.5px; color: var(--muted); }
.sec-panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--rad-lg); padding: 28px;
  font-family: var(--mono); position: relative; overflow: hidden;
}
.sec-panel::before { content:""; position:absolute; inset:0; background: var(--grad-soft); opacity: 0.5; pointer-events:none; }
.sec-panel .sp-head { position: relative; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.sec-panel .sp-head .lock { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color:#06080f; display:grid; place-items:center; }
.sec-panel .sp-head .lock svg { width: 15px; height: 15px; }
.sec-line { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.sec-line:last-child { border-bottom: 0; }
.sec-line .tick { color: var(--ok); }
.sec-line .tick svg { width: 15px; height: 15px; display: block; }
.sec-line em { font-style: normal; margin-left: auto; color: var(--faint); }

/* ----------------------------------------------------------------- engagement / pricing */
.plans { 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(--rad-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: transparent; box-shadow: var(--glow); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan.featured::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; 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; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #06080f; background: var(--grad); padding: 5px 11px; border-radius: 999px; font-weight: 700; }
.plan .pname { font-family: var(--disp); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.plan .pdesc { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; min-height: 40px; }
.plan .price { font-family: var(--disp); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .pmeta { font-size: 12.5px; color: var(--faint); margin: 8px 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.plan li svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }

/* ----------------------------------------------------------------- values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 24px; border-radius: var(--rad); background: var(--surface); border: 1px solid var(--line); }
.value .vn { font-family: var(--disp); font-size: 30px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.value h4 { font-size: 17px; margin: 12px 0 7px; }
.value p { font-size: 14px; color: var(--muted); margin: 0; }

/* ----------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; transition: border-color 0.25s; }
.qa.open { border-color: var(--line-2); }
.qa button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink); font-family: var(--disp); font-weight: 600; font-size: 16.5px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa .pm { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); color: var(--accent-ink); transition: transform 0.3s, background 0.3s; }
.qa .pm svg { width: 15px; height: 15px; }
.qa.open .pm { transform: rotate(45deg); background: var(--grad); color: #06080f; border-color: transparent; }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.qa .ans p { padding: 0 22px 20px; margin: 0; font-size: 15px; color: var(--muted); }

/* ----------------------------------------------------------------- CTA / form */
.cta-final { position: relative; overflow: hidden; border-radius: var(--rad-lg); border: 1px solid var(--line-2); background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.cta-final .aurora span { opacity: 0.4; }
.cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(34px, 5vw, 60px); align-items: center; }
.cta-copy h2 { font-size: clamp(28px, 3.6vw, 42px); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 13px 15px; transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,0.18); }
.field select { appearance: none; cursor: pointer; }
.form .ok-msg { display: none; padding: 13px 16px; border-radius: 12px; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.28); color: var(--ok); font-size: 14px; font-weight: 500; }
.form .ok-msg.is-error { background: rgba(255,90,90,0.1); border-color: rgba(255,90,90,0.3); color: #ff8a8a; }
.form-note { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 14px; height: 14px; color: var(--ok); }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 38px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 14px; }
.footer p { font-size: 14px; color: var(--muted); max-width: 30ch; }
.footer h5 { font-family: var(--disp); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bot small { color: var(--faint); font-size: 13px; }
.footer-bot .socials { display: flex; gap: 10px; }
.footer-bot .socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.footer-bot .socials a:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.footer-bot .socials svg { width: 17px; height: 17px; }

/* ----------------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; } .reveal.d2 { transition-delay: 0.12s; } .reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; } .reveal.d5 { transition-delay: 0.3s; }

/* divider */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); margin: 0; }

/* full-bleed cinematic image strip */
.imgstrip { position: relative; min-height: 360px; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-attachment: fixed; overflow: hidden; }
@media (max-width: 900px) { .imgstrip { background-attachment: scroll; min-height: 280px; } }
.imgstrip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,7,12,0.35) 0%, rgba(4,7,12,0.1) 40%, rgba(4,7,12,0.82) 100%); }
[data-theme="light"] .imgstrip::before { background: linear-gradient(180deg, rgba(8,12,24,0.25) 0%, rgba(8,12,24,0.05) 40%, rgba(8,12,24,0.7) 100%); }
.imgstrip .strip-in { position: relative; z-index: 2; padding: 40px 0; }
.imgstrip .eyebrow { color: #9fd8ff; }
.imgstrip h3 { color: #fff; font-size: clamp(24px, 3.4vw, 38px); max-width: 22ch; margin: 0; text-shadow: 0 2px 28px rgba(0,0,0,0.5); }
.imgstrip p { color: rgba(255,255,255,0.82); max-width: 52ch; margin: 14px 0 0; }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-mock { transform: none; max-width: 600px; }
  .portal { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; flex-wrap: wrap; }
  .tab { flex: 1 1 200px; }
  .sec-grid { grid-template-columns: 1fr; gap: 34px; }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 900px) {
  .nav-mid { display: none; }
  .menu-btn { display: grid; }
  .cols-3, .cols-4, .plans, .values, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .farrow { transform: rotate(90deg); padding: 8px 0; }
  .step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .cols-2, .cols-3, .cols-4, .plans, .values, .steps, .sec-badges, .pu-grid, .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 132px 0 70px; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-right .btn { display: none; }
}

/* nav mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px); display: none; flex-direction: column; padding: 80px 28px 28px; gap: 6px; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--disp); font-size: 22px; font-weight: 600; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.drawer .close { position: absolute; top: 20px; right: 22px; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--glass); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer .close svg { width: 20px; height: 20px; }
