:root {
  --navy: #07142f;
  --navy-soft: #0d2147;
  --blue: #154fc6;
  --cyan: #2fd8ff;
  --yellow: #ffe51f;
  --white: #f7fbff;
  --muted: #a9bad7;
  --border: rgba(101, 173, 255, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(rgba(65, 127, 206, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(65, 127, 206, .09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.glow { position: fixed; z-index: -2; width: 36rem; height: 36rem; border-radius: 50%; filter: blur(110px); opacity: .16; }
.glow-one { top: -18rem; left: -12rem; background: var(--cyan); }
.glow-two { right: -15rem; bottom: -20rem; background: var(--blue); }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand img:first-child { width: 106px; height: 72px; object-fit: contain; }
.brand img:last-child { width: 80px; height: 60px; object-fit: contain; }
.brand > span { width: 1px; height: 38px; background: rgba(255,255,255,.2); }
.system-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .03em; }
.system-status i { width: 9px; height: 9px; border-radius: 50%; background: #46e690; box-shadow: 0 0 0 5px rgba(70,230,144,.1), 0 0 15px rgba(70,230,144,.7); animation: pulse 1.8s infinite; }

main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: clamp(62px, 9vw, 112px) 0 64px; text-align: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--cyan); border: 1px solid var(--border); background: rgba(21,79,198,.12); padding: 10px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .035em; }
.eyebrow span { color: var(--yellow); }
h1 { margin: 30px auto 20px; max-width: 900px; font-size: clamp(3.1rem, 8.8vw, 7rem); line-height: .92; letter-spacing: -.065em; font-weight: 850; }
h1 strong { color: transparent; background: linear-gradient(90deg, var(--cyan), #63a0ff 52%, var(--yellow)); -webkit-background-clip: text; background-clip: text; font-weight: inherit; }
.lead { max-width: 730px; margin: 0 auto; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.25rem); line-height: 1.75; }

.terminal { max-width: 720px; margin: 46px auto 30px; overflow: hidden; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: rgba(4, 13, 32, .88); box-shadow: 0 28px 80px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(16px); }
.terminal-bar { display: flex; align-items: center; padding: 13px 17px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.035); color: #7f94b8; font: 600 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-bar > span { margin: auto; transform: translateX(-25px); }
.dots { display: flex; gap: 7px; }
.dots b { display: block; width: 10px; height: 10px; border-radius: 50%; background: #ff6259; }
.dots b:nth-child(2) { background: #ffc83d; }
.dots b:nth-child(3) { background: #42d77d; }
.terminal-body { padding: 24px; color: #c5d4ec; font: 500 .9rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal-body p { margin: 0 0 9px; }
.prompt, .success { color: #42e89a; }
.yellow { color: var(--yellow); }
.cursor { animation: blink .8s step-end infinite; }
.progress { margin-top: 24px; height: 7px; overflow: hidden; border-radius: 999px; background: #15274b; }
.progress span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--yellow)); box-shadow: 0 0 14px rgba(47,216,255,.65); animation: load 1.2s ease-out both; }
.progress-label { display: flex; justify-content: space-between; margin-top: 9px; color: #7186aa; font-size: .67rem; letter-spacing: .09em; }
.progress-label strong { color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.chips span { padding: 7px 12px; color: #88a5ce; border: 1px solid rgba(86,132,193,.2); border-radius: 8px; background: rgba(11,30,64,.6); font: 600 .73rem ui-monospace, monospace; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 80px; }
.cards article { padding: 25px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(18,49,99,.62), rgba(6,19,45,.64)); transition: transform .25s ease, border-color .25s ease; }
.cards article:hover { transform: translateY(-5px); border-color: rgba(47,216,255,.48); }
.icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 11px; background: rgba(47,216,255,.1); color: var(--cyan); font: 750 .95rem ui-monospace, monospace; }
.cards article:nth-child(2) .icon { color: var(--yellow); background: rgba(255,229,31,.1); }
.cards article:nth-child(3) .icon { color: #7b9cff; background: rgba(123,156,255,.1); }
h2 { margin: 0 0 8px; font-size: 1.08rem; }
.cards p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

footer { width: min(1100px, calc(100% - 40px)); margin: auto; padding: 25px 0 32px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); color: #758aaa; font-size: .76rem; }
footer p { margin: 0; }
footer span { color: var(--yellow); }

@keyframes pulse { 50% { opacity: .45; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes load { from { width: 0; } to { width: 72%; } }

@media (max-width: 720px) {
  .topbar { width: min(100% - 28px, 1180px); padding-top: 16px; }
  .brand { gap: 10px; }
  .brand img:first-child { width: 83px; height: 58px; }
  .brand img:last-child { width: 62px; height: 48px; }
  .system-status { font-size: 0; }
  main { width: min(100% - 28px, 1100px); }
  .hero { padding-top: 54px; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.8rem); }
  .eyebrow { font-size: .68rem; }
  .terminal-body { padding: 19px; font-size: .77rem; }
  .cards { grid-template-columns: 1fr; }
  footer { width: min(100% - 28px, 1100px); gap: 9px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
