/* ==========================================================================
   EdgyX site — dark violet premium landing
   Design read: dark-tech consumer landing for students, violet/indigo,
   native CSS + restrained slick motion, floating parallax product panel.
   Dials: VARIANCE 8 / MOTION 7 / DENSITY 4. One accent (violet), one radius
   system, dark theme locked. No em-dashes anywhere.
   ========================================================================== */

:root {
  --bg:        #08080e;
  --bg-2:      #0b0b14;
  --surface:   #12121d;
  --surface-2: #171724;
  --surface-3: #1e1e2e;

  --text:   #f5f4fb;
  --text-2: #a6a6bd;
  --text-3: #6f6f88;

  --line:   rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);

  --accent:        #8b5cf6;
  --accent-2:      #6d28d9;
  --accent-bright: #b39dfb;
  --accent-ink:    #ffffff;
  --accent-soft:   rgba(139,92,246,0.14);
  --accent-line:   rgba(139,92,246,0.42);
  --glow:          rgba(124,92,246,0.45);

  --good: #34d399;
  --warn: #fbbf24;

  --grad: linear-gradient(135deg, #8b5cf6, #6366f1 55%, #7c3aed);
  --grad-text: linear-gradient(120deg, #ffffff 0%, #c9bdff 55%, #8b5cf6 100%);

  --sans: 'Lexend', system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: 'Space Grotesk', 'Lexend', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

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

/* ---------- Ambient backdrop ---------- */
.bg-field { position: fixed; inset: 0; z-index: -3; background: radial-gradient(130% 100% at 50% -20%, #0d0b16, var(--bg) 55%); overflow: hidden; pointer-events: none; }
/* subtle film grain for tactile depth (not graph paper, not glow) */
.bg-field::after {
  content: ''; position: absolute; inset: 0; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* interactive cursor constellation (canvas drawn in site.js) */
#fx { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* generated-writing motif for the lead feature visual */
.cv-write { width: 100%; max-width: 300px; padding: 30px; display: grid; gap: 13px; }
.cv-badge { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-bright); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 7px 12px; border-radius: var(--r-pill); margin-bottom: 4px; }
.cv-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05)); }
.cv-line.accent { height: 15px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cv-line.typing { position: relative; }
.cv-line.typing::after { content: ''; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; background: var(--accent-bright); border-radius: 2px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  padding: 12px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, border-color .25s ease;
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--accent-line); background: rgba(139,92,246,0.08); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

.textlink { color: var(--text-2); font-weight: 500; font-size: 14.5px; transition: color .2s ease; }
.textlink:hover { color: var(--accent-bright); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,16,0.62);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(9,9,16,0.85);
  border-bottom-color: var(--line-2);
  box-shadow: 0 12px 40px -22px rgba(0,0,0,0.9);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-badge { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 26px -6px var(--glow); }
.brand-word { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.01em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 18px; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--text-2); position: relative; transition: color .2s ease; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .btn-primary { padding: 13px 26px; font-size: 15.5px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* mobile menu sheet */
.nav-sheet { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .nav-sheet {
    display: block; position: fixed; inset: 80px 0 auto 0; z-index: 99;
    background: rgba(10,10,18,0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 14px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s ease;
  }
  .nav-sheet.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-sheet a { display: block; padding: 13px 4px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-sheet .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section-pad { padding-block: 96px; }
.eyebrow {
  display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 16px;
}
.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 16.5px; max-width: 60ch; }
.section-head.center p { margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 84px; min-height: min(92vh, 860px); }
.hero-copy { max-width: 620px; }
/* compatibility line: a quiet mono kicker + the real platform names in the
   display face. No capsule, no glow, no fake status light. */
.hero-compat {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-bottom: 24px; font-family: var(--display); font-size: 17px; font-weight: 600;
  letter-spacing: .01em; color: var(--text);
}
.hero-compat .hc-label {
  font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-bright);
}
.hero-compat .hc-sep { color: var(--accent); font-weight: 700; }
.hero h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lede { margin-top: 22px; color: var(--text-2); font-size: 18px; max-width: 46ch; }
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* trust row (honest, non-fabricated) */
.trust { margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.trust-item i { color: var(--accent-bright); font-size: 15px; }
.trust-sep { width: 1px; height: 26px; background: var(--line); }

/* ---------- Stage / floating parallax panel ---------- */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 540px; justify-content: center; perspective: 1400px; }
.stage::before {
  content: ''; position: absolute; z-index: 0; width: 460px; height: 460px; max-width: 100%; border-radius: 50%;
  background: radial-gradient(ellipse, var(--glow), transparent 68%);
  filter: blur(8px); animation: haze 9s ease-in-out infinite;
}
@keyframes haze { 0%,100%{opacity:.7; transform:scale(1)} 50%{opacity:1; transform:scale(1.06)} }
.stage-label { width: 340px; max-width: 100%; display: flex; justify-content: space-between; color: var(--text-3); font: 500 10px/1 var(--mono); letter-spacing: .12em; z-index: 2; }
.stage-label span:last-child { color: var(--accent-bright); }

/* the real product panel is position:fixed in style.css; pin it into the stage */
.stage #edgyxPanel.menu {
  position: relative !important; z-index: 2; inset: auto !important; margin: 0 !important;
  opacity: 1 !important; visibility: visible !important;
  width: 340px !important; max-width: 100%;
  transform:
    perspective(1400px)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translate3d(var(--tx, 0px), calc(var(--ty, 0px) + var(--float, 0px)), 0)
    scale(var(--pscale, 1)) !important;
  transition: transform .12s ease-out, box-shadow .4s var(--ease);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.75), 0 0 60px -20px var(--glow);
  transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite;
}
.stage.tilt-active #edgyxPanel.menu { animation: none; }
@keyframes floaty { 0%,100%{--float:0px} 50%{--float:-12px} }
.stage #edgyxPanel .menu-header { cursor: default !important; }
.stage #edgyxPanel .menu-content { max-height: 340px; }
.stage-hint { color: var(--text-3); font-size: 11px; z-index: 2; opacity: .8; }

/* ---------- Platform / capability strip ---------- */
.platform-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px;
  padding: 24px; margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.platform-strip span { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.platform-strip i { color: var(--accent-bright); }

/* ---------- Showcase video ---------- */
.showcase-player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  max-width: 900px; margin-inline: auto;
  border: 1px solid var(--line-2); background: #05050a;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 80px -40px var(--glow);
}
.showcase-player::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.showcase-player video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 26px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease;
}
.cell:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); }
.cell .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); font-size: 18px; margin-bottom: 16px; }
.cell h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.cell p { margin-top: 9px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.cell.wide { grid-column: span 4; }
.cell.mid  { grid-column: span 3; }
.cell.third{ grid-column: span 2; }
.cell.lead { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 34px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.cell.lead .glyph { width: 52px; height: 52px; font-size: 22px; }
.cell.lead h3 { font-size: 26px; }
.cell.lead p { font-size: 15.5px; }
.cell-visual { position: relative; height: 100%; min-height: 180px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 120% at 80% 10%, rgba(139,92,246,.28), transparent 60%), var(--bg-2); display: grid; place-items: center; }
.cell-visual .fa-badge { font-size: 64px; color: var(--accent-bright); opacity: .85; filter: drop-shadow(0 8px 30px var(--glow)); }
.cell-index { position: absolute; top: 20px; right: 22px; font: 600 12px/1 var(--mono); color: var(--text-3); letter-spacing: .1em; }

/* ---------- Pricing ---------- */
.price-toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); margin: 0 auto 44px; }
.price-toggle button { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: var(--r-pill); transition: color .2s ease; position: relative; z-index: 1; }
.price-toggle button .sub { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.price-toggle button.active { color: #fff; }
.price-toggle button.active .sub { color: rgba(255,255,255,.75); }
.price-toggle { position: relative; }
.price-toggle .thumb { position: absolute; top: 5px; bottom: 5px; border-radius: var(--r-pill); background: var(--grad); z-index: 0; transition: transform .35s var(--ease), width .35s var(--ease); box-shadow: 0 8px 24px -8px var(--glow); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 28px 24px; transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 30px 70px -30px var(--glow); }
.price-card.popular { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(139,92,246,.12), var(--surface) 40%); box-shadow: 0 24px 60px -30px var(--glow); }
.price-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 7px 14px; border-radius: var(--r-pill); box-shadow: 0 8px 20px -8px var(--glow); white-space: nowrap; }
.price-name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.price-amt { margin-top: 12px; display: flex; align-items: flex-start; gap: 3px; }
.price-amt .cur { font-size: 22px; font-weight: 700; margin-top: 8px; color: var(--text); }
.price-amt .num { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price-key { position: absolute; top: 18px; right: 20px; font-size: 34px; color: var(--accent); opacity: .92; filter: drop-shadow(0 6px 16px var(--glow)); pointer-events: none; transform: rotate(8deg); }
.price-card.popular .price-key { color: var(--accent-bright); }
.price-dur { margin-top: 8px; color: var(--text-3); font-size: 13.5px; }
.price-feats { margin: 22px 0 24px; display: grid; gap: 11px; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: 14px; list-style: none; }
.price-feats i { color: var(--accent-bright); font-size: 14px; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
.price-note { margin-top: 26px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1080px; margin-inline: auto; align-items: start; }
.review { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px 24px; transition: transform .3s var(--ease), border-color .3s ease; }
.review:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--display); font-size: 18px; text-transform: uppercase; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 15px; }
.review-handle { color: var(--text-3); font-size: 13px; }
.review blockquote { color: var(--text); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.review-stars { color: #fbbf24; font-size: 15px; letter-spacing: 3px; }

/* ---------- Setup banner / CTA ---------- */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--accent-line); padding: 54px;
  background: linear-gradient(135deg, rgba(139,92,246,.16), rgba(99,102,241,.08)), var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 120% at 90% 20%, var(--glow), transparent 60%); opacity: .5; pointer-events: none; }
.cta-banner h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.06; position: relative; }
.cta-banner p { margin-top: 12px; color: var(--text-2); max-width: 46ch; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .25s ease; }
.faq-list details[open] { border-color: var(--accent-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-list .pm::before, .faq-list .pm::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: var(--accent-bright); border-radius: 2px; transform: translate(-50%,-50%); transition: transform .3s var(--ease); }
.faq-list details[open] .pm::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-list .answer { overflow: hidden; }
.faq-list .answer p { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ---------- Footer ---------- */
.site-end { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-end .brand-word { font-size: 18px; }
.site-end span { color: var(--text-3); font-size: 13px; }
.site-end a:not(.brand-word) { color: var(--text-2); font-size: 13.5px; transition: color .2s ease; }
.site-end a:not(.brand-word):hover { color: var(--accent-bright); }

/* ==========================================================================
   Setup / download page
   ========================================================================== */
.download-page { padding-top: 44px; padding-bottom: 88px; }
.download-heading { max-width: 760px; margin-bottom: 40px; }
.download-heading h1 { font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.03; margin-top: 4px; }
.download-heading p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }
.device-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 22px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); }
.device-switch button { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer; transition: color .2s ease, background .3s var(--ease); }
.device-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px var(--glow); }

.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.guide-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.guide-nav a { padding: 10px 14px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; font-weight: 500; border-left: 2px solid transparent; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.guide-nav a:hover { color: var(--text); background: rgba(255,255,255,0.03); border-left-color: var(--accent); }

.install-guide { list-style: none; display: grid; gap: 16px; }
.install-guide li { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 22px 24px; transition: border-color .3s ease; }
.install-guide li:hover { border-color: var(--accent-line); }
.step-number { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); font-family: var(--display); font-weight: 700; font-size: 16px; }
.install-guide h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.install-guide li p { margin: 8px 0 14px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.install-guide li p:last-child { margin-bottom: 0; }

.script-address { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 8px 8px 14px; flex-wrap: wrap; }
.script-address code { font-family: var(--mono); font-size: 13px; color: var(--accent-bright); word-break: break-all; flex: 1; min-width: 0; }
.script-address button { border: 0; background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 16px; border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; }
#copy-script-status:not(:empty) { margin-top: 8px; color: var(--good); font-size: 13px; }

.guide-note { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 26px; margin-top: 16px; }
.guide-note h2 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.guide-note h3 { font-size: 15px; font-weight: 600; margin-top: 18px; color: var(--text); }
.guide-note p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .guide-nav a { border-left: 0; border: 1px solid var(--line); }
}

/* ==========================================================================
   Checkout page
   ========================================================================== */
.checkout { padding-top: 48px; padding-bottom: 80px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 34px; align-items: start; }
.checkout-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
.checkout-back:hover { color: var(--accent-bright); }
.co-panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 30px; }
.co-panel h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.co-panel h2 + p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--r-sm); padding: 13px 14px; font-family: var(--sans); font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.pay-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; background: var(--bg-2); }
.pay-opt:hover { color: var(--text); border-color: var(--accent-line); }
.pay-opt.sel { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.pay-opt i { font-size: 16px; color: var(--accent-bright); }

/* order summary (sticky) */
.co-summary { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 28px; position: sticky; top: 92px; }
.co-summary h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-family: var(--mono); }
.co-plan { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.co-plan .co-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); font-size: 20px; }
.co-plan .co-t { font-size: 17px; font-weight: 700; }
.co-plan .co-s { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.co-lines { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.co-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.co-line b { color: var(--text); font-weight: 600; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; }
.co-total span { color: var(--text-2); font-size: 14px; }
.co-total b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.co-summary .btn { margin-top: 22px; }
.co-secure { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 12.5px; }
.co-secure i { color: var(--good); }
.co-notice { margin-top: 16px; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--warn); background: rgba(251,191,36,.08); color: #fcd77a; font-size: 13px; line-height: 1.5; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell.wide { grid-column: span 4; } .cell.mid { grid-column: span 2; } .cell.third { grid-column: span 2; }
  .cell.lead { grid-column: span 4; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; min-height: auto; }
  .hero-copy { max-width: none; }
  .checkout-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .cta-banner { padding: 40px 28px; }
  .cell.lead { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .section-pad { padding-block: 68px; }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero .lede { font-size: 16.5px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { flex: 1; }
  .trust { gap: 14px; } .trust-sep { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell.wide, .cell.mid, .cell.third, .cell.lead { grid-column: span 1; }
  .price-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .cta-banner .btn { width: 100%; }
  .stage #edgyxPanel.menu { width: min(340px, 100%) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bg-field::before, .stage::before, .mote, .stage #edgyxPanel.menu { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .stage #edgyxPanel.menu { transform: none !important; }
}
