/* iPhone Classics — retro arcade landing */

:root {
  --ink: #05060a;
  --ink-2: #0a0c14;
  --panel: #0e1118;
  --panel-2: #141826;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #e8ecf5;
  --text-dim: #9aa3b8;
  --text-faint: #5a637a;
  --cyan: oklch(0.82 0.15 215);
  --cyan-deep: oklch(0.58 0.16 215);
  --magenta: oklch(0.72 0.18 340);
  --magenta-deep: oklch(0.5 0.19 340);
  --amber: oklch(0.82 0.14 75);
  --amber-deep: oklch(0.6 0.14 65);
  --green: oklch(0.82 0.18 145);

  --display: "Press Start 2P", "VT323", ui-monospace, monospace;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* —— Star + grid background ——————————————————————————— */
.bg-stars {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(120, 200, 255, .12), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(255, 100, 200, .08), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(255, 200, 80, .06), transparent 60%),
    var(--ink);
}
.bg-stars::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 62%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 8%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 78%, #ffd9b5 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 55%, #c9eaff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 90%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 38%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 80%, #fff 50%, transparent 51%);
  background-size: 100% 100%;
  opacity: .55;
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(120, 200, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0,
    rgba(255,255,255,0) 2px,
    rgba(0,0,0,.18) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
  opacity: .35;
}

/* —— Top bar ——————————————————————————————————————— */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(5,6,10,.55);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text);
  text-shadow: 0 0 12px rgba(120, 200, 255, .35);
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  display: block;
  box-shadow: 0 0 14px rgba(120, 200, 255, .35), inset 0 1px 0 rgba(255,255,255,.2);
}
.topbar-actions { display: flex; gap: 10px; }

/* —— Buttons ——————————————————————————————————————— */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 10px; letter-spacing: .06em;
  padding: 11px 16px; border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, #1d2230 0%, #0d1018 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.5),
    0 4px 14px rgba(0,0,0,.5);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn-cyan {
  background: linear-gradient(180deg, oklch(0.55 0.16 215) 0%, oklch(0.32 0.12 220) 100%);
  border-color: oklch(0.7 0.16 215);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 0 0 1px oklch(0.4 0.14 220 / .6),
    0 6px 22px oklch(0.6 0.18 215 / .35);
}
.btn-magenta {
  background: linear-gradient(180deg, oklch(0.55 0.18 340) 0%, oklch(0.3 0.13 340) 100%);
  border-color: oklch(0.7 0.18 340);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 0 0 1px oklch(0.4 0.14 340 / .6),
    0 6px 22px oklch(0.6 0.18 340 / .35);
}
.btn-amber {
  background: linear-gradient(180deg, oklch(0.65 0.14 75) 0%, oklch(0.4 0.1 70) 100%);
  border-color: oklch(0.78 0.13 75);
  color: #1a1206;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(0,0,0,.35),
    0 0 0 1px oklch(0.5 0.12 70 / .6),
    0 6px 22px oklch(0.7 0.14 75 / .35);
}
.btn-red {
  background: linear-gradient(180deg, oklch(0.55 0.18 25) 0%, oklch(0.3 0.14 25) 100%);
  border-color: oklch(0.7 0.18 25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 0 0 1px oklch(0.4 0.14 25 / .6),
    0 6px 22px oklch(0.6 0.18 25 / .35);
}
.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* —— Hero ————————————————————————————————————————— */
.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 9px; letter-spacing: .14em;
  color: var(--cyan);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(120, 200, 255, .08);
  border: 1px solid rgba(120, 200, 255, .25);
  text-shadow: 0 0 12px rgba(120, 200, 255, .5);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

.title-wrap { margin: 28px 0 18px; }
.title {
  font-family: var(--display);
  font-size: clamp(28px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: .02em;
  margin: 0;
  color: #fff;
  text-shadow:
    0 0 18px rgba(120, 200, 255, .35),
    0 2px 0 rgba(0,0,0,.6);
}
.title .accent {
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 80, 180, .35));
}
.subtitle {
  max-width: 640px; margin: 18px auto 0;
  color: var(--text-dim); font-size: 18px;
}
.subtitle b { color: var(--text); font-weight: 600; }

/* Marquee strip */
.marquee {
  margin: 36px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track {
  display: flex; gap: 56px; padding: 16px 0;
  animation: scroll 38s linear infinite;
  width: max-content;
  font-family: var(--display); font-size: 11px; letter-spacing: .12em;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track .star { color: var(--amber); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Cabinets section ——————————————————————————————— */
.cabinets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin: 64px 0 80px;
}
@media (max-width: 880px) {
  .cabinets { grid-template-columns: 1fr; }
}

.cabinet {
  position: relative;
  border-radius: 22px;
  padding: 28px 28px 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 30%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 30px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.cabinet::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(180deg, var(--accent, var(--cyan)), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .6;
}
.cabinet:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 40px 80px rgba(0,0,0,.7),
    0 0 60px var(--accent-glow, rgba(120, 200, 255, .25));
}
.cabinet--cyan { --accent: var(--cyan); --accent-glow: rgba(120, 200, 255, .35); }
.cabinet--amber { --accent: var(--amber); --accent-glow: rgba(255, 200, 80, .3); }

.cabinet-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  margin-bottom: 22px;
}
.cabinet-icon-img {
  width: 72px; height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    0 8px 22px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.06);
}

.cabinet-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cabinet-eyebrow {
  font-family: var(--display); font-size: 8px; letter-spacing: .16em;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}
.cabinet-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0;
  letter-spacing: .02em;
  color: #fff;
}
.cabinet-tag {
  color: var(--text-dim); font-size: 14px;
}

.cabinet-body {
  display: grid; grid-template-columns: 1fr 200px; gap: 24px;
  align-items: stretch;
  flex: 1;
}
@media (max-width: 1100px) {
  .cabinet-body { grid-template-columns: 1fr; }
  .cabinet-screen { max-width: 240px; margin: 0 auto; }
}

.cabinet-copy { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.cabinet-pitch {
  font-family: var(--display); font-size: 12px; line-height: 1.7;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 0 14px var(--accent-glow);
}
.cabinet-desc { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.cabinet-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); letter-spacing: .04em;
}
.cabinet-meta span::before { content: "▸ "; color: var(--accent); }

.cabinet-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: auto;
  align-self: flex-start;
}
.cabinet-cta .arrow {
  width: 22px; height: 12px; position: relative;
}
.cabinet-cta .arrow::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 4px; height: 2px;
  background: currentColor;
}
.cabinet-cta .arrow::after {
  content: ""; position: absolute; top: 1px; right: 0;
  width: 8px; height: 8px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.cabinet-screen {
  position: relative;
  align-self: center;
}
.cabinet-screen img {
  width: 100%; height: auto; display: block;
  border-radius: 28px;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.6));
}
.cabinet-screen::after {
  content: ""; position: absolute; inset: 0; border-radius: 28px;
  box-shadow: 0 0 60px var(--accent-glow);
  pointer-events: none;
}

/* —— Section: features ————————————————————————————— */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 0 0 80px;
}
@media (max-width: 780px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
}
.feature-num {
  font-family: var(--display); font-size: 10px; letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.feature-title {
  font-family: var(--display); font-size: 13px; letter-spacing: .04em;
  margin: 0 0 10px; color: #fff;
}
.feature-desc { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0; }

/* —— Footer ———————————————————————————————————————— */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--text-faint);
}
.footer-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 10px; letter-spacing: .1em;
  color: var(--text-dim);
}
.footer-mark::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px rgba(120, 200, 255, .35);
}

/* —— Modal ————————————————————————————————————————— */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 4, 10, .72);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade-in .18s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(640px, 100%); max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4),
              0 0 80px rgba(120, 200, 255, .12);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: pop-in .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  font-family: var(--display); font-size: 14px; letter-spacing: .06em;
  margin: 0; color: #fff;
}
.modal-close {
  appearance: none; border: 0; background: rgba(255,255,255,.06);
  color: var(--text); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 16px; line-height: 1;
  border: 1px solid var(--line);
  transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,.12); }
.modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  font-size: 15px; line-height: 1.65; color: var(--text-dim);
}
.modal-body h3 {
  font-family: var(--display); font-size: 11px; letter-spacing: .08em;
  color: var(--cyan); margin: 22px 0 10px;
  text-shadow: 0 0 10px rgba(120, 200, 255, .3);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin: 0 0 12px; }
.modal-body strong { color: var(--text); }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.steps li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  align-items: start;
  padding: 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.steps .num {
  font-family: var(--display); font-size: 11px;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(120,200,255,.4);
  background: rgba(120,200,255,.08);
  border: 1px solid rgba(120,200,255,.25);
  border-radius: 8px;
  width: 32px; height: 32px; display: grid; place-items: center;
}
.steps .body { color: var(--text); font-size: 14.5px; line-height: 1.55; }
.steps .body em { color: var(--text-dim); font-style: normal; font-size: 13px; display: block; margin-top: 4px; }

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 80, .28);
  background: rgba(255, 200, 80, .06);
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  align-items: start;
}
.callout-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--amber); color: #1a1206;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 12px rgba(255,200,80,.4);
}
.callout p { color: var(--text); margin: 0; font-size: 14px; }
.callout p + p { margin-top: 6px; color: var(--text-dim); }

kbd {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  padding: 2px 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--text);
}
