/* Landing layout and shared colors. Local rules keep the layout usable offline. */
:root {
  --surface: #080809;
  --panel: #171619;
  --ink: #f7f4f5;
  --dim: #b9b2b6;
  --edge: #ffffff22;
  --accent: #df263e;
  --highlight: #ff7484;
}
body { background: var(--surface); color: var(--ink); }
header { min-height: 86px; }
.landing, .footer { font-family: system-ui, sans-serif; line-height: 1.65; }
.landing h1, .landing h2, .landing h3, .footer h3 { font-family: Sanet, system-ui, sans-serif; }
.landing h1, .landing h2, .landing h3, .landing p, .landing ul, .landing dl, .landing dd, .footer h3, .footer p { margin: 0; }
.landing ul { padding: 0; list-style: none; }
.landing button, .footer button { font: inherit; }
.landing i.fa-solid { margin-inline-end: .22em; }
.landing section[id], .footer { scroll-margin-top: 20px; }
.shell { width: min(1320px, 92%); margin-inline: auto; }
.section { padding-block: clamp(42px, 6vw, 86px); border-top: 1px solid var(--edge); }
.landing h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); line-height: 1.22; font-weight: 700; margin-bottom: 30px; }
.landing h3 { font-size: 1.18rem; font-weight: 700; }
.glass { background: linear-gradient(140deg, #201d20e8, #121113f7 70%); border: 1px solid var(--edge); border-radius: 12px; backdrop-filter: blur(12px); }
:where(button, a, summary):focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; }
.hero-block { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(30px, 4.5vw, 76px); align-items: center; padding-block: clamp(30px, 4vw, 62px); }
.hero-text, .console { min-width: 0; }
.site { overflow-x: clip; }
.landing :is(h1,h2,h3,summary) { overflow-wrap: anywhere; }
.hero-text h1 { font-size: clamp(2.1rem, 3.65vw, 3.95rem); line-height: 1.15; font-weight: 700; letter-spacing: -.038em; }
.game-name { color: var(--accent); white-space: nowrap; }
.hero-text h1 small { display: block; margin-top: .45em; font-size: .61em; line-height: 1.35; color: #d9d5d7; letter-spacing: -.02em; }
.landing .lede { max-width: 58ch; color: var(--dim); font-size: clamp(.97rem, 1.14vw, 1.1rem); margin-block: 23px 27px; }
.actions, .trust, .controls, .payments { display: flex; flex-wrap: wrap; gap: 12px; }
.action, .controls button, .copy { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; cursor: pointer; border-radius: 6px; line-height: 1.35; text-decoration: none; transition: background .18s, border-color .18s; }
.landing .action { font-size: .94rem; font-weight: 650; }
.primary { color: #fff; background: #bf1d35; border: 1px solid #ec3852; }
.primary:hover { background: #b91932; }
.outline, .controls button, .copy { background: #151315; border: 1px solid #ffffff36; color: var(--ink); }
.outline:hover, .controls button:hover, .copy:hover { background: #292326; border-color: #9b777e; }
.landing .trust { margin-top: 22px; gap: 7px 15px; color: var(--dim); font-size: .76rem; }
.trust i { color: var(--highlight); }
.monitor-head, .endpoint, .regions > div, .plan-title, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.monitor-head { padding: 14px 20px; font-size: .83rem; color: #d6d1d4; }
.monitor-head i { color: var(--accent); }
.light { border: 1px solid #ff748438; border-radius: 20px; padding: 2px 9px; color: var(--highlight); font-size: .72rem; }

/* Game tabs and plans */
.section-head { flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 0; }
.tabs { display: inline-flex; max-width: 100%; padding: 4px; border: 1px solid var(--edge); border-radius: 9px; background: #100f10; }
.tabs button { padding: 8px 13px; background: transparent; color: var(--dim); border-radius: 6px; border: 0; font: 600 .9rem/1.4 system-ui, sans-serif; }
.tabs [aria-selected="true"] { background: #b91e35; color: #fff; }
.plans, .features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.plan { padding: clamp(18px,2.5vw,35px); display: flex; flex-direction: column; }
.featured { border-color: #df263e80; background: linear-gradient(155deg,#35181d, #171315 57%); }
.plan-title h3 { font: 650 1.45rem/1.2 system-ui,sans-serif; }
.popular { background: #df263e1c; color: #ff94a0; border: 1px solid #df263e40; border-radius: 20px; padding: 2px 8px; font-size: .73rem; }
.plan .slots { margin-top: 6px; }
.plan .price { padding-block: 20px; border-bottom: 1px solid var(--edge); color: var(--dim); }
.price b { font: 700 2.8rem/1.15 system-ui,sans-serif; color: var(--ink); letter-spacing: -.06em; }
.plan ul { flex: 1; padding-block: 18px 23px; }
.plan li { color: #d0c9cc; padding: 4px 0; font-size: .92rem; }
.plan li::before { content: '✓'; color: var(--highlight); margin-right: 9px; }
.feature, .test-card { padding: clamp(20px,2.4vw,33px); }
.feature > i { color: var(--highlight); font-size: 1.35rem; }
.feature h3 { margin: 12px 0 7px; }
.feature p, .test-card > p, .faq details p, .footer p { color: var(--dim); font-size: .93rem; }
.panel-layout, .faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6%; }
.panel-benefits li { padding: 10px 0; color: #d1cbce; }
.panel-benefits i { width: 24px; color: var(--highlight); }
.console { padding-bottom: 20px; overflow: hidden; }
.console pre { margin: 0; padding: 20px 22px; background: #0b0a0b; font: .89rem/1.7 ui-monospace,monospace; color: #e2c6cb; white-space: pre-wrap; }
.graphs, .test-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.graphs, .controls { margin: 18px 20px 0; }
.graphs p { display: flex; justify-content: space-between; font: .77rem/1.6 ui-monospace,monospace; color: #c9c3c7; }
.bars { height: 35px; display: flex; gap: 2px; align-items: end; }
.bars i { flex: 1; height: var(--bar); background: #dc344b; }
.bars.memory i { background: #b8a7ae; }
.console.stopped .bars i { height: 2px; }
.controls button, .copy { font-size: .83rem; padding: 7px 10px; }
.test-card h3 i { color: var(--highlight); }
.test-card > p { margin-top: 6px; }
.regions { margin-block: 12px 17px !important; }
.regions > div, .endpoint { padding-block: 12px; border-bottom: 1px solid var(--edge); }
.regions dd, .endpoint code { font: 600 .94rem/1.5 ui-monospace,monospace; color: var(--highlight); }
.regions.busy dd { animation: scan .6s ease-in-out infinite alternate; }
@keyframes scan { to { opacity: .3; } }
.endpoint small, .endpoint code { display: block; }
.endpoint small { color: var(--dim); margin-bottom: 3px; }
.test-card .copy-result { color: var(--highlight); min-height: 1.4em; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); border-block: 1px solid var(--edge); padding-block: 30px; }
.stats div { padding: 14px 8px; text-align: center; }
.stats strong { display: block; color: #ff5f74; font: 700 clamp(1.8rem,3.6vw,3.5rem)/1.15 ui-monospace,monospace; letter-spacing: -.07em; }
.stats span { color: var(--dim); font-size: .85rem; }
.faq { border-top: none; }
.faq details { border-bottom: 1px solid var(--edge); padding-block: 15px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { padding-top: 10px; }
.final-wrap { padding-bottom: 64px; }
.final-cta { padding: clamp(24px,4vw,54px); display: flex; justify-content: space-between; gap: 20px; align-items: center; border: 1px solid #df263e5c; background: linear-gradient(115deg,#37151d,#151214 75%); border-radius: 12px; }
.final-cta h2 { margin: 0; font-size: clamp(1.6rem,2.9vw,2.6rem); max-width: 22ch; }
.footer { background: #0c0b0d; border-top: 1px solid var(--edge); }
.foot-grid { padding-block: 42px; display: grid; grid-template-columns: 1.2fr repeat(3,1fr); gap: 26px; }
.footer a { display: block; margin-top: 7px; }
.footer h3 { font-size: 1rem; margin-bottom: 10px; }
.footer img { display: block; max-width: 100%; }
.payments { gap: 8px; color: #cec6ca; font: 600 .8rem/1.3 system-ui,sans-serif; }
.payments span { display: inline-flex; align-items: center; gap: 5px; }
.payments i { font-size: 1.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 980px) {
  .hero-block { grid-template-columns: 1fr .9fr; gap: 26px; }
  .foot-grid { grid-template-columns: repeat(2,1fr); }
  .plans { gap: 10px; }
}
@media (max-width: 760px) {
  .hero-block, .panel-layout, .faq, .test-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-block { padding-block: 40px; }
  .plans { grid-template-columns: 1fr; }
  .features, .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-head { align-items: flex-start; }
  .final-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 470px) {
  header { grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
  header .brand img { width: 138px; max-width: 100%; }
  .features, .foot-grid { grid-template-columns: 1fr; }

  .hero-text h1 { font-size: 2.12rem; }
  .copy span { display: none; }
  .copy:has(i:empty) span { display: inline; }
  .endpoint { flex-wrap: wrap; }
  .auth button { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* A transparent portrait sits directly on the page. The red light is drawn behind it. */
.hero-portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  height: clamp(380px, 38vw, 565px);
  min-width: 0;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4% -10% -1%;
  background: radial-gradient(ellipse at 52% 52%, #a01a3259, #500d201e 48%, transparent 70%);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 73%;
  height: 66%;
  top: 18%;
  transform: skewX(-13deg);
  border-inline: 1px solid #fe40522b;
  background: linear-gradient(135deg, #a018291c, transparent 70%);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center bottom;
  mask-image: linear-gradient(to bottom, black 81%, transparent 100%);
}
.hero-text h1 { text-wrap: balance; }
.hero-text { z-index: 1; }
header [aria-current="page"] { color: #ff8897; }
.subpage { min-height: 63vh; }
.subpage h1 { font: 700 clamp(2rem,4.5vw,4rem)/1.2 Sanet,system-ui,sans-serif; margin: 0 0 24px; overflow-wrap: anywhere; }
.subpage .section-head h1 { margin: 0; }
.subpage .test-card h2, .sample-view h2 { font-size: 1.4rem; margin-bottom: 12px; }
.subpage .test-card .action, .panel-link { margin-top: 16px; }
.subpage .contact-state { color: var(--highlight); }
.panel-workspace { min-width: 0; }
.preview-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.preview-switch button { padding: 8px 13px; background: #141214; color: #d6ced1; border: 1px solid var(--edge); border-radius: 6px; }
.preview-switch [aria-pressed="true"] { border-color: #b42d43; color: #ff94a1; }
.sample-view { min-height: 300px; padding: clamp(18px, 3vw, 32px); }
.sample-view dl > div { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 15px; border-bottom: 1px solid var(--edge); }
.sample-view dt, .file-path { color: #ff9cab; font-family: ui-monospace, monospace; }
.sample-view dd { color: var(--dim); }
@media (max-width: 760px) {
  .hero-portrait { height: clamp(240px, 70vw, 345px); }
  .hero-block { padding-bottom: 0; }
}
