:root {
  color-scheme: dark;
  --purple: #160e20;
  --gold: #e6c480;
  --text: #f6f0e7;
  --muted: #c0b3ca;
  --line: #49364f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--purple);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
::selection { background: var(--gold); color: var(--purple); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; width: min(1360px, calc(100% - 96px)); height: 112px; margin-inline: auto; }
.logo { display: block; width: 40px; height: 44px; }
.home { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.github { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--muted); }
.github:hover { color: var(--gold); }
.landing { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow-x: clip; }
.light { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, #43254f 0%, #271733 35%, #160e20 72%); }
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 70px 24px 180px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(58px, 11.8vw, 164px); line-height: 1.06; font-weight: 600; letter-spacing: -.07em; color: var(--gold); }
.hero p { max-width: 520px; margin: 28px 0 38px; font-size: clamp(17px, 2vw, 22px); line-height: 1.5; letter-spacing: -.02em; color: var(--muted); text-wrap: balance; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 54px; padding: 14px 26px; border: 1px solid var(--gold); border-radius: 100px; background: var(--gold); color: var(--purple); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .18s, border-color .18s; }
.button:hover { background: #f5dca9; border-color: #f5dca9; }
.button:active { background: #d5af66; }
.install { width: min(660px, calc(100% - 48px)); margin: 44px auto 100px; }
.install h1 { margin: 0 0 16px; color: var(--gold); font-size: clamp(40px, 6vw, 60px); line-height: 1.1; font-weight: 600; letter-spacing: -.055em; }
.requirement { margin: 0 0 48px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.requirement a { text-underline-offset: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; margin-top: 30px; }
.steps h2 { margin: 0 0 14px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.steps h2::before { content: counter(step, decimal-leading-zero); margin-right: 16px; color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; }
.command { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #21162b; }
.command code { flex: 1; min-width: 0; font: 13px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }
.copy { flex-shrink: 0; min-width: 60px; min-height: 44px; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--gold); font: inherit; font-size: 12px; cursor: pointer; }
.copy:hover { background: #382442; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.steps p code { font-size: 13px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 620px) {
  .header { width: calc(100% - 40px); height: 88px; }
  .logo { width: 32px; height: 36px; }
  .hero { padding: 60px 20px 136px; }
  .hero h1 { font-size: clamp(48px, 12.4vw, 76px); }
  .hero p { max-width: 320px; margin: 22px 0 32px; }
  .install { margin-top: 30px; }
  .requirement { margin-bottom: 36px; }
  .command { padding-inline: 12px; gap: 8px; }
  .command code { font-size: 12px; }
}
.cloud-draft { background: var(--purple); }
.cloud-header { border-bottom: 1px solid rgba(73, 54, 79, .55); }
.draft-label { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.cloud-main { width: min(1120px, calc(100% - 96px)); margin: 0 auto 120px; }
.cloud-hero { min-height: 620px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 850px; padding: 96px 0 120px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cloud-hero h1 { max-width: 840px; margin: 0; color: var(--text); font-size: clamp(52px, 8vw, 94px); line-height: .98; font-weight: 600; letter-spacing: -.065em; }
.cloud-lede { max-width: 650px; margin: 32px 0 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; letter-spacing: -.025em; }
.cloud-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; text-underline-offset: 5px; }
.text-link:hover { color: var(--gold); }
.draft-note { margin: 20px 0 0; color: #97899f; font-size: 12px; }
.cloud-section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 50px; }
.section-heading h2 { margin: 0; color: var(--text); font-size: clamp(38px, 5vw, 64px); line-height: 1.08; font-weight: 600; letter-spacing: -.055em; }
.section-heading > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.plan-card { min-height: 510px; display: flex; flex-direction: column; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #1b1125; }
.plan-card.featured { border-color: var(--gold); background: #21162b; }
.plan-name { margin: 0 0 18px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.plan-price { margin: 0; color: var(--text); font-size: 58px; line-height: 1; font-weight: 600; letter-spacing: -.055em; }
.plan-price span { font-size: 24px; vertical-align: 22px; }
.plan-price small { color: var(--muted); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.plan-summary { max-width: 410px; min-height: 76px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.plan-card ul { display: grid; gap: 13px; margin: 32px 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--text); font-size: 14px; }
.plan-card li::before { content: "✓"; margin-right: 12px; color: var(--gold); }
.plan-action { margin-top: auto; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 8px; color: var(--gold); font-size: 14px; font-weight: 600; text-decoration: none; }
.plan-action:hover { background: rgba(230, 196, 128, .08); }
.plan-action.filled { background: var(--gold); color: var(--purple); }
.plan-action.filled:hover { background: #f5dca9; }
.pricing-question { max-width: 740px; margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 13px; line-height: 1.65; }
.account-shell { padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: #21162b; box-shadow: 0 24px 80px rgba(0, 0, 0, .22); }
.account-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.account-kicker { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.balance { margin: 0; color: var(--text); font-size: clamp(44px, 7vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.06em; }
.status-pill { padding: 8px 12px; border: 1px solid #806d4b; border-radius: 100px; color: var(--gold); font-size: 12px; }
.account-meter { height: 7px; margin: 34px 0; overflow: hidden; border-radius: 100px; background: #392945; }
.account-meter span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.account-stats div { display: grid; gap: 8px; padding: 20px; background: #1b1125; }
.account-stats span { color: var(--muted); font-size: 12px; }
.account-stats strong { font-size: 15px; font-weight: 500; }
.usage-list { margin-top: 26px; border-top: 1px solid var(--line); }
.usage-row { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 20px; padding: 17px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.usage-row strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.usage-head { color: #97899f; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.flow-list { display: grid; gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); list-style: none; }
.flow-list li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 30px; background: #1b1125; }
.flow-list li > span { padding-top: 4px; color: var(--gold); font: 12px "SFMono-Regular", Consolas, monospace; }
.flow-list h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.flow-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.flow-list code { color: var(--gold); font: 13px "SFMono-Regular", Consolas, monospace; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.decision-grid article { min-height: 190px; padding: 28px; background: #1b1125; }
.decision-grid h3 { margin: 0 0 12px; color: var(--gold); font-size: 16px; font-weight: 500; }
.decision-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.backstage-note { margin-top: 34px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #21162b; }
.backstage-note > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.backstage-note a { color: var(--text); text-underline-offset: 4px; }
@media (max-width: 760px) {
  .cloud-main { width: min(100% - 40px, 560px); margin-bottom: 70px; }
  .cloud-header { width: calc(100% - 40px); }
  .cloud-hero { min-height: auto; padding: 76px 0 96px; }
  .cloud-hero h1 { font-size: clamp(46px, 14vw, 70px); }
  .cloud-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cloud-section { padding: 80px 0; }
  .plan-grid, .decision-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 480px; padding: 26px; }
  .account-shell { padding: 24px; }
  .account-topline { align-items: flex-start; flex-direction: column-reverse; }
  .account-stats { grid-template-columns: 1fr; }
  .usage-row { grid-template-columns: 1fr auto; }
  .usage-row span:nth-child(2) { display: none; }
  .flow-list li { grid-template-columns: 44px 1fr; padding: 24px 18px; }
}
@media (max-height: 560px) and (min-width: 761px) {
  .cloud-hero { min-height: auto; padding-block: 72px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.landing .light { animation: fade .9s ease-out both; }
.landing .logo, .landing .github, .landing .hero > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.landing .hero h1 { animation-delay: .08s; }
.landing .hero p { animation-delay: .16s; }
.landing .hero .button { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
