/* Aurora OS website */
:root {
  --bg: #0c0915;
  --bg-2: #141022;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f2eefa;
  --muted: #b3aac6;
  --violet: #a970ff;
  --rose: #ff6f91;
  --amber: #ffa45c;
  --grad: linear-gradient(120deg, var(--violet), var(--rose) 55%, var(--amber));
  --radius: 20px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #cdb2ff; }
code, kbd, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }
code { background: rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
kbd {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: 0.85em;
}

/* --- navigation --- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(24px, calc((100vw - var(--maxw)) / 2));
  background: rgba(12, 9, 21, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700;
  text-decoration: none; font-size: 1.05rem; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }

/* --- buttons --- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: white;
  box-shadow: 0 10px 30px rgba(255, 111, 145, 0.25); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(255, 111, 145, 0.4); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; background: var(--grad); color: white; }

/* --- hero --- */
.hero { position: relative; overflow: hidden; padding: 72px 24px 0; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,9,21,0.35), var(--bg) 88%), url("hero.jpg") center/cover;
  z-index: -1;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-logo { margin: 0 auto -72px; border-radius: 28px; width: clamp(220px, 24vw, 320px); height: auto; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 10px 0 18px; font-weight: 800; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d8d0e8; max-width: 680px; margin: 0 auto 28px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.hero-shot {
  max-width: 1080px; margin: 56px auto 0; border-radius: 16px 16px 0 0; overflow: hidden;
  box-shadow: 0 -10px 80px rgba(169, 112, 255, 0.25), 0 30px 80px rgba(0,0,0,0.6);
  border: 1px solid var(--card-border); border-bottom: none;
}

/* --- facts --- */
.facts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  max-width: var(--maxw); margin: 0 auto; background: var(--card-border);
  border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
  transform: translateY(-1px);
}
.facts div { background: var(--bg-2); padding: 22px; text-align: center; }
.facts strong { display: block; font-size: 1.25rem; }
.facts span { color: var(--muted); font-size: 0.9rem; }

/* --- sections --- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px 20px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
h3 { font-size: 1.5rem; margin: 0 0 10px; letter-spacing: -0.01em; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin: 0 0 96px; }
.feature.reverse { grid-template-columns: 7fr 5fr; }
.feature.reverse .feature-text { order: 2; }
.feature-text p { color: #d8d0e8; font-size: 1.05rem; }
.feature-text ul { color: #d8d0e8; padding-left: 1.2rem; margin: .6rem 0 0; }
.feature-text li { margin: .35rem 0; line-height: 1.5; }
.feature-media img, .grid-2 img, .layout-shot img {
  border-radius: 14px; border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: zoom-in;
}
.feature-media.stack { position: relative; padding-bottom: 60px; }
.feature-media.stack img:last-child { position: absolute; width: 70%; right: -4%; bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--rose); }

/* --- layouts --- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.tabs.small { justify-content: flex-start; margin: 10px 0; }
.tab {
  background: var(--card); color: var(--text); border: 1px solid var(--card-border);
  padding: 9px 20px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
}
.tab.active { background: var(--grad); border-color: transparent; }
.tab-caption { text-align: center; color: var(--muted); margin: 0 0 28px; min-height: 1.6em; }
.layout-shot { max-width: 1000px; margin: 0 auto 60px; }
.layout-shot img { transition: opacity .25s ease; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
figcaption { color: var(--muted); text-align: center; margin-top: 10px; font-size: 0.95rem; }

/* --- developers --- */
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 100px; align-items: start; }
.terminal {
  background: #17131f; border-radius: 14px; border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); overflow: hidden;
}
.terminal-bar { display: flex; gap: 8px; align-items: center; padding: 12px 14px; background: #1f1a2b; }
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff6b6b; }
.terminal-bar i:nth-child(2) { background: #ffc24b; }
.terminal-bar i:nth-child(3) { background: #3ccb5a; }
.terminal-bar span { margin: 0 auto; color: var(--muted); font-size: .85rem; padding-right: 50px; }
.terminal pre { margin: 0; padding: 18px 20px 22px; font-size: 0.88rem; line-height: 1.7; color: #e8e3f3; overflow-x: auto; }
.terminal .p { color: #f2eefa; font-weight: 600; } .terminal .b { color: #a970ff; font-weight: 600; }
.terminal .y { color: #ffa45c; } .terminal .c { color: #a970ff; font-weight: 700; }
.terminal .d { color: #8d869c; } .terminal .h { color: #ff8fab; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.chips span { background: var(--card); border: 1px solid var(--card-border); padding: 5px 12px;
  border-radius: 999px; font-size: .88rem; font-family: "JetBrains Mono", monospace; }
.dev-text p { color: #d8d0e8; }

/* --- cards --- */
.app-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.card h4 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.app-groups.three .card { background: linear-gradient(160deg, rgba(169,112,255,0.12), rgba(255,111,145,0.05)); }

/* --- download --- */
.download-card {
  display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(169,112,255,0.18), rgba(255,111,145,0.10) 60%, rgba(255,164,92,0.10));
  border: 1px solid var(--card-border); border-radius: 28px; padding: 44px;
}
.download-card p { color: var(--muted); }
.download-card .btn { margin: 8px 10px 0 0; }
.req h4 { margin-top: 0; }
.req ul { padding-left: 18px; color: #d8d0e8; margin: 0; }
details.verify { margin-top: 24px; }
details { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 16px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { color: #d8d0e8; }
.code { display: flex; align-items: center; gap: 12px; background: #17131f; border: 1px solid var(--card-border);
  border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.code code { background: none; padding: 0; white-space: nowrap; flex: 1; }
.copy { background: rgba(255,255,255,0.1); color: var(--text); border: none; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: .85rem; }

/* --- install steps --- */
.steps { list-style: none; counter-reset: step; padding: 0; max-width: 860px; margin: 0 auto; }
.steps li { counter-increment: step; position: relative; padding: 0 0 36px 76px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 48px; height: 48px;
  border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
}
.steps li::after { content: ""; position: absolute; left: 23px; top: 50px; bottom: 6px; width: 2px; background: var(--card-border); }
.steps li:last-child::after { display: none; }
.steps p { color: #d8d0e8; }

/* --- faq --- */
.faq details { max-width: 860px; margin-left: auto; margin-right: auto; }

/* --- footer --- */
.footer {
  max-width: var(--maxw); margin: 120px auto 0; padding: 40px 24px 60px;
  border-top: 1px solid var(--card-border); display: grid; grid-template-columns: 1fr auto; gap: 20px;
}
.footer p { color: var(--muted); }
.footer-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.fine { grid-column: 1 / -1; font-size: .82rem; }

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; background: rgba(5,3,10,0.9); display: grid; place-items: center;
  z-index: 50; cursor: zoom-out; padding: 24px; }
.lightbox[hidden], [hidden] { display: none !important; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7); transform-origin: center; will-change: transform; }

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }


/* --- responsive --- */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:last-child { grid-column: 1 / -1; }
  .feature, .feature.reverse, .dev-grid, .download-card, .grid-2 { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
  .app-groups { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .feature-media.stack img:last-child { position: static; width: 100%; margin-top: 16px; }
  .feature-media.stack { padding-bottom: 0; }
}

/* --- documentation pages (technical.html) --- */
.doc { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 0;
  display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.doc-toc { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 8px; }
.doc-toc a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.doc-toc a:hover { color: var(--text); }
.doc-body { min-width: 0; }
.doc-body h1 { font-size: clamp(2rem, 4vw, 3rem); }
.doc-body h2 { font-size: 1.8rem; margin-top: 64px; padding-top: 12px; border-top: 1px solid var(--card-border); }
.doc-body h3 { font-size: 1.2rem; margin-top: 36px; color: #e6dcff; }
.doc-body p, .doc-body li { color: #d8d0e8; font-size: 1.02rem; }
.doc-body li { margin: 6px 0; }
.doc-body strong { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--card-border); border-radius: 14px; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--card-border); }
.doc-body th { background: rgba(255,255,255,0.05); font-weight: 600; }
.doc-body tr:last-child td { border-bottom: none; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; } }

/* Current page in the navigation */
.nav a.active { color: var(--fg, #fff); font-weight: 600; }
.card pre { background: rgba(0,0,0,.35); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-size: .8rem; line-height: 1.6; color: #e8e3f3; }

/* ======================================================================
   Motion and depth: the aurora sky, icon marquee, bento, glows, typing.
   ====================================================================== */

/* Scroll progress along the top */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* --- the aurora sky (hero, and the top of every page) --- */
.sky { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .ribbon {
  position: absolute; left: -20%; width: 140%; height: 46%; border-radius: 50%;
  filter: blur(60px); mix-blend-mode: screen; opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.sky .ribbon:nth-of-type(1) { top: -6%; background: radial-gradient(closest-side, #54e0b8, transparent); }
.sky .ribbon:nth-of-type(2) { top: 6%; background: radial-gradient(closest-side, #a970ff, transparent);
  animation-duration: 23s; animation-delay: -6s; }
.sky .ribbon:nth-of-type(3) { top: 18%; background: radial-gradient(closest-side, #ff6f91, transparent);
  opacity: .35; animation-duration: 29s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate3d(-8%, 0, 0) rotate(-6deg) scaleY(.8); }
  50%  { transform: translate3d(6%, 4%, 0) rotate(3deg) scaleY(1.15); }
  100% { transform: translate3d(10%, -2%, 0) rotate(8deg) scaleY(.9); }
}
.hero .sky { z-index: -1; }
.hero-bg { z-index: -2; opacity: .55; }

/* Sub-pages: a softer sky behind the first section */
.page-sky { position: relative; isolation: isolate; }
/* Only behind the page's heading: a long first section (the Under the hood index,
   whose cards and text are all one section) would otherwise put colors and stars
   behind every line of text. */
.page-sky > .sky { inset: -120px 0 auto; height: min(calc(100% + 160px), 720px); }
.page-sky > .sky::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, var(--bg) 96%); }

/* --- hero --- */
.hero { isolation: isolate; padding-top: 88px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  text-decoration: none; font-size: .9rem; backdrop-filter: blur(8px); margin-bottom: 18px;
  transition: background .2s, border-color .2s;
}
.badge:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.badge b { background: var(--grad); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .78rem; }
.badge i { font-style: normal; color: var(--muted); padding-right: 6px; }
h1 .gradient-text, .shimmer {
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--amber), #54e0b8, var(--violet));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
/* Inline, so the gradient text of the headline paints the words too. */
.rotator, .rotator .word { display: inline; }
.rotator .word { animation: word-in .6s ease-out; }
@keyframes word-in { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }

.hero-stage { position: relative; max-width: 1120px; margin: 56px auto 0; perspective: 1600px; }
.hero-stage .hero-shot { margin: 0; transform-origin: 50% 100%;
  transform: rotateX(var(--tilt, 18deg)) rotateY(var(--turn, 0deg)) scale(var(--zoom, .94));
  transition: transform .2s ease-out; will-change: transform; }
.hero-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 35%); }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 14px; font-weight: 600; font-size: .92rem; white-space: nowrap;
  background: rgba(20, 16, 34, .72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: bob 6s ease-in-out infinite;
}
.float-chip img { width: 26px; height: 26px; }
.float-chip:nth-of-type(1) { left: -2%; top: 12%; }
.float-chip:nth-of-type(2) { right: -3%; top: 22%; animation-delay: -1.5s; }
.float-chip:nth-of-type(3) { left: 4%; bottom: 18%; animation-delay: -3s; }
.float-chip:nth-of-type(4) { right: 3%; bottom: 10%; animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* --- facts with counters --- */
.facts strong { font-size: 1.6rem; letter-spacing: -.02em; }
.facts div { transition: background .3s; }
.facts div:hover { background: #1b1530; }

/* --- icon marquee --- */
.marquee-wrap { padding: 90px 0 10px; overflow: hidden; }
.marquee-wrap .section-head { margin-bottom: 34px; padding: 0 24px; }
.marquee { display: flex; width: max-content; gap: 22px; padding: 12px 0;
  animation: slide 60s linear infinite; }
.marquee.reverse { animation-direction: reverse; animation-duration: 70s; }
.marquee-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-mask:hover .marquee { animation-play-state: paused; }
.marquee img { width: 88px; height: 88px; transition: transform .25s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.marquee img:hover { transform: translateY(-8px) scale(1.12); }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- bento --- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--card-border); display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none; color: var(--text); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.22); }
.tile h3 { margin: 0 0 6px; font-size: 1.35rem; }
.tile p { margin: 0; color: var(--muted); }
.tile .big { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.tile .icon { position: absolute; top: 22px; right: 22px; width: 64px; height: 64px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tile:hover .icon { transform: rotate(-8deg) scale(1.1); }
.tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; } .tile.w4 { grid-column: span 4; }
.tile.tall { grid-row: span 2; }
.tile.ai { background: radial-gradient(120% 90% at 100% 0%, rgba(169,112,255,.45), transparent 60%),
  radial-gradient(90% 80% at 0% 100%, rgba(255,111,145,.3), transparent 60%), #140f22; }
.tile.snap { background: radial-gradient(100% 90% at 100% 0%, rgba(84,224,184,.3), transparent 60%), #0f1a1c; }
.tile.dev { background: radial-gradient(100% 90% at 0% 0%, rgba(255,164,92,.28), transparent 60%), #1a1310; }
.tile.game { background: radial-gradient(100% 100% at 100% 100%, rgba(255,111,145,.3), transparent 60%), #1a0f18; }
.tile.priv { background: radial-gradient(100% 100% at 0% 100%, rgba(90,162,255,.28), transparent 60%), #0f1422; }
.tile .shot { margin: -8px -28px 18px; border-radius: 14px; border: 1px solid var(--card-border);
  box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: rotate(-2deg) translateY(6px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tile:hover .shot { transform: rotate(0) translateY(0); }

/* --- glow that follows the pointer (cards, tiles, download) --- */
.card, .tile, .download-card, details { position: relative; }
.card::before, .tile::before, .download-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(169,112,255,.18), transparent 45%);
  transition: opacity .3s;
}
.card:hover::before, .tile:hover::before, .download-card:hover::before { opacity: 1; }
.card { transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }

/* --- buttons: a sheen sweeps across --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
  animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-primary { background-size: 200% 100%; animation: pulse-glow 4s ease-in-out infinite; }
@keyframes pulse-glow { 50% { box-shadow: 0 14px 50px rgba(169,112,255,.45); } }

/* --- staggered reveals --- */
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.zoom { transform: translateY(24px) scale(.96); }
.reveal.zoom.visible { transform: none; }

/* --- typing terminal --- */
.terminal pre .line { display: block; min-height: 1.7em; }
.terminal pre .line[hidden] { display: none; }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: #f2eefa;
  margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- section glow dividers --- */
.section { position: relative; }
.section-head h2 { text-wrap: balance; }
.glow-line { height: 1px; max-width: var(--maxw); margin: 80px auto 0;
  background: linear-gradient(90deg, transparent, rgba(169,112,255,.6), rgba(255,111,145,.6), transparent); }

/* --- final call to action --- */
.final-cta { text-align: center; padding: 120px 24px 40px; position: relative; isolation: isolate; overflow: hidden; }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.final-cta .sky .ribbon { top: 30%; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile.w3, .tile.w2, .tile.w4 { grid-column: auto; }
  .tile.tall { grid-row: auto; }
  .float-chip { display: none; }
  .marquee img { width: 64px; height: 64px; }
}



/* ======================================================================
   Documentation ("Under the hood"): an index of chapters and one page per
   chapter, with a chapter list, "On this page" and previous/next.
   ====================================================================== */
.doc.doc-3 { grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 44px; max-width: 1360px; }
.doc-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding-right: 6px; scrollbar-width: thin; }
.doc-nav > a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .93rem; transition: background .2s, color .2s; }
.doc-nav > a span { width: 1.4em; text-align: center; }
.doc-nav > a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.doc-nav > a.active { background: linear-gradient(90deg, rgba(169,112,255,.22), rgba(255,111,145,.08));
  color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--violet); }
.doc-nav .doc-home { color: #cdb2ff; margin-bottom: 10px; }
.doc-nav .eyebrow { margin: 4px 10px 8px; }
.doc-sub { display: flex; flex-direction: column; margin: 2px 0 8px 32px; border-left: 1px solid var(--card-border); }
.doc-sub a { color: var(--muted); text-decoration: none; font-size: .85rem; padding: 4px 12px; line-height: 1.35; }
.doc-sub a:hover, .doc-sub a.current { color: var(--text); }
.doc-sub a.current { box-shadow: -1px 0 0 var(--rose); }
.doc-toc a.current { color: var(--text); font-weight: 600; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: #cdb2ff; text-decoration: none; }
.crumbs span { opacity: .5; margin: 0 6px; }
.doc-chapter-icon { font-size: 2.6rem; margin: 18px 0 0; line-height: 1; }
.doc-body h1 { margin-top: 8px; }
.doc-lead { margin: 0 0 30px !important; max-width: none !important; text-align: left; color: #d8d0e8; }
.doc-body h2 { scroll-margin-top: 90px; }
.doc-body > h2:first-of-type { margin-top: 36px; }
.doc-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 70px 0 20px; }
.doc-pn { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--card-border); background: var(--card); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s; }
.doc-pn:hover { border-color: rgba(169,112,255,.6); transform: translateY(-2px); }
.doc-pn span { color: var(--muted); font-size: .85rem; }
.doc-pn.next { grid-column: 2; text-align: right; }

/* Index page */
.doc-index .section-head { max-width: 820px; }
.doc-index h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.doc-search input { width: 100%; max-width: 560px; padding: 14px 20px; border-radius: 999px; font: inherit;
  color: var(--text); background: rgba(12,9,21,.55); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  outline: none; transition: border-color .2s, box-shadow .2s; }
.doc-search input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(169,112,255,.2); }
.doc-results { max-width: 720px; margin: 16px auto 0; text-align: left; display: grid; gap: 6px; }
.doc-results a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text); text-decoration: none; }
.doc-results a span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.doc-results a:hover { border-color: rgba(169,112,255,.6); }
.doc-intro { max-width: 820px; margin: 0 auto 50px; color: #d8d0e8; position: relative; }
.doc-intro li { margin: 6px 0; }
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid var(--card-border); color: var(--text); text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.doc-card:hover { transform: translateY(-4px); border-color: rgba(169,112,255,.55); }
.doc-card h3 { margin: 6px 0 2px; font-size: 1.2rem; }
.doc-card p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.doc-card-icon { font-size: 1.9rem; }
.doc-card-meta { color: #cdb2ff; font-size: .85rem; font-weight: 600; margin-top: 8px; }

@media (max-width: 1150px) {
  .doc.doc-3 { grid-template-columns: 230px minmax(0, 1fr); }
  .doc.doc-3 > .doc-toc { display: none; }
}
@media (max-width: 900px) {
  .doc.doc-3 { grid-template-columns: 1fr; }
  .doc-nav { position: static; max-height: none; }
  .doc-sub { display: none; }
  .doc-cards { grid-template-columns: 1fr; }
  .doc-prevnext { grid-template-columns: 1fr; }
  .doc-pn.next { grid-column: auto; }
}

/* The sky reaches the edges of the window on every page. */
html { overflow-x: clip; }
.page-sky > .sky { left: calc(50% - 50vw); right: calc(50% - 50vw); }
.doc-search input::placeholder { color: #b3aac6; }

/* Buttons line up side by side (overflow: hidden moves an inline-block's baseline). */
.btn { vertical-align: middle; }
.download-card h3 { font-size: 1.8rem; margin-bottom: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.dl-meta span { padding: 5px 12px; border-radius: 999px; font-size: .88rem; color: #e6dcff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.download-card .dl-actions .btn { margin: 0; }
.dl-alt { margin: 18px 0 0; font-size: .95rem; }
.dl-alt a { color: #cdb2ff; text-decoration: none; font-weight: 600; }
.dl-alt a:hover { text-decoration: underline; }
.download-card .req { background: rgba(0,0,0,.18); border: 1px solid var(--card-border); border-radius: 20px; padding: 22px 26px; }
.download-card .req .ticks { margin-top: 12px; }
.download-card .req .ticks li { color: #d8d0e8; }
.verify { max-width: none; }

/* --- expandable answers (FAQ, verify your download): smooth open and close --- */
details { overflow: hidden; transition: border-color .3s, background .3s, box-shadow .3s; }
details summary { list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 2px 0; user-select: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.25rem; font-weight: 500; line-height: 1; color: var(--text);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s;
}
details summary:hover::after { background: rgba(255,255,255,.14); }
details[open] summary::after { transform: rotate(135deg); background: var(--grad); border-color: transparent; }
details:hover { border-color: rgba(255,255,255,.18); }
details[open] { border-color: rgba(169,112,255,.45); background: rgba(169,112,255,.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.35); }
details > :not(summary) { transition: opacity .35s ease, transform .35s ease; }
details.opening > :not(summary) { opacity: 0; transform: translateY(-6px); }

/* The logo floats on the sky: transparent, with a soft glow. */
.hero-logo { border-radius: 0; filter: drop-shadow(0 0 28px rgba(169,112,255,.35)); }

/* Tables outside the documentation pages (e.g. the models on the AI page). */
.table-wrap table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 11px 14px;
  border-bottom: 1px solid var(--card-border); }
.table-wrap th { background: rgba(255,255,255,.05); font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap td:nth-child(-n+3) { white-space: nowrap; }
.table-wrap tbody tr { transition: background .2s; }
.table-wrap tbody tr:hover { background: rgba(169,112,255,.08); }

/* Documentation: the section you're reading stands out in both menus. */
.doc-sub a.current { color: var(--text); font-weight: 600; box-shadow: -2px 0 0 var(--rose);
  background: linear-gradient(90deg, rgba(255,111,145,.12), transparent); border-radius: 0 8px 8px 0; }
.doc-toc a { padding: 4px 10px; border-radius: 8px; transition: background .2s, color .2s; }
.doc-toc a.current { background: rgba(169,112,255,.16); box-shadow: inset 2px 0 0 var(--violet); }

/* Expandable answers: a clearer open and close. */
details > :not(summary) { transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
details.opening > :not(summary) { opacity: 0; transform: translateY(-12px); }

/* --- cursor: an arrow over text (no I-beam), a hand on anything clickable --- */
html, body { cursor: default; }
a[href], button, summary, label, select, [role="button"], [data-copy], .tab, .btn { cursor: pointer; }
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
textarea, [contenteditable="true"] { cursor: text; }
img[data-zoom], img[src*="screenshots/"] { cursor: zoom-in; }
.lightbox, .lightbox img { cursor: zoom-out; }

/* --- back to top --- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px;
  border-radius: 999px; border: 1px solid var(--card-border); color: #fff; cursor: pointer;
  background: rgba(20, 16, 34, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease; }
.to-top.shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--grad); transform: translateY(-3px); }
.to-top:hover svg { animation: to-top-nudge .6s ease; }
@keyframes to-top-nudge { 50% { transform: translateY(-3px); } }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }

/* --- home: the first screen shows only the title; the desktop appears on scroll --- */
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: calc(100svh - var(--nav-h, 66px) - 88px);
  padding-bottom: 72px; box-sizing: border-box; }
.hero-stage { margin-top: 24px; }
.hero-inner::after { content: ""; position: absolute; left: 50%; bottom: 22px; width: 14px; height: 14px;
  margin-left: -7px; border-right: 2px solid rgba(242,238,250,.55); border-bottom: 2px solid rgba(242,238,250,.55);
  transform: rotate(45deg); animation: scroll-cue 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes scroll-cue {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .35; }
  50% { transform: translateY(8px) rotate(45deg); opacity: 1; }
}

/* Why Aurora: a personal story, set like a letter. */
.story { max-width: 720px; margin: 8px auto 56px; font-size: 1.12rem; line-height: 1.75; }
.story p { margin: 0 0 1.2em; }
.story em { color: var(--text, #f2eefa); font-style: italic; }
.story .signature { margin-top: 1.6em; font-weight: 700; font-size: 1.05rem;
  background: linear-gradient(90deg, #a970ff, #ff6f91); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
