/* XASI Desk website - v3.2 redesign */
:root {
  --bg: #04060a;
  --bg-2: #070b11;
  --panel: rgba(14, 22, 30, .72);
  --panel-solid: #0b1219;
  --line: rgba(120, 190, 225, .14);
  --line-strong: rgba(0, 183, 255, .38);
  --text: #eef8ff;
  --soft: #b4c8d4;
  --muted: #7d909c;
  --accent: #00b7ff;
  --accent-2: #36d9ff;
  --violet: #a67cff;
  --mint: #48d7aa;
  --radius: 22px;
  --shell: min(1240px, calc(100% - 40px));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #031018; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Ambient background */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,183,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,183,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 22s var(--ease) infinite alternate; }
.blob-a { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(0,183,255,.55), transparent 65%); }
.blob-b { width: 520px; height: 520px; right: -180px; top: 120px; background: radial-gradient(circle, rgba(166,124,255,.38), transparent 65%); animation-delay: -8s; }
.blob-c { width: 480px; height: 480px; left: 35%; top: 900px; background: radial-gradient(circle, rgba(72,215,170,.18), transparent 65%); animation-delay: -14s; }
@keyframes drift { to { transform: translate3d(60px, 80px, 0) scale(1.12); } }

/* Close button (shared XASI pattern) */
.xasi-close-button {
  position: fixed; top: 14px; right: 14px; z-index: 60; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(10, 16, 22, .7); border: 1px solid var(--line); backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s;
}
.xasi-close-button:hover { border-color: var(--accent); transform: rotate(90deg); }
.xasi-close-button svg { width: 16px; height: 16px; stroke: var(--text); stroke-width: 2; fill: none; stroke-linecap: round; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px max(20px, calc((100% - 1240px) / 2)); padding-right: max(70px, calc((100% - 1240px) / 2 + 50px));
  background: linear-gradient(to bottom, rgba(4,6,10,.88), rgba(4,6,10,.55)); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .18em; font-size: .95rem; }
.brand img { width: 36px; height: 36px; }
.brand strong { color: var(--accent); }
.site-header nav { display: flex; gap: 24px; margin-left: auto; }
.site-header nav a { text-decoration: none; color: var(--soft); font-size: .92rem; transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.language { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; font-weight: 600; }
.language > * { padding: 3px 10px; border-radius: 99px; text-decoration: none; color: var(--muted); }
.language [aria-current] { background: rgba(0,183,255,.16); color: var(--text); }
.nav-download {
  text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 18px; border-radius: 99px; color: #031018;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 30px -10px rgba(0,183,255,.8);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-download:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(0,183,255,.95); }

.shell { width: var(--shell); margin: 0 auto; }
section { scroll-margin-top: 80px; }

/* Hero */
.hero { position: relative; padding: 90px 0 60px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: rgba(0,183,255,.07); font-size: .82rem; color: var(--soft); text-decoration: none;
}
.pill b { padding: 3px 10px; border-radius: 99px; background: var(--accent); color: #031018; font-size: .72rem; letter-spacing: .08em; }
.hero h1 {
  margin: 26px auto 18px; max-width: 980px; font-size: clamp(2.7rem, 7.4vw, 6.2rem); line-height: .98; letter-spacing: -.035em; font-weight: 700;
}
.gradient-text {
  background: linear-gradient(100deg, #fff 0%, var(--accent-2) 35%, var(--accent) 55%, var(--violet) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-lead { margin: 0 auto; max-width: 660px; color: var(--soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 16px; text-decoration: none; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}
.button small { font-weight: 500; opacity: .7; font-size: .8rem; }
.button-primary { color: #031018; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 18px 50px -18px rgba(0,183,255,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(0,183,255,1), inset 0 1px 0 rgba(255,255,255,.4); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.button-ghost:hover { border-color: var(--line-strong); background: rgba(0,183,255,.06); }
.micro-copy { margin-top: 16px; color: var(--muted); font-size: .84rem; }
.xasi-upgrade-note { color: var(--muted); }

/* Hero device + theme switch */
.stage { position: relative; margin: 64px auto 0; width: min(1180px, calc(100% - 40px)); perspective: 2000px; }
.stage::before {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -40px; height: 120px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,183,255,.45), transparent 70%); filter: blur(40px);
}
.device {
  position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(160deg, rgba(60,110,140,.35), rgba(10,16,22,.9) 40%);
  border: 1px solid rgba(140,200,230,.18); box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; transition: transform 1.2s var(--ease);
}
.stage.is-visible .device { transform: rotateX(0) scale(1); }
.screens { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1920 / 1173; background: #05070a; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.screens img[data-theme="light"] { opacity: 0; transform: scale(1.015); }
.stage[data-show="light"] .screens img[data-theme="light"] { opacity: 1; transform: none; }
.stage[data-show="light"] .screens img[data-theme="dark"] { opacity: 0; }
.theme-switch {
  position: absolute; z-index: 3; left: 50%; bottom: -26px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(8,13,19,.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
}
.theme-switch button {
  appearance: none; border: 0; background: transparent; color: var(--soft); font: inherit; font-size: .88rem; font-weight: 600;
  padding: 9px 18px; border-radius: 99px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background .25s, color .25s;
}
.theme-switch button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-switch button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #031018; }
.theme-switch button:not([aria-pressed="true"]):hover { color: var(--text); background: rgba(255,255,255,.06); }

/* Ticker */
.ticker { margin-top: 110px; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: rgba(0,183,255,.025); }
.ticker-track { display: inline-flex; gap: 48px; padding: 18px 0; animation: ticker 38s linear infinite; font-weight: 600; letter-spacing: .14em; font-size: .82rem; color: var(--soft); }
.ticker-track b { color: var(--accent); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 120px 0 0; }
.kicker { margin: 0 0 14px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .22em; }
.section h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; }
.section h2 em { font-style: normal; color: var(--accent); }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-heading p { margin: 0; color: var(--soft); font-size: 1.08rem; }

/* Theme trio */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme-card {
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.theme-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.swatch { height: 120px; border-radius: 14px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 10px; }
.swatch i { border-radius: 8px; }
.swatch-dark { background: #05070a; border: 1px solid #1c333f; }
.swatch-dark i { background: #0a0f14; border: 1px solid #1c333f; }
.swatch-dark i:last-child { background: linear-gradient(180deg, #0a0f14 60%, rgba(0,183,255,.6) 60% 66%, #0a0f14 66%); }
.swatch-light { background: #eef2f6; border: 1px solid #d9e1e8; }
.swatch-light i { background: #fff; border: 1px solid #d9e1e8; }
.swatch-light i:last-child { background: linear-gradient(180deg, #fff 60%, #0077a6 60% 66%, #fff 66%); }
.swatch-auto { background: linear-gradient(115deg, #05070a 49.5%, #eef2f6 50.5%); border: 1px solid var(--line); }
.swatch-auto i:first-child { background: #0a0f14; border: 1px solid #1c333f; }
.swatch-auto i:last-child { background: #fff; border: 1px solid #d9e1e8; }
.theme-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.theme-card p { margin: 0; color: var(--soft); font-size: .96rem; }
.theme-card .tag { display: block; margin-bottom: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; color: var(--accent); }

/* Compare slider */
.compare {
  --pos: 50%; position: relative; margin-top: 56px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1920 / 1173; user-select: none; touch-action: pan-y; box-shadow: 0 50px 100px -50px rgba(0,183,255,.5);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-top { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 20px rgba(0,183,255,.9); }
.compare-handle::after {
  content: "◂ ▸"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(4,6,10,.85); border: 2px solid #fff; color: #fff; font-size: .8rem; letter-spacing: 2px;
  backdrop-filter: blur(8px);
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-label { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; backdrop-filter: blur(10px); }
.compare-label.left { left: 16px; background: rgba(4,6,10,.75); color: #fff; }
.compare-label.right { right: 16px; background: rgba(255,255,255,.85); color: #0f1c26; }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; grid-column: span 2; padding: 30px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .35s, transform .35s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(0,183,255,.14), transparent 45%);
}
.tile:hover { border-color: var(--line-strong); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile .index { font-size: .74rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.tile h3 { margin: 18px 0 10px; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.15; }
.tile p { margin: 0; color: var(--soft); font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); font-size: .82rem; color: var(--soft); background: rgba(255,255,255,.02); }
.chips span:first-child { border-color: var(--line-strong); color: var(--text); background: rgba(0,183,255,.1); }
.ring { --v: 63; position: relative; width: 120px; height: 120px; margin: 4px 0 4px; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--accent) calc(var(--v) * 2.7deg), rgba(255,255,255,.06) 0 270deg, transparent 0); }
.ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--panel-solid); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-size: 1.6rem; font-weight: 300; }
.wave { height: 100px; margin-top: 8px; }
.wave path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(0,183,255,.7));
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 3s var(--ease) forwards; }
.wave path + path { stroke: var(--mint); filter: drop-shadow(0 0 6px rgba(72,215,170,.6)); animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.big-glyph { font-size: 3.2rem; line-height: 1; }
.big-glyph small { font-size: 1.6rem; color: var(--soft); font-weight: 300; margin-left: 6px; }

/* Portrait showcase */
.portrait { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.portrait-copy p { color: var(--soft); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; color: var(--soft); }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: translateY(-1px); }
.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 58%; height: calc(100% - 70px); object-fit: cover; object-position: top; border-radius: 18px; overflow: hidden; border: 1px solid rgba(140,200,230,.2); box-shadow: 0 40px 90px -30px rgba(0,0,0,.95); transition: transform .6s var(--ease); }
.phone.back { right: 0; top: 0; transform: rotate(4deg); }
.phone.front { left: 0; top: 60px; transform: rotate(-3deg); }
.phones:hover .phone.back { transform: rotate(6deg) translate(16px, -8px); }
.phones:hover .phone.front { transform: rotate(-5deg) translate(-16px, 8px); }

/* Install */
.install-panel {
  position: relative; padding: 56px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line-strong);
  background: radial-gradient(circle at 85% 0%, rgba(0,183,255,.22), transparent 45%), radial-gradient(circle at 0% 100%, rgba(166,124,255,.16), transparent 45%), var(--bg-2);
}
.install-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; flex-wrap: wrap; }
.version-stamp { text-align: right; font-size: .76rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.version-stamp strong { display: block; font-size: 4.4rem; line-height: 1; letter-spacing: -.04em; color: var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0 36px; }
.step { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.step span { font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .14em; }
.step h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--soft); font-size: .93rem; }
.step a { color: var(--accent-2); }
.install-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.install-cta strong { display: block; font-size: 1.2rem; }
.install-cta span { color: var(--muted); font-size: .9rem; }
.install-note { margin: 26px 0 0; color: var(--muted); font-size: .86rem; }
.hash { font-family: "Cascadia Mono", Consolas, monospace; font-size: .78rem; color: var(--muted); word-break: break-all; }

footer { width: var(--shell); margin: 110px auto 0; padding: 34px 0 44px; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
footer .brand { font-size: .85rem; }
footer nav { display: flex; gap: 20px; }
footer nav a { text-decoration: none; color: var(--soft); }
footer nav a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .section-heading, .portrait { grid-template-columns: 1fr; gap: 26px; }
  .themes, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.half { grid-column: auto; }
  .phones { height: 560px; max-width: 520px; }
  .install-panel { padding: 32px 22px; }
  .version-stamp { text-align: left; }
}
@media (max-width: 600px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { gap: 12px; padding-left: 16px; padding-right: 62px; }
  .brand span { display: none; }
  .header-actions .xasi-upgrade-note { display: none !important; }
  .hero { padding-top: 56px; }
  .stage { width: calc(100% - 24px); }
  .theme-switch button { padding: 8px 11px; font-size: .8rem; }
  .theme-switch button svg { display: none; }
  .phones { height: 430px; }
  .compare-label { display: none; }
  .section { padding-top: 84px; }
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .xasi-upgrade-note { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .wave path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
