:root {
  --bg: #060a10;
  --txt: #e8eff6;
  --muted: #8398ad;
  --line: rgba(86, 140, 180, .18);
  --cyan: #38bdf8;
  --cyan-d: #0a93d6;
  --green: #34d399;
  --warn: #f5b301;
  --ink: #03121d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
}

.o-mono { font-family: "Consolas", ui-monospace, "SFMono-Regular", monospace; }
.o-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- shell -------------------------------------------------------------- */
.o-portal {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 26px 30px;
  background: radial-gradient(1100px 520px at 60% -10%, rgba(56, 189, 248, .12), transparent 60%), var(--bg);
}

/* ---- background scene (rotating globe + tracks) ------------------------- */
.o-scene { position: absolute; inset: 0; pointer-events: none; }
.o-grid {
  position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(rgba(86, 140, 180, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 140, 180, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(760px 600px at 55% 45%, #000, transparent 80%);
          mask-image: radial-gradient(760px 600px at 55% 45%, #000, transparent 80%);
}
.o-stage {
  position: absolute; top: 50%; left: 56%;
  width: 660px; height: 660px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 60px rgba(56, 189, 248, .20));
}
.o-wire { transform-origin: 320px 320px; animation: o-turn 90s linear infinite; }
@keyframes o-turn { to { transform: rotate(360deg); } }

.o-vessel circle { } /* wake ring styled inline */
.o-plane g { animation: o-blink 3.6s ease-in-out infinite; }
.o-plane g:last-child { animation-delay: 1.4s; }
@keyframes o-blink { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

.o-sat rect { fill: var(--cyan); }
.o-sat g > rect:last-child { filter: drop-shadow(0 0 7px rgba(56, 189, 248, .95)); }
.o-sat g > rect:not(:last-child) { fill: rgba(56, 189, 248, .55); }
.o-sat g { animation: o-blink 4s ease-in-out infinite; }
.o-sat g:nth-child(2) { animation-delay: 1.3s; }
.o-sat g:nth-child(3) { animation-delay: 2.4s; }

.o-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(125% 100% at 55% 48%, transparent 56%, rgba(6, 10, 16, .42) 84%, var(--bg) 100%);
}

/* ---- foreground --------------------------------------------------------- */
.o-fg {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  min-height: calc(100vh - 52px);
  max-width: 1080px; margin: 0 auto;
}
.o-top { display: flex; justify-content: space-between; align-items: center; }
.o-chip {
  display: inline-flex; align-items: center; gap: 9px;
  letter-spacing: 5px; font-weight: 700; font-size: 12px; color: var(--cyan);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  background: rgba(56, 189, 248, .05);
}
.o-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.o-main {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 36px; padding: 18px 0;
}
.o-hero { max-width: 440px; animation: o-rise .7s ease both; }
.o-hero h1 {
  margin: 0 0 14px; font-size: 54px; line-height: 1.02; font-weight: 800;
  letter-spacing: .5px; text-shadow: 0 0 34px rgba(56, 189, 248, .3);
}
.o-hero h1 em { display: block; font-style: normal; font-weight: 300; color: var(--cyan); }
.o-tag { color: #b9c8d8; font-size: 15px; max-width: 410px; margin: 0 0 18px; }
.o-feats { display: flex; flex-wrap: wrap; gap: 8px; }
.o-feats span {
  font-family: "Consolas", ui-monospace, monospace; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: #9fc6e0; border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 10px; background: rgba(56, 189, 248, .04);
}

/* ---- side console ------------------------------------------------------- */
.o-console {
  position: relative; width: 312px; flex: none; padding: 20px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 33, .85), rgba(9, 14, 21, .88));
  border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: o-rise .7s ease .12s both;
}
.o-console::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .8;
}
.o-console::after {
  content: ""; position: absolute; width: 15px; height: 15px; top: 8px; right: 8px;
  border-top: 2px solid rgba(56, 189, 248, .5); border-right: 2px solid rgba(56, 189, 248, .5);
}
.o-chead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.o-label {
  font-family: "Consolas", ui-monospace, monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: #bcd2e6;
}
.o-badge {
  font-family: "Consolas", ui-monospace, monospace; font-size: 12px; font-weight: 700; color: var(--green);
  border: 1px solid rgba(52, 211, 153, .4); border-radius: 999px; padding: 2px 10px;
  background: rgba(52, 211, 153, .08); box-shadow: 0 0 12px rgba(52, 211, 153, .25);
}
.o-badge.warn {
  color: var(--warn); border-color: rgba(245, 179, 1, .45);
  background: rgba(245, 179, 1, .08); box-shadow: 0 0 12px rgba(245, 179, 1, .2);
}

.o-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 14px 0 4px; padding: 12px 16px; font-weight: 700; font-size: 14px; letter-spacing: .3px;
  text-decoration: none; color: var(--ink); border-radius: 9px; overflow: hidden;
  background: linear-gradient(180deg, #5fd0ff, var(--cyan) 55%, var(--cyan-d));
  box-shadow: 0 0 0 1px rgba(56, 189, 248, .5), 0 10px 26px -10px rgba(56, 189, 248, .6);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.o-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 0 0 1px rgba(56, 189, 248, .75), 0 14px 34px -10px rgba(56, 189, 248, .85); }
.o-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.o-btn-i { font-size: 17px; line-height: 1; }
.o-sheen {
  position: absolute; top: 0; left: -60%; width: 45%; height: 100%; font-size: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); animation: o-sheen 5s ease-in-out infinite;
}
@keyframes o-sheen { 0%, 55% { left: -60%; } 82%, 100% { left: 130%; } }
.o-ghost {
  margin-top: 6px; color: var(--cyan); background: none; font-size: 13px;
  background-image: linear-gradient(rgba(56, 189, 248, .08), rgba(56, 189, 248, .03));
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .45);
}
.o-ghost:hover { background-image: linear-gradient(rgba(56, 189, 248, .16), rgba(56, 189, 248, .07)); box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .75); }

.o-meta { margin: 14px 0 0; display: grid; }
.o-meta > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid rgba(86, 140, 180, .12); }
.o-meta dt { margin: 0; font-family: "Consolas", ui-monospace, monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.o-meta dd { margin: 0; text-align: right; font-family: "Consolas", ui-monospace, monospace; font-size: 12.5px; color: #dce8f2; }

.o-sum { margin-top: 12px; }
.o-sum summary {
  cursor: pointer; list-style: none; font-family: "Consolas", ui-monospace, monospace; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px;
}
.o-sum summary::-webkit-details-marker { display: none; }
.o-sum summary::before { content: "\25B8"; color: var(--cyan); transition: transform .15s; display: inline-block; }
.o-sum[open] summary::before { transform: rotate(90deg); }
.o-sum code {
  display: block; margin-top: 8px; font-size: 10.5px; line-height: 1.6; color: #7fd0f5; word-break: break-all;
  background: rgba(56, 189, 248, .06); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
}

.o-err { color: var(--warn); font-size: 12px; margin: 10px 0 0; }
.o-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .25), transparent); margin: 14px 0; }
.o-note { margin: 0 0 4px; font-size: 12px; color: var(--muted); }

.o-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); padding-top: 6px; }
.o-foot .o-dim { opacity: .6; letter-spacing: 1px; }

@keyframes o-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .o-wire, .o-sheen, .o-plane g, .o-sat g, .o-hero, .o-console { animation: none !important; }
}

/* ---- responsive --------------------------------------------------------- */
/* small desktop / large tablet: tighten the two-column layout */
@media (max-width: 1000px) {
  .o-hero h1 { font-size: 46px; }
  .o-main { gap: 24px; }
  .o-console { width: 290px; }
  .o-stage { left: 60%; width: 600px; height: 600px; }
}

/* stacked: tablets portrait / large phones */
@media (max-width: 760px) {
  .o-portal { padding: 20px 18px; }
  .o-fg { min-height: auto; }
  .o-main { flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 0 12px; }
  .o-hero { max-width: none; }
  .o-hero h1 { font-size: 40px; }
  .o-tag { max-width: 560px; }
  .o-console { width: 100%; max-width: 440px; }
  .o-stage { left: 50%; top: 30%; width: 460px; height: 460px; opacity: .32; }
  .o-grid { -webkit-mask-image: radial-gradient(520px 440px at 50% 26%, #000, transparent 82%);
                    mask-image: radial-gradient(520px 440px at 50% 26%, #000, transparent 82%); }
  .o-vignette { background: radial-gradient(150% 70% at 50% 24%, transparent 46%, rgba(6,10,16,.55) 78%, var(--bg) 100%); }
}

/* phones */
@media (max-width: 440px) {
  .o-portal { padding: 16px 14px; }
  .o-hero h1 { font-size: 32px; }
  .o-tag { font-size: 14px; }
  .o-console { padding: 16px; }
  .o-stage { width: 380px; height: 380px; opacity: .26; }
  .o-feats span { font-size: 10px; padding: 4px 8px; }
  .o-foot { flex-direction: column; gap: 5px; align-items: flex-start; text-align: left; }
}
