/* ============================================================
   B-PRESENT — Landing page
   Glassmorphism / Apple-macOS inspired design system
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base canvas */
  --bg:        #EAEDF6;
  --bg-soft:   #F2F4FA;

  /* Ink / text */
  --ink:        #1B1E2B;   /* headings */
  --text:       #2A2E3D;
  --text-muted: #5A6070;
  --text-dim:   #8A90A2;

  /* Brand accents (refined, soft) */
  --indigo:  #5B6CF0;
  --violet:  #8B6CF0;
  --teal:    #2BC4C0;
  --sky:     #5AA8F2;
  --gold:    #E3B873;
  --rose:    #F2A6B0;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #5B7CF0 0%, #8B6CF0 55%, #B07CF0 100%);
  --grad-soft:  linear-gradient(135deg, rgba(91,124,240,0.14), rgba(43,196,192,0.12));
  --grad-text:  linear-gradient(100deg, #4356E0 0%, #7A5CF0 50%, #2BB0C4 100%);

  /* Glass surfaces */
  --glass-bg:        rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-soft:   rgba(255, 255, 255, 0.40);
  --glass-border:    rgba(255, 255, 255, 0.75);
  --glass-edge:      rgba(150, 160, 200, 0.18);

  /* Shadows (soft, bluish) */
  --shadow-sm:  0 6px 18px -8px rgba(40, 50, 95, 0.20);
  --shadow:     0 18px 44px -20px rgba(40, 50, 95, 0.28);
  --shadow-lg:  0 36px 80px -30px rgba(40, 50, 95, 0.40);
  --gloss:      inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255,255,255,0.18);

  /* Layout */
  --radius:    24px;
  --radius-sm: 16px;
  --radius-lg: 32px;
  --maxw:      1200px;
  --gutter:    clamp(20px, 5vw, 48px);

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft Apple-like mesh gradient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 760px at 8% -8%, rgba(120, 150, 255, 0.55), transparent 55%),
    radial-gradient(900px 720px at 96% 2%, rgba(176, 140, 245, 0.50), transparent 55%),
    radial-gradient(1000px 820px at 88% 96%, rgba(70, 210, 200, 0.38), transparent 55%),
    radial-gradient(900px 760px at 4% 92%, rgba(245, 170, 195, 0.34), transparent 55%),
    radial-gradient(700px 600px at 50% 50%, rgba(255, 226, 180, 0.22), transparent 60%),
    var(--bg);
}
/* faint grain for premium texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Reusable glass ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), var(--gloss);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; padding-block: clamp(72px, 10vw, 128px); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .eyebrow { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 15px;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 8px rgba(120,110,240,0.6);
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }

.h-section {
  font-size: clamp(30px, 4.4vw, 50px);
  margin-top: 18px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.section-sub { color: var(--text-muted); font-size: clamp(15px, 1.6vw, 18px); }

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

/* ---------- Buttons ----------
   Adapted from the "neon-button" pattern: centered gradient hairlines
   (a top line that glows in on hover, a bottom edge line that dims),
   recolored to the brand palette and softened for the glass theme. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s, border-color .3s;
  white-space: nowrap;
  isolation: isolate;
}
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn > * { position: relative; z-index: 1; }

/* neon hairlines (shared, recolored per variant) */
.btn::before, .btn::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 72%;
  height: 1px;
  transform: translateX(-50%);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .5s ease-in-out;
}
.btn::before { top: 0;        opacity: 0; }    /* glow line — reveals on hover */
.btn::after  { bottom: -1px;  opacity: .55; }  /* edge line — dims on hover   */
.btn:hover::before { opacity: 1; }
.btn:hover::after  { opacity: .15; }

.btn:focus-visible { outline: 2px solid rgba(91,124,240,0.7); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.985); }

/* Primary — brand gradient with a glossy top sheen baked into the fill */
.btn-primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0) 52%),
    var(--grad-brand);
  box-shadow: 0 14px 30px -10px rgba(91, 108, 240, 0.55), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -2px 6px rgba(60,40,150,0.22);
}
.btn-primary::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent); box-shadow: 0 0 9px rgba(255,255,255,0.65); }
.btn-primary::after  { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent); }
.btn-primary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.4); box-shadow: 0 22px 44px -10px rgba(91, 108, 240, 0.7), inset 0 1px 0 rgba(255,255,255,0.55); }

/* Ghost — translucent glass with a brand-tinted edge that lights up on hover */
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-color: rgba(120, 130, 210, 0.30);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.85);
}
.btn-ghost::before { background: linear-gradient(90deg, transparent, #6E7CF0 36%, #2BC4C0 64%, transparent); box-shadow: 0 0 9px rgba(110,124,240,0.45); }
.btn-ghost::after  { background: linear-gradient(90deg, transparent, rgba(110,124,240,0.55), transparent); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.62); border-color: rgba(110, 124, 240, 0.5); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.92); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom-color: var(--glass-edge);
  box-shadow: 0 8px 30px -16px rgba(40,50,95,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 8px 18px -6px rgba(91,108,240,0.7), inset 0 1px 0 rgba(255,255,255,0.5);
}
.brand .logo svg { width: 20px; height: 20px; }
.brand span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- Pill nav with sliding highlight (adapted to glass theme) ----- */
.navpill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.85);
}
.navpill-tab {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color .28s ease;
}
.navpill-tab:hover,
.navpill-tab.active { color: var(--ink); }
.navpill-cursor {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(91,124,240,0.20), rgba(140,108,240,0.16));
  border: 1px solid rgba(91,124,240,0.30);
  box-shadow: 0 8px 18px -10px rgba(91,108,240,0.6), inset 0 1px 0 rgba(255,255,255,0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), width .34s cubic-bezier(.2,.8,.2,1), height .34s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--glass-border); background: var(--glass-bg-strong); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85); transition: background .2s, box-shadow .2s; }
.nav-toggle:hover { background: rgba(255,255,255,0.85); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--ink); border-radius: 2px; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile dropdown (hidden on desktop) */
.nav-mobile { display: none; }
.nav-cta-mobile { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 132px; padding-bottom: 64px; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }

/* ----- Ambient floating documents layer ----- */
.hero-docs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hdoc {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 66px;
  border-radius: 12px;
  padding: 9px 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.50));
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 18px 32px -20px rgba(40,50,95,0.5), inset 0 1px 0 rgba(255,255,255,0.9);
  opacity: 0;
  will-change: transform, opacity;
}
.hdoc-badge { font-size: 8px; line-height: 1.4; font-weight: 700; color: #fff; padding: 2px 5px; border-radius: 4px; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.hdoc-badge.pdf { background: linear-gradient(150deg,#FF8A8A,#E0524A); }
.hdoc-badge.doc { background: linear-gradient(150deg,#7CB8F5,#3A7FD6); }
.hdoc-badge.ppt { background: linear-gradient(150deg,#FFB877,#EE7A2E); }
.hdoc-badge.txt { background: linear-gradient(150deg,#AEB6C7,#7A8195); }
.hdoc-badge.gen { background: var(--grad-brand); }
.hdoc-ln { width: 100%; height: 4px; border-radius: 2px; background: rgba(40,50,95,0.13); }
.hdoc-ln.s { width: 62%; }
@media (max-width: 560px) { .hdoc { width: 44px; height: 54px; padding: 7px 6px; gap: 4px; } .hdoc-badge { font-size: 7px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; }
}

.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
}
.hero p.lead {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text-muted);
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars i {
  width: 30px; height: 30px; border-radius: 50%; margin-left: -9px;
  border: 2px solid rgba(255,255,255,0.9);
  background: var(--grad-brand);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.hero-trust .avatars i:nth-child(2){ background: linear-gradient(135deg,#8B6CF0,#E3B873); }
.hero-trust .avatars i:nth-child(3){ background: linear-gradient(135deg,#2BC4C0,#5B6CF0); }
.hero-trust .avatars i:nth-child(4){ background: linear-gradient(135deg,#F2A6B0,#8B6CF0); }
.hero-trust .avatars i:first-child { margin-left: 0; }
.hero-trust b { color: var(--ink); }

/* ----- Hero glass flow visual ----- */
.flow {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 640;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18));
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}
.flow::before { /* diagonal gloss reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 32%);
  opacity: .8;
}

.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.node { position: absolute; transform: translate(-50%, -50%); z-index: 2; }

/* Document cards (left) — frosted glass pills */
.doc {
  width: 25%;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
  animation: floaty 6s ease-in-out infinite;
}
.doc .ic {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 10px -4px rgba(0,0,0,0.3);
}
.doc .ic.pdf  { background: linear-gradient(150deg,#FF8A8A,#E0524A); }
.doc .ic.ppt  { background: linear-gradient(150deg,#FFB877,#EE7A2E); }
.doc .ic.word { background: linear-gradient(150deg,#7CB8F5,#3A7FD6); }
.doc .ic.txt  { background: linear-gradient(150deg,#AEB6C7,#7A8195); }
.doc .meta { min-width: 0; }
.doc .meta b { display:block; font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc .meta small { font-size: 10.5px; color: var(--text-dim); }
.doc:nth-child(2){ animation-delay: -1.5s; }
.doc:nth-child(3){ animation-delay: -3s; }
.doc:nth-child(4){ animation-delay: -4.5s; }

@keyframes floaty {
  0%,100% { transform: translate(-50%, calc(-50% - 6px)); }
  50%     { transform: translate(-50%, calc(-50% + 6px)); }
}

/* AI core (center) — glossy squircle */
.core { width: 27%; aspect-ratio: 1; }
.core-inner {
  position: absolute; inset: 0; border-radius: 30%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0.35) 60%),
    linear-gradient(160deg, rgba(120,140,255,0.35), rgba(43,196,192,0.30));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 2px 2px rgba(255,255,255,0.95), inset 0 -10px 24px rgba(120,110,240,0.18);
  overflow: hidden;
}
.core-inner::before { /* sheen */
  content:""; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 45%);
}
.core-icon {
  position: relative;
  width: 46%; aspect-ratio: 1; border-radius: 22%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 12px 26px -10px rgba(91,108,240,0.7), inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 2;
}
.core-icon svg { width: 54%; height: 54%; color: #fff; }
.ring {
  position: absolute; inset: -6%; border-radius: 50%;
  border: 1px solid rgba(120,130,220,0.25);
  animation: spin 22s linear infinite;
}
.ring.r2 { inset: -16%; border-color: rgba(43,196,192,0.22); animation-duration: 32s; animation-direction: reverse; }
.ring.r3 { inset: -28%; border-color: rgba(150,160,210,0.14); animation-duration: 44s; }
@keyframes spin { to { transform: rotate(360deg); } }

.core-label {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; font-weight: 700;
}
.core-pulse {
  position: absolute; inset: -6%; border-radius: 50%;
  border: 1px solid rgba(120,110,240,0.30);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(.9); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Output slide deck (right) — glossy slide mock */
.deck { width: 34%; }
.slide {
  position: relative;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(160deg, #FFFFFF, #F3F5FC);
  color: #11142A;
  box-shadow: 0 24px 50px -22px rgba(40,50,95,0.45), inset 0 1px 0 rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.9);
  overflow: hidden;
}
.slide::before { content:""; position:absolute; inset:0; background: linear-gradient(130deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 40%); pointer-events:none; }
.slide + .slide { margin-top: 12px; }
.slide .bar { height: 8px; border-radius: 5px; background: var(--grad-brand); width: 55%; margin-bottom: 9px; }
.slide .ln { height: 5px; border-radius: 3px; background: #D7DCEC; margin-bottom: 6px; }
.slide .ln.s { width: 70%; }
.slide .ln.xs { width: 45%; }
.slide .chips { display:flex; gap:6px; margin-top: 10px; }
.slide .chips i { flex:1; height: 24px; border-radius: 7px; background: #EAEEF8; display:block; }
.slide .chips i:nth-child(1){ background: linear-gradient(160deg, rgba(91,124,240,0.28), rgba(91,124,240,0.10)); }
.slide .chips i:nth-child(2){ background: linear-gradient(160deg, rgba(43,196,192,0.28), rgba(43,196,192,0.10)); }
.slide.glow { box-shadow: 0 26px 56px -20px rgba(91,108,240,0.5), inset 0 1px 0 rgba(255,255,255,0.95); }

.deck-badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 7px;
  background: var(--grad-brand); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

/* SVG flow lines — soft & elegant */
.flow-line { fill: none; stroke-width: 1.4; opacity: .45; }
.flow-line.in  { stroke: url(#gradIn); }
.flow-line.out { stroke: url(#gradOut); }
.flow-dash {
  fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 5 190; opacity: .85;
  animation: dash 3.2s linear infinite;
}
.flow-dash.in  { stroke: #5B7CF0; }
.flow-dash.out { stroke: #2BB6C4; }
@keyframes dash { to { stroke-dashoffset: -195; } }

.spark { fill: #6E8BF5; filter: drop-shadow(0 0 5px rgba(110,139,245,0.8)); }
.spark.v { fill: #2BC4C0; filter: drop-shadow(0 0 5px rgba(43,196,192,0.8)); }

/* ----- Hero flow: phone reflow (≤640px) -----
   On phones the horizontal docs→AI→deck diagram becomes too cramped, so we
   restack it vertically with real breathing room. Tablet/desktop keep the
   original diagram untouched. */
@keyframes floatY { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }

@media (max-width: 640px) {
  /* calmer background — drop the ambient floating documents on phones */
  .hero-docs { display: none; }

  .flow {
    aspect-ratio: auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px;
    padding: 30px 20px 34px;
  }
  /* the SVG paths are drawn for the horizontal layout — hide them here */
  .flow-svg { display: none; }

  /* neutralize the absolute positioning (set via inline styles) + floaty x-shift.
     inset:auto !important is needed to beat the inline left/top on each node. */
  .flow .node { position: static; inset: auto !important; transform: none; }

  .flow .doc {
    width: 100%; max-width: 300px;
    padding: 10px 13px;
    animation: floatY 6s ease-in-out infinite;
  }

  .flow .core {
    position: relative;
    width: 132px; height: 132px;
    margin: 34px 0 6px;          /* room for the "Analyse IA" label above */
  }

  .flow .deck {
    width: 100%; max-width: 300px;
    margin-top: 22px;
  }
}

/* ============================================================
   LOGO STRIP
   ============================================================ */
.strip { padding-block: 40px; }
.strip p { text-align: center; color: var(--text-dim); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.strip-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(14px, 3vw, 26px);
}
.strip-logos span {
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-muted);
  padding: 10px 18px; border-radius: 100px;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ============================================================
   IMPORT SECTION
   ============================================================ */
.import-grid { display: grid; gap: clamp(28px, 4vw, 44px); align-items: start; }
@media (min-width: 920px){ .import-grid { grid-template-columns: 1.05fr 0.95fr; } }

.dropzone {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
  padding: clamp(26px, 4vw, 42px);
  text-align: center;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
  overflow: hidden;
}
.dropzone::after { /* dashed inner guide */
  content:""; position:absolute; inset: 14px; border-radius: calc(var(--radius) - 10px);
  border: 1.5px dashed rgba(120,130,200,0.32); pointer-events:none; transition: border-color .25s;
}
.dropzone.drag { transform: scale(1.01); background: rgba(255,255,255,0.7); box-shadow: var(--shadow-lg), 0 0 0 2px rgba(91,124,240,0.4); }
.dropzone.drag::after { border-color: rgba(91,124,240,0.7); }
.dropzone .dz-icon {
  position: relative; z-index: 1;
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  box-shadow: 0 14px 28px -10px rgba(91,108,240,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.dropzone .dz-icon svg { width: 28px; height: 28px; color: #fff; }
.dropzone h3 { position: relative; z-index:1; font-size: 21px; margin-bottom: 6px; }
.dropzone p { position: relative; z-index:1; color: var(--text-muted); font-size: 14.5px; }
.dropzone .formats { position: relative; z-index:1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.fmt {
  display:inline-flex; align-items:center; gap:7px;
  font-size: 12px; font-weight: 600; color: var(--text);
  padding: 7px 13px; border-radius: 100px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.fmt i { width: 9px; height: 9px; border-radius: 3px; display:inline-block; }
.fmt.pdf i  { background:linear-gradient(150deg,#FF8A8A,#E0524A); }
.fmt.word i { background:linear-gradient(150deg,#7CB8F5,#3A7FD6); }
.fmt.ppt i  { background:linear-gradient(150deg,#FFB877,#EE7A2E); }
.fmt.txt i  { background:linear-gradient(150deg,#AEB6C7,#7A8195); }
.dz-browse { position: relative; z-index:1; margin-top: 20px; }

/* uploaded files list */
.upload-list { margin-top: 22px; display: grid; gap: 12px; }
.ufile {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: center;
  padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  text-align: left;
  animation: fadeUp .4s ease both;
}
.ufile .uic { width: 42px; height: 42px; border-radius: 12px; display:grid; place-items:center; color:#fff; font-size:9.5px; font-weight:700; box-shadow: inset 0 1px 0 rgba(255,255,255,0.45); }
.ufile .uic.pdf{background:linear-gradient(150deg,#FF8A8A,#E0524A);}
.ufile .uic.ppt{background:linear-gradient(150deg,#FFB877,#EE7A2E);}
.ufile .uic.word{background:linear-gradient(150deg,#7CB8F5,#3A7FD6);}
.ufile .uic.txt{background:linear-gradient(150deg,#AEB6C7,#7A8195);}
.ufile .uinfo { min-width:0; }
.ufile .uinfo b { display:block; font-size:13.5px; font-weight:600; color: var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ufile .uinfo .track { height:6px; border-radius:4px; background: rgba(120,130,200,0.18); margin-top:8px; overflow:hidden; }
.ufile .uinfo .track i { display:block; height:100%; width:0%; border-radius:4px; background: var(--grad-brand); transition: width .2s linear; }
.ufile .ustate { font-size:11.5px; font-weight:600; color: var(--text-dim); white-space:nowrap; }
.ufile.done .ustate { color: #1AA39C; }
.ufile .ustate svg{ width:14px;height:14px;vertical-align:-2px;margin-right:3px; }

/* right info card */
.import-aside .mini-steps { display: grid; gap: 14px; }
.mini-step {
  display:flex; gap:14px; align-items:flex-start;
  padding: 18px; border-radius: var(--radius-sm);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .3s, box-shadow .3s;
}
.mini-step:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9); }
.mini-step .num {
  flex:none; width:32px; height:32px; border-radius:50%;
  display:grid; place-items:center; font-weight:700; font-size:13px; color:#fff;
  background: var(--grad-brand); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px -6px rgba(91,108,240,0.6);
}
.mini-step b { font-size: 15px; color: var(--ink); }
.mini-step p { color: var(--text-muted); font-size: 13.5px; margin-top:3px; }

/* ============================================================
   STYLE CARDS
   ============================================================ */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.style-card {
  position: relative;
  border-radius: var(--radius);
  padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  cursor: pointer;
  text-align: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, background .35s;
  overflow: hidden;
}
.style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95); }
.style-card.active { border-color: rgba(91,124,240,0.55); box-shadow: 0 0 0 2px rgba(91,124,240,0.45), var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95); background: rgba(255,255,255,0.7); }
.style-card .check {
  position:absolute; top:14px; right:14px; width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center; background: var(--grad-brand); color:#fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 14px -6px rgba(91,108,240,0.7);
  opacity:0; transform: scale(.6); transition:.28s;
}
.style-card .check svg{width:14px;height:14px;}
.style-card.active .check { opacity:1; transform:scale(1); }

/* mini preview thumbnail — glossy slide */
.thumb {
  position: relative;
  aspect-ratio: 16/10; border-radius: 14px; overflow:hidden;
  border: 1px solid rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: grid; grid-template-rows: auto 1fr; gap: 7px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 22px -14px rgba(40,50,95,0.4);
}
.thumb::before { content:""; position:absolute; inset:0; background: linear-gradient(130deg, rgba(255,255,255,0.45), rgba(255,255,255,0) 45%); pointer-events:none; }
.thumb .t-title { height: 9px; border-radius: 4px; width: 50%; }
.thumb .t-body { display: grid; gap: 6px; align-content: start; }
.thumb .t-body .l { height: 5px; border-radius: 3px; }
.thumb .t-body .l.a { width: 90%; } .thumb .t-body .l.b{width:70%;} .thumb .t-body .l.c{width:80%;}
.thumb .t-row { display:flex; gap:7px; margin-top:5px; }
.thumb .t-row i { flex:1; height: 28px; border-radius:8px; display:block; }

/* per-style theming */
.thumb.business { background: linear-gradient(160deg,#1E2A44,#16203A); }
.thumb.business .t-title{ background: var(--gold); }
.thumb.business .t-body .l{ background: rgba(255,255,255,0.30); }
.thumb.business .t-row i{ background: linear-gradient(160deg, rgba(227,184,115,0.5), rgba(227,184,115,0.18)); }

.thumb.minimal { background: linear-gradient(160deg,#FFFFFF,#EEF1F8); }
.thumb.minimal .t-title{ background:#1B1E2B; }
.thumb.minimal .t-body .l{ background: rgba(27,30,43,0.16); }
.thumb.minimal .t-row i{ background:#E6E9F2; }

.thumb.pitch { background: linear-gradient(160deg,#6E5CF0,#9B7CF2); }
.thumb.pitch .t-title{ background: #fff; }
.thumb.pitch .t-body .l{ background: rgba(255,255,255,0.45); }
.thumb.pitch .t-row i{ background: rgba(255,255,255,0.30); }

.thumb.edu { background: linear-gradient(160deg,#22C4C0,#3FD0B8); }
.thumb.edu .t-title{ background: #fff; }
.thumb.edu .t-body .l{ background: rgba(255,255,255,0.5); }
.thumb.edu .t-row i{ background: rgba(255,255,255,0.32); }

.thumb.report { background: linear-gradient(160deg,#F4F6FC,#E3E9F6); }
.thumb.report .t-title{ background: var(--indigo); }
.thumb.report .t-body .l{ background: rgba(40,50,95,0.18); }
.thumb.report .t-row i{ background: linear-gradient(160deg, rgba(91,124,240,0.4), rgba(91,124,240,0.14)); }

.thumb.creative { background: linear-gradient(135deg,#8B6CF0,#F2A6B0 60%,#E3B873); }
.thumb.creative .t-title{ background: #fff; }
.thumb.creative .t-body .l{ background: rgba(255,255,255,0.5); }
.thumb.creative .t-row i{ background: rgba(255,255,255,0.3); }

.style-card h4 { font-size: 16px; font-weight:600; }
.style-card p { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

.styles-action { text-align:center; margin-top: 34px; }
.styles-action .picked { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.styles-action .picked b { color: var(--indigo); }

/* generation output */
.gen-output {
  margin: 26px auto 0; max-width: 640px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border:1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
  overflow:hidden;
  display: none;
}
.gen-output.show { display:block; animation: fadeUp .5s ease both; }
.gen-bar { padding: 15px 18px; display:flex; align-items:center; gap:12px; border-bottom:1px solid var(--glass-edge); }
.gen-bar .gdot{width:10px;height:10px;border-radius:50%;background:var(--grad-brand);box-shadow:0 0 10px rgba(120,110,240,0.7); animation: blink 1.2s infinite;}
@keyframes blink {50%{opacity:.35;}}
.gen-bar b{font-size:14px; color: var(--ink);}
.gen-bar .gpct{margin-left:auto;font-weight:700;color:var(--indigo);font-variant-numeric:tabular-nums;}
.gen-prog{height:5px;background:rgba(120,130,200,0.18);}
.gen-prog i{display:block;height:100%;width:0;background:var(--grad-brand);transition:width .15s linear;}
.gen-result{padding:22px; display:none;}
.gen-result.show{display:block;}
.gen-result .ok{display:flex;align-items:center;gap:10px;color:#1AA39C;font-weight:600;margin-bottom:16px;}
.gen-result .ok svg{ width:20px;height:20px;flex:none; }
.gen-slides{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.gen-slides .gs{position:relative;border-radius:12px;background:linear-gradient(160deg,#FFFFFF,#F1F4FC);padding:12px;box-shadow:0 14px 30px -16px rgba(40,50,95,0.4), inset 0 1px 0 rgba(255,255,255,0.9);border:1px solid rgba(255,255,255,0.8);overflow:hidden;}
.gen-slides .gs::before{content:"";position:absolute;inset:0;background:linear-gradient(130deg,rgba(255,255,255,0.6),rgba(255,255,255,0) 42%);pointer-events:none;}
.gen-slides .gs .b{height:7px;border-radius:4px;background:var(--grad-brand);width:60%;margin-bottom:7px;}
.gen-slides .gs .l{height:5px;border-radius:3px;background:#D7DCEC;margin-bottom:5px;}
.gen-slides .gs .l.s{width:70%;}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px){ .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95); }
.step .step-n {
  font-family: var(--font-display); font-size: 13px; font-weight:700; letter-spacing:.06em;
  background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color: transparent;
}
.step .step-ic {
  width: 54px; height: 54px; border-radius: 16px; margin: 16px 0;
  display:grid; place-items:center;
  background: var(--grad-brand);
  box-shadow: 0 12px 26px -10px rgba(91,108,240,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}
.step .step-ic svg{ width:24px;height:24px;color:#fff; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.benefit {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .35s, box-shadow .35s;
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95); }
.benefit .b-ic {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display:grid; place-items:center;
  background: var(--glass-bg-strong);
  border:1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.benefit .b-ic svg{ width:22px;height:22px; color: var(--indigo); }
.benefit h4 { font-size: 17px; margin-bottom: 6px; }
.benefit p { color: var(--text-muted); font-size: 14px; }

.audience {
  margin-top: 36px; padding: 30px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
  text-align: center;
}
.audience b { color: var(--ink); font-size: 17px; font-family: var(--font-display); }
.audience .tags { display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px; }
.audience .tags span {
  font-size: 13.5px; font-weight: 500; color: var(--text); padding: 9px 17px; border-radius:100px;
  background: var(--glass-bg-strong); border:1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ============================================================
   BEFORE / AFTER — interactive comparison slider
   ============================================================ */
.compare-section { padding-top: clamp(44px, 6vw, 80px); }
.compare-frame { max-width: 1000px; margin: 0 auto; }

.compare {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.6);
}
.cmp-layer { position: absolute; inset: 0; }
.cmp-after  { z-index: 1; }
.cmp-before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }

/* gentle intro nudge animation (disabled while dragging) */
.compare.intro .cmp-before { transition: clip-path .85s cubic-bezier(.4,0,.2,1); }
.compare.intro .cmp-handle { transition: left .85s cubic-bezier(.4,0,.2,1); }

/* corner labels */
.cmp-tag {
  position: absolute; top: 4%; z-index: 4;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  padding: 6px 13px; border-radius: 100px;
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.5);
  pointer-events: none;
}
.cmp-tag-before { left: 4%;  background: rgba(31, 73, 125, 0.82); color: #fff; }
.cmp-tag-after  { right: 4%; background: rgba(255,255,255,0.72); color: var(--indigo); border: 1px solid rgba(91,124,240,0.4); }

/* drag handle */
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 0; z-index: 5; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
}
.cmp-line {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 1px rgba(40,50,95,0.14), 0 0 14px rgba(255,255,255,0.55);
}
.cmp-grip {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.cmp-grip svg { width: 22px; height: 22px; }
.compare:hover .cmp-grip { transform: scale(1.08); }
.compare.dragging .cmp-grip { transform: scale(1.14); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 7px rgba(91,124,240,0.16); }
.cmp-handle:focus-visible { outline: none; }
.cmp-handle:focus-visible .cmp-grip { box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 4px rgba(91,124,240,0.5); }

.compare-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; color: var(--text-muted); font-size: 13.5px; font-weight: 500;
}
.compare-hint svg { width: 18px; height: 18px; color: var(--indigo); }

/* ---------- AFTER slide (polished B-Present) ---------- */
.slide-after {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 5.5cqw 6cqw; overflow: hidden;
  font-family: var(--font-body); color: var(--ink);
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F8FE 58%, #EFF1FB 100%);
}
.slide-after::before {
  content: ""; position: absolute; top: -28%; right: -8%; width: 52%; height: 80%;
  background: radial-gradient(circle, rgba(120,140,255,0.16), transparent 70%); pointer-events: none;
}
.sa-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5cqw; background: var(--grad-brand); }
.sa-body { flex: 1; min-height: 0; position: relative; }
.sa-eyebrow {
  display: inline-block; font-size: 1.5cqw; letter-spacing: .26em; text-transform: uppercase; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sa-title { font-size: 6cqw; line-height: 1; letter-spacing: -0.035em; font-weight: 700; margin: 1.3cqw 0 3.4cqw; color: var(--ink); }
.sa-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 5cqw; align-items: center; }
.sa-stats { display: grid; gap: 2.6cqw; }
.sa-stat b { display: block; font-size: 4.4cqw; line-height: 1; letter-spacing: -0.03em; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sa-stat span { font-size: 1.65cqw; color: var(--text-muted); }
.sa-bars { display: flex; align-items: flex-end; gap: 2.6cqw; height: 17cqw; border-bottom: 0.25cqw solid rgba(40,50,95,0.12); }
.sa-bars i { flex: 1; height: var(--h); border-radius: 1.3cqw 1.3cqw 0 0; background: var(--grad-brand);
  box-shadow: 0 1cqw 2cqw -0.6cqw rgba(91,108,240,0.55); }
.sa-axis { display: flex; gap: 2.6cqw; margin-top: 1.1cqw; }
.sa-axis span { flex: 1; text-align: center; font-size: 1.5cqw; color: var(--text-dim); }
.sa-foot { display: flex; align-items: center; justify-content: space-between; }
.sa-brand { display: flex; align-items: center; gap: 1.4cqw; font-weight: 600; font-size: 1.9cqw; color: var(--ink); }
.sa-logo { width: 3.2cqw; height: 3.2cqw; border-radius: 0.9cqw; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 2cqw; font-weight: 700; }
.sa-dots { display: flex; align-items: center; gap: 1cqw; }
.sa-dots i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: rgba(40,50,95,0.18); }
.sa-dots i.on { width: 3.6cqw; border-radius: 1cqw; background: var(--grad-brand); }

/* ---------- BEFORE slide (dated default Office) ---------- */
.slide-before {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #fff; color: #000; overflow: hidden;
  font-family: "Times New Roman", Times, Georgia, serif;
}
.sb-titlebar { background: linear-gradient(180deg, #4F81BD, #1F497D); padding: 2.4cqw 5cqw 2.6cqw; border-bottom: 0.4cqw solid #15335c; }
.sb-title { color: #fff; font-family: inherit; font-weight: 700; font-size: 5.4cqw; line-height: 1; text-decoration: underline;
  text-shadow: 0.18cqw 0.18cqw 0 rgba(0,0,0,0.4); }
.sb-body { flex: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3cqw; padding: 3.4cqw 5cqw; min-height: 0; align-items: start; }
.sb-bullets { list-style: disc; padding-left: 4cqw; display: grid; gap: 1.5cqw; align-content: start; }
.sb-bullets li { font-size: 2.5cqw; line-height: 1.22; color: #111; }
.sb-chart { border: 0.3cqw solid #000; background: #fdfdfd; padding: 2cqw; align-self: center; }
.sb-bars { display: flex; align-items: flex-end; gap: 2.2cqw; height: 19cqw; }
.sb-bars i { flex: 1; height: var(--h); border: 0.25cqw solid #000; }
.sb-foot { text-align: right; padding: 1.4cqw 5cqw; font-size: 1.55cqw; color: #8a8a8a; font-family: inherit; }

@media (max-width: 560px){
  .cmp-grip { width: 40px; height: 40px; }
  .cmp-grip svg { width: 19px; height: 19px; }
  .cmp-tag { font-size: 10.5px; padding: 5px 10px; }
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display:grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  align-items: stretch;
}
.plan {
  position: relative;
  display:flex; flex-direction:column;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .35s, box-shadow .35s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95); }
.plan.featured {
  background: linear-gradient(170deg, rgba(255,255,255,0.78), rgba(244,247,255,0.6));
  border-color: rgba(91,124,240,0.45);
  box-shadow: 0 0 0 2px rgba(91,124,240,0.4), var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95);
}
.plan .ribbon {
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  font-size:11.5px; font-weight:700; letter-spacing:.03em;
  padding:7px 15px; border-radius:100px; color:#fff;
  background: var(--grad-brand); box-shadow: 0 8px 18px -6px rgba(91,108,240,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.plan .p-name { font-family:var(--font-display); font-size:18px; font-weight:600; color: var(--ink); }
.plan .p-desc { color: var(--text-muted); font-size:13.5px; margin-top:4px; min-height: 56px; }
.plan .p-price { margin: 18px 0 6px; display:flex; align-items:baseline; gap:6px; }
.plan .p-price .amt { font-family:var(--font-display); font-size: 42px; font-weight:700; letter-spacing:-0.03em; color: var(--ink); }
.plan .p-price .per { color: var(--text-dim); font-size: 14px; }
.plan ul { display:grid; gap:12px; margin: 22px 0 26px; }
.plan ul li { display:flex; gap:10px; font-size:14px; color: var(--text); align-items:center; }
.plan ul li svg { width:20px;height:20px;flex:none;color:#fff; background: var(--grad-brand); border-radius:50%; padding:4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); }
.plan .btn { margin-top:auto; }

/* pay-as-you-go note */
.payg {
  max-width: 780px;
  margin: 30px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  text-align: center;
  padding: 16px 26px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.payg svg { width: 20px; height: 20px; flex: none; color: var(--indigo); }
.payg b { color: var(--ink); font-weight: 600; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { text-align:center; }
.cta-box {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 60px);
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95);
  overflow: hidden;
}
.cta-box::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(600px 280px at 50% -10%, rgba(120,140,255,0.35), transparent 65%),
    linear-gradient(130deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 40%);
}
.cta-box > * { position: relative; z-index:1; }
.cta-box h2 { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 16px; letter-spacing: -0.03em; }
.cta-box p { color: var(--text-muted); max-width: 520px; margin: 0 auto 30px; font-size: clamp(15px,1.7vw,18px); }
.cta-box .hero-cta{ justify-content:center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: 40px; padding-block: 56px 36px; }
.footer .container { border-top: 1px solid var(--glass-edge); padding-top: 48px; }
.footer-grid { display:grid; gap: 36px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand{ grid-column: 1 / -1; } }
.footer-brand p { color: var(--text-muted); font-size:14px; margin-top:14px; max-width: 280px; }
.footer h5 { font-family:var(--font-display); font-size:12.5px; letter-spacing:.04em; text-transform:uppercase; color: var(--text-dim); margin-bottom:14px; }
.footer ul { display:grid; gap:10px; }
.footer ul a { color: var(--text-muted); font-size:14px; transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { margin-top:44px; padding-top:24px; border-top:1px solid var(--glass-edge); display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center; color:var(--text-dim); font-size:13px; }
.footer-bottom .socials{ display:flex; gap:10px; }
.footer-bottom .socials a{ width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--text-muted);background:var(--glass-bg-strong);border:1px solid var(--glass-border);box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);transition:.25s; }
.footer-bottom .socials a:hover{ color:var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9); }
.footer-bottom .socials svg{ width:17px;height:17px; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.auth[hidden] { display: none; }
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(40, 46, 80, 0.28);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; transition: opacity .3s ease;
}
.auth.open .auth-backdrop { opacity: 1; }

.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  max-height: calc(100dvh - 44px); overflow-y: auto;
  padding: clamp(26px, 4vw, 38px);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95);
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.auth.open .auth-card { opacity: 1; transform: none; }

.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--text-muted);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
  transition: color .2s, background .2s, transform .2s;
}
.auth-close:hover { color: var(--ink); background: rgba(255,255,255,0.85); transform: rotate(90deg); }
.auth-close svg { width: 17px; height: 17px; }

.auth-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
.auth-brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: 0 6px 16px -6px rgba(91,108,240,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.auth-brand .logo svg { width: 18px; height: 18px; }
.auth-brand span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.auth-title { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; line-height: 1.5; }

.auth-form { display: grid; gap: 16px; }
.auth-group { display: grid; gap: 7px; }
.auth-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.auth-field {
  position: relative;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(120,130,210,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.auth-field:focus-within { border-color: rgba(91,124,240,0.6); background: rgba(255,255,255,0.65); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 3px rgba(91,124,240,0.16); }
.auth-field input {
  width: 100%; background: transparent; border: none; outline: none;
  padding: 14px 16px; font-size: 15px; color: var(--ink); border-radius: var(--radius-sm);
}
.auth-field input::placeholder { color: var(--text-dim); }
.auth-field input[type="password"], .auth-field input#authPwd { padding-right: 48px; }
.auth-eye {
  position: absolute; inset-block: 0; right: 8px; width: 34px;
  display: grid; place-items: center; color: var(--text-dim);
  transition: color .2s;
}
.auth-eye:hover { color: var(--ink); }
.auth-eye svg { width: 19px; height: 19px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--indigo); }
.auth-link { color: var(--indigo); font-weight: 500; }
.auth-link:hover { text-decoration: underline; }

.auth-submit-loading { pointer-events: none; opacity: .75; }

.auth-divider { position: relative; display: flex; align-items: center; justify-content: center; margin: 20px 0; }
.auth-divider::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--glass-edge); }
.auth-divider span { position: relative; padding: 0 14px; font-size: 12.5px; color: var(--text-dim); background: transparent; }

.auth-google { gap: 11px; }
.auth-google svg { width: 19px; height: 19px; }

.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.auth-switch a { color: var(--indigo); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* Signup-only fields (first/last/username/confirm) — revealed by .auth-form.signup */
.auth-signup-only { display: none; }
.auth-form.signup .auth-signup-only { display: block; }
.auth-form.signup .auth-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-names .auth-group { margin: 0; }

body.auth-lock { overflow: hidden; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; } .reveal.d4{ transition-delay:.32s; } .reveal.d5{ transition-delay:.4s; }

@keyframes fadeUp { from { opacity:0; transform: translateY(12px);} to{opacity:1;transform:none;} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 999px){
  .navpill { display:none; }
  .nav-actions .nav-cta { display:none; }
  .nav-toggle { display:block; }

  .nav-mobile {
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:78px; left:var(--gutter); right:var(--gutter);
    padding:14px; gap:4px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    border:1px solid var(--glass-border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.95);
    opacity:0; transform: translateY(-10px) scale(.98); transform-origin: top right;
    pointer-events:none;
    transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
  }
  .nav-mobile.open { opacity:1; transform:none; pointer-events:auto; }
  .nav-mobile a { padding:12px 14px; color: var(--text); font-size:15px; font-weight:500; border-radius: 12px; transition: color .2s, background .2s; }
  .nav-mobile a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,0.6); }
  .nav-mobile .nav-cta-mobile { display:inline-flex; color:#fff; margin-top:8px; }
}

@media (max-width: 620px){
  .hero { padding-top: 112px; }
  .footer-bottom{ flex-direction:column; text-align:center; }
  .gen-slides{ grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
