/* ============================================================
   BabelBar — globals & design tokens
   Dark glassmorphism · blue→purple accent · SF Pro stack
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #16171D;
  --bg-deep:       #0F1014;
  --surface:       #1C1E27;
  --surface-2:     #23252E;
  --hairline:      rgba(255, 255, 255, 0.08);
  --hairline-2:    rgba(255, 255, 255, 0.12);

  /* Text */
  --fg:            #FFFFFF;
  --fg-2:          rgba(255, 255, 255, 0.62);
  --fg-3:          rgba(255, 255, 255, 0.40);

  /* Accent */
  --accent:        #5C73F2;
  --accent-2:      #9961F2;
  --accent-grad:   linear-gradient(105deg, #5C73F2 0%, #9961F2 100%);
  --accent-soft:   rgba(92, 115, 242, 0.16);
  --success:       #4CD976;

  /* Glow */
  --glow:          0 0 60px rgba(92, 115, 242, 0.28);

  /* Radii */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 24px 70px rgba(0,0,0,0.55);
  --shadow-float: 0 40px 120px rgba(0,0,0,0.6), 0 2px 0 rgba(255,255,255,0.06) inset;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-wide ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(153,97,242,0.18), transparent 60%),
    radial-gradient(1000px 700px at 12% 4%, rgba(92,115,242,0.16), transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.page-bg::after {
  /* subtle film grain via tiny noise — pure CSS, very faint */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

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

/* ---------- utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent); opacity: 0.7;
}
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 680;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  color: var(--fg-2);
  font-size: clamp(16px, 1.5vw, 18px);
  margin-top: 16px;
  max-width: 56ch;
  text-wrap: pretty;
}

/* glass card */
.glass {
  background: linear-gradient(180deg, rgba(35,37,46,0.72), rgba(28,30,39,0.62));
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-1);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding-inline: 22px;
  border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(92,115,242,0.40), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(120,100,242,0.55), 0 1px 0 rgba(255,255,255,0.3) inset; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline-2);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 14px; border-radius: 10px; }
.heart { color: #ff7a9c; }

/* kbd / badge */
.kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
  color: var(--fg);
  display: inline-flex; align-items: center; gap: 4px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* media placeholder (striped, monospace label) — swap with real screenshots */
.ph {
  position: relative;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 12px, rgba(255,255,255,0) 12px 24px),
    linear-gradient(180deg, #1a1c25, #15161d);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--fg-3);
}
.ph span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 10px 14px;
  color: var(--fg-3);
}
.ph::before {
  content: "▦";
  position: absolute; top: 12px; left: 14px;
  font-size: 13px; color: rgba(255,255,255,0.18);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(18,19,25,0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
}
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 640; font-size: 17px; letter-spacing: -0.01em; }
.logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(92,115,242,0.45));
  flex: none;
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--fg-2); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(54px, 8vw, 96px)); padding-bottom: clamp(60px, 8vw, 100px); position: relative; }
.hero .container { display: grid; grid-template-columns: 1fr 1.18fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  padding: 6px 13px 6px 8px; border-radius: 999px;
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 720;
  text-wrap: balance;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--fg-2); font-size: clamp(16px, 1.7vw, 19px); margin-top: 22px; max-width: 50ch; text-wrap: pretty; }
.hero-sub .kbd { transform: translateY(-1px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 30px; font-size: 13px; color: var(--fg-3); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hero-trust b { color: var(--fg-2); font-weight: 600; }
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }

/* floating app window */
.hero-art { position: relative; }
.float-win {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(35,37,46,0.9), rgba(24,26,34,0.88));
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-13deg) rotateX(5deg) translateZ(0);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hero-art:hover .float-win { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); }
.hero-art::before {
  content: ""; position: absolute; inset: -10% -6% -16% -6%;
  background: var(--accent-grad);
  filter: blur(70px); opacity: 0.28; z-index: -1;
  border-radius: 50%;
}
.win-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding-inline: 14px; border-bottom: 1px solid var(--hairline); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-dots i:nth-child(1){ background:#ff5f57; } .win-dots i:nth-child(2){ background:#febc2e; } .win-dots i:nth-child(3){ background:#28c840; }
.win-title { font-size: 12px; color: var(--fg-3); margin-left: 6px; font-weight: 500; }
.win-title .lang { color: var(--fg-2); }

.win-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.tfield { background: rgba(255,255,255,0.035); border: 1px solid var(--hairline); border-radius: 12px; padding: 13px 15px; }
.tfield .lab { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.tfield .txt { font-size: 15px; color: var(--fg); line-height: 1.4; }
.tfield.out { border-color: rgba(92,115,242,0.4); background: rgba(92,115,242,0.08); box-shadow: var(--glow); }
.tfield.out .txt { color: #fff; }
.win-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.win-foot .prov { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); }
.win-foot .prov .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
.hero-art { animation: floaty 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .hero-art { animation: none; } }

/* ============================================================
   PROVIDER STRIP
   ============================================================ */
.providers { padding-block: 38px; border-block: 1px solid var(--hairline); }
.providers .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.providers .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.prov-row { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.prov-logo { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 640; letter-spacing: -0.02em; color: var(--fg-3); transition: color .25s, opacity .25s; opacity: .8; }
.prov-logo:hover { color: var(--fg); opacity: 1; }
.prov-mark { width: 19px; height: 19px; flex: none; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feat {
  grid-column: span 4;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(35,37,46,0.55), rgba(26,28,36,0.5));
  border: 1px solid var(--hairline);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s, border-color .3s, background .3s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--hairline-2); background: linear-gradient(180deg, rgba(40,42,52,0.7), rgba(28,30,39,0.6)); }
.feat.wide { grid-column: span 6; }
.feat .ph { width: 100%; aspect-ratio: 16/10; }
.feat-ic {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--accent-soft); border: 1px solid rgba(92,115,242,0.3);
  color: #b9c2ff;
}
.feat h3 { font-size: 18px; font-weight: 620; letter-spacing: -0.01em; }
.feat p { color: var(--fg-2); font-size: 14.5px; margin-top: 4px; }
.feat .keys { margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 172px;
  gap: 16px;
}
.bt {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(35,37,46,0.55), rgba(26,28,36,0.5));
  border: 1px solid var(--hairline);
  padding: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, background .3s;
}
.bt:hover { transform: translateY(-4px); border-color: var(--hairline-2); background: linear-gradient(180deg, rgba(40,42,52,0.7), rgba(28,30,39,0.6)); }
.bt .bt-ic {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--accent-soft); border: 1px solid rgba(92,115,242,0.3);
  color: #b9c2ff; flex: none;
}
.bt .bt-label { margin-top: auto; }
.bt .bt-label h3 { font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.bt .bt-label p { color: var(--fg-2); font-size: 13.5px; margin-top: 5px; line-height: 1.4; }
.bt .bt-label .meta { color: var(--fg-3); font-size: 12.5px; margin-top: 7px; }

/* spans */
.bt.x3 { grid-column: span 3; }
.bt.x4 { grid-column: span 4; }
.bt.x6 { grid-column: span 6; }
.bt.y2 { grid-row: span 2; }

/* hero tile */
.bt-hero {
  align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(130% 120% at 50% 0%, rgba(92,115,242,0.22), transparent 62%),
    radial-gradient(120% 120% at 50% 110%, rgba(153,97,242,0.18), transparent 60%),
    linear-gradient(180deg, rgba(28,30,40,0.85), rgba(18,20,28,0.85));
  gap: 16px;
}
.bt-hero img { width: 56px; height: 56px; border-radius: 14px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
.bt-hero .wm {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bt-hero .sub { color: var(--fg-2); font-size: 14px; max-width: 24ch; }

/* translation-example quote tiles */
.bt-quote { justify-content: flex-start; gap: 0; }
.bt-quote .src { color: var(--fg-3); font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; line-height: 1.3; }
.bt-quote .arrow { color: var(--accent); font-size: 15px; margin: 8px 0; }
.bt-quote .tgt {
  font-size: clamp(20px, 2.1vw, 27px); font-weight: 640; letter-spacing: -0.02em; line-height: 1.16;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bt-quote .bt-label { margin-top: auto; padding-top: 16px; }

/* image / screenshot tiles use existing .ph, filling the tile */
.bt-img { padding: 0; }
.bt-img .ph { position: absolute; inset: 0; border: none; border-radius: 0; }
.bt-img .bt-label {
  position: relative; z-index: 2;
  margin: auto 0 0; padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(8,9,13,0.78) 70%);
}
.bt-img .bt-label h3 { font-size: 16px; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 158px; }
  .bt.x3, .bt.x4, .bt.x6 { grid-column: span 1; }
  .bt.x6, .bt-hero { grid-column: span 2; }
  .bt.y2 { grid-row: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bt, .bt.x3, .bt.x4, .bt.x6, .bt-hero { grid-column: span 1; }
}

/* ============================================================
   PLAYGROUND  (see playground.css block below — kept here)
   ============================================================ */
.pg-wrap { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 28px; align-items: stretch; }

/* desktop "wallpaper" behind the glass replica so blur is visible */
.pg-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  min-height: 460px;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: 40px;
  background:
    radial-gradient(600px 400px at 25% 20%, #6d4bd8, transparent 60%),
    radial-gradient(500px 500px at 80% 75%, #2a6df0, transparent 55%),
    radial-gradient(400px 400px at 60% 30%, #d84b9e, transparent 60%),
    linear-gradient(135deg, #1a1430, #0f1530);
}
.pg-stage::after {
  content: "macOS desktop — your real wallpaper sits here";
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.35);
}

/* the live replica window — 1:1 with the real BabelBar window, driven by CSS vars */
.replica {
  --accent: #5C73F2;
  --rbg: #2A2D36;      /* Background = window chrome (lighter slate) */
  --surface: #16171D;  /* Surface    = text fields (near-black insets) */
  --rfg: #FFFFFF;
  --bg-opacity: 0.90;
  --blur: 60px;
  --text-size: 14px;

  width: 540px; max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(0,0,0,0.4);
  backdrop-filter: blur(var(--blur)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(135%);
  color: var(--rfg);
  font-size: var(--text-size);
  position: relative;
  transition: filter .15s linear;
}
.replica .fill {
  position: absolute; inset: 0; z-index: 0;
  background: var(--rbg);
  opacity: var(--bg-opacity);
}
.replica > *:not(.fill) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .replica, .replica .r-field { transition: background-color .25s, color .25s, border-color .25s; }
}

/* top bar */
.replica .r-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 14px; }
.r-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.r-name { font-weight: 700; font-size: calc(var(--text-size) + 2px); letter-spacing: -0.01em; opacity: .92; }
.r-lang { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-size: var(--text-size); }
.r-lang .l { opacity: .9; }
.r-lang svg { width: 18px; height: 18px; color: var(--rfg); opacity: .45; flex: none; }
.r-right { display: flex; align-items: center; gap: 17px; }
.r-clear { color: var(--rfg); opacity: .5; font-size: var(--text-size); }
.r-clear:hover { opacity: .8; }
.r-ic { display: inline-grid; place-items: center; opacity: .5; cursor: default; }
.r-ic:hover { opacity: .8; }
.r-ic svg { width: 18px; height: 18px; color: var(--rfg); display: block; }

/* fields */
.replica .r-body { padding: 4px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.replica .r-field {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 20px 22px 16px;
  min-height: 150px;
  display: flex; flex-direction: column;
}
.replica .r-field .r-ph { opacity: .42; line-height: 1.45; flex: 1; }
.replica .r-field .r-text { opacity: .88; line-height: 1.45; flex: 1; white-space: pre-line; font-size: calc(var(--text-size) + 3px); }
.replica .r-grip { display: flex; justify-content: center; padding: 1px 0; }
.replica .r-grip span { width: 46px; height: 5px; border-radius: 999px; background: var(--rfg); opacity: .2; }
.replica .r-field .r-foot-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; opacity: .45; }
.replica .r-field .r-foot-row svg { width: 19px; height: 19px; color: var(--rfg); display: block; }
.r-meta { display: inline-flex; align-items: center; gap: 11px; margin-left: auto; font-variant-numeric: tabular-nums; }

/* footer */
.replica .r-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 18px; gap: 12px; }
.replica .r-foot .r-foot-left { display: inline-flex; align-items: center; min-width: 0; }
.replica .r-foot .r-insert {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 26px; border-radius: 13px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--rfg); font-weight: 560; font-size: var(--text-size);
  white-space: nowrap; cursor: default;
}
.replica .r-foot .r-insert:hover { background: rgba(255,255,255,0.08); }
.replica .r-foot .r-insert .ch { color: var(--accent); font-weight: 700; }
.replica .r-foot .r-badge {
  font-family: var(--mono); padding: 5px 11px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent); font-size: calc(var(--text-size) - 2px); font-weight: 600; white-space: nowrap;
}
.replica .r-foot .r-hint { opacity: .5; margin-left: 11px; font-size: var(--text-size); }
.replica .r-foot .r-prov { display: inline-flex; align-items: center; gap: 8px; opacity: .8; font-size: var(--text-size); white-space: nowrap; }
.replica .r-foot .r-prov .d { width: 8px; height: 8px; border-radius: 50%; background: #4CD976; box-shadow: 0 0 8px #4CD976; }
.replica .r-resize { position: absolute; right: 10px; bottom: 10px; width: 15px; height: 15px; opacity: .28; z-index: 2;
  background:
    linear-gradient(135deg, transparent 46%, var(--rfg) 46%, var(--rfg) 54%, transparent 54%) no-repeat,
    linear-gradient(135deg, transparent 71%, var(--rfg) 71%, var(--rfg) 79%, transparent 79%) no-repeat;
}

/* ---------- controls panel — mirrors the app's Theme settings ---------- */
.pg-controls { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.pg-head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.pg-head svg { width: 22px; height: 22px; color: var(--accent); }
.pg-title { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); font-weight: 600; }

.pg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; }
.pg-label { font-size: 15px; color: var(--fg); }

/* segmented Appearance control */
.pg-seg { display: inline-flex; background: rgba(0,0,0,0.30); border: 1px solid var(--hairline); border-radius: 10px; padding: 3px; }
.pg-seg button { padding: 6px 17px; border-radius: 7px; font-size: 14px; font-weight: 560; color: var(--fg-2); transition: .18s; }
.pg-seg button.active { background: rgba(255,255,255,0.15); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.35); }

/* color rows */
.pg-colors { display: flex; flex-direction: column; }
.pg-color-end { display: flex; align-items: center; gap: 16px; }
.pg-hex { width: 90px; text-align: right; font-family: var(--mono); font-size: 13.5px; color: var(--fg-3); background: none; border: none; padding: 0; text-transform: uppercase; }
.pg-hex:focus { outline: none; color: var(--fg); }
.pg-swatch { width: 48px; height: 30px; border-radius: 9px; border: 1px solid var(--hairline-2); overflow: hidden; position: relative; cursor: pointer; flex: none; padding: 0; }
.pg-swatch:hover { border-color: rgba(255,255,255,0.32); }
.pg-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- custom color picker popover ---------- */
.cp-pop {
  position: fixed; z-index: 1000; width: 248px; padding: 13px;
  background: #1b1c22; border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(-4px) scale(0.98); transform-origin: top center;
  transition: opacity .14s ease, transform .14s ease;
}
.cp-pop.show { opacity: 1; transform: translateY(0) scale(1); }
.cp-caret {
  position: absolute; top: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg);
  background: #1b1c22; border-left: 1px solid rgba(255,255,255,0.10); border-top: 1px solid rgba(255,255,255,0.10);
  border-top-left-radius: 4px;
}
.cp-caret.down { top: auto; bottom: -7px; transform: translateX(-50%) rotate(225deg); }
.cp-sv {
  position: relative; width: 100%; height: 152px; border-radius: 11px; cursor: crosshair;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); touch-action: none; overflow: hidden;
}
.cp-sv-thumb {
  position: absolute; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%); pointer-events: none;
}
.cp-hue-wrap { margin-top: 14px; }
input[type=range].cp-hue {
  -webkit-appearance: none; appearance: none; width: 100%; height: 13px; border-radius: 999px; outline: none;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
input[type=range].cp-hue::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: transparent; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.5); cursor: pointer;
}
input[type=range].cp-hue::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: transparent; border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.5); cursor: pointer;
}
.cp-bottom { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.cp-preview { width: 42px; height: 34px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.cp-hex-input {
  flex: 1; min-width: 0; height: 34px; padding: 0 12px; border-radius: 9px;
  background: rgba(0,0,0,0.30); border: 1px solid rgba(255,255,255,0.10);
  color: var(--fg); font-family: var(--mono); font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em;
}
.cp-hex-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(92,115,242,0.30); }

/* text size */
.pg-num-wrap { display: flex; align-items: center; gap: 11px; }
.pg-num { width: 78px; text-align: center; font-size: 14.5px; color: var(--fg); background: rgba(0,0,0,0.28); border: 1px solid var(--hairline); border-radius: 9px; padding: 9px 10px; }
.pg-num:focus { outline: none; border-color: var(--accent); }
.pg-unit { color: var(--fg-3); font-size: 14px; }

/* sliders */
.pg-sliders { display: flex; flex-direction: column; padding-top: 4px; }
.pg-row.slider { gap: 16px; }
.pg-row.slider .pg-label { flex: none; }
.pg-row.slider input[type=range] { flex: 1; margin-left: auto; max-width: 250px; }
.pg-val { flex: none; width: 32px; text-align: right; font-family: var(--mono); font-size: 13.5px; color: var(--fg-2); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 2px 8px rgba(92,115,242,0.5); border: 2px solid #fff2; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; box-shadow: 0 2px 8px rgba(92,115,242,0.5); }

/* divider lines between groups */
.pg-divider { height: 1px; background: var(--hairline); margin: 16px 0; }

/* save / actions */
.pg-save { width: 100%; height: 52px; margin-top: 22px; border-radius: 13px; font-size: 15.5px; font-weight: 640; }
.pg-reset-link { margin-top: 13px; align-self: center; font-size: 13px; color: var(--fg-3); transition: .2s; }
.pg-reset-link:hover { color: var(--fg-2); }
.copied-toast { font-size: 12.5px; color: var(--success); opacity: 0; transition: opacity .3s; font-family: var(--mono); align-self: center; margin-top: 10px; }
.copied-toast.show { opacity: 1; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--r); border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(35,37,46,0.5), rgba(26,28,36,0.45)); position: relative; }
.step .n { counter-increment: step; font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step .n::before { content: "0" counter(step); }
.step h3 { font-size: 18.5px; font-weight: 620; margin-top: 14px; letter-spacing: -0.01em; }
.step p { color: var(--fg-2); font-size: 14.5px; margin-top: 8px; }
.step .line { position: absolute; top: 38px; right: -10px; width: 20px; height: 1px; background: var(--hairline-2); }

/* ============================================================
   COMMUNITY / SUPPORT
   ============================================================ */
.community .glass { padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; position: relative; overflow: hidden; }
.community .glass::before { content:""; position:absolute; width:340px; height:340px; right:-80px; top:-120px; background: var(--accent-grad); filter: blur(90px); opacity:.22; border-radius:50%; }
.community h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.community .lead { color: var(--fg-2); margin-top: 18px; font-size: 16px; max-width: 46ch; text-wrap: pretty; }
.community .note { color: var(--fg-3); font-size: 13.5px; margin-top: 22px; }
.tiers { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.tier { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hairline); background: rgba(255,255,255,0.035); transition: .25s; }
.tier:hover { border-color: rgba(92,115,242,0.45); background: rgba(92,115,242,0.07); transform: translateX(3px); }
.tier .emoji { font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border-radius: 11px; border: 1px solid var(--hairline); flex: none; }
.tier .ttitle { font-weight: 600; font-size: 15.5px; }
.tier .tdesc { color: var(--fg-3); font-size: 13px; }
.tier .price { margin-left: auto; font-weight: 680; font-size: 16px; color: var(--fg); font-family: var(--mono); }
.tier .price.feat { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; text-align: left; font-size: 17px; font-weight: 560; letter-spacing: -0.01em; transition: color .2s; }
.faq-q:hover { color: var(--accent); }
.faq-q .pm { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hairline-2); display: grid; place-items: center; font-size: 16px; color: var(--fg-2); transition: transform .3s, background .3s, color .3s; }
.faq-item.open .pm { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a .inner { padding: 0 4px 22px; color: var(--fg-2); font-size: 15px; max-width: 70ch; text-wrap: pretty; }
.faq-a .inner .kbd { transform: translateY(-1px); }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final-cta { text-align: center; }
.final-cta .glass { padding: clamp(40px, 6vw, 72px) 24px; position: relative; overflow: hidden; }
.final-cta .glass::before { content:""; position:absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(92,115,242,0.25), transparent 70%); }
.final-cta h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.03em; line-height: 1.05; font-weight: 720; position: relative; text-wrap: balance; }
.final-cta p { color: var(--fg-2); margin-top: 16px; font-size: 17px; position: relative; }
.final-cta .hero-cta { justify-content: center; position: relative; }

.footer { border-top: 1px solid var(--hairline); padding-block: 48px 40px; margin-top: 30px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .fcol h5 { font-size: 13px; color: var(--fg-3); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer .fcol a { display: block; color: var(--fg-2); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer .fcol a:hover { color: var(--fg); }
.footer .fbrand { max-width: 280px; }
.footer .fbrand a.brand { display: flex; align-items: center; gap: 11px; padding: 0; }
.footer .fbrand p { color: var(--fg-3); font-size: 14px; margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--hairline); margin-top: 36px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--fg-3); font-size: 13.5px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { max-width: 460px; }
  .float-win { transform: none; }
  .hero-art:hover .float-win { transform: none; }
  .pg-wrap { grid-template-columns: 1fr; }
  .pg-stage { min-height: 380px; padding: 28px; }
  .community .glass { grid-template-columns: 1fr; gap: 30px; }
  .feat, .feat.wide { grid-column: span 6; }
  .footer .container { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .support-text { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step .line { display: none; }
  .feat, .feat.wide { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1; }
  .color-row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .footer .container { grid-template-columns: 1fr; }
  .providers .container { gap: 18px; }
}
