:root {
  --background: #090b12;
  --surface: rgba(18, 21, 32, 0.74);
  --surface-strong: rgba(24, 28, 42, 0.9);
  --ink: #f5f7fb;
  --muted: #9da5b8;
  --faint: #60697f;
  --line: rgba(168, 179, 211, 0.16);
  --purple: #a78bfa;
  --cyan: #62e7e0;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--background); }

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(132, 150, 192, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 150, 192, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.55) 60%, transparent 100%);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  transition: transform 1s ease-out;
}

.ambient-purple { top: -20vw; right: -9vw; background: var(--purple); }
.ambient-cyan { bottom: -24vw; left: -13vw; background: var(--cyan); opacity: 0.08; }

.page-shell {
  --pointer-x: 0px;
  --pointer-y: 0px;
  display: flex;
  width: min(100%, 1440px);
  min-height: 100svh;
  flex-direction: column;
  margin: 0 auto;
  padding: 32px clamp(24px, 6vw, 96px) 28px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.site-header { animation: fade-up 0.8s 0.05s both; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.75);
  border-radius: 9px;
  color: var(--purple);
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.brand-mark span { color: var(--cyan); }
.status { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.status-dot,
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(98, 231, 224, 0.8); }
.status-dot { animation: status-pulse 2.4s ease-in-out infinite; }

.hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: clamp(48px, 11vw, 170px);
  padding: clamp(76px, 12vh, 150px) 0 clamp(70px, 11vh, 130px);
}

.hero-copy { animation: fade-up 0.9s 0.18s both; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 28px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow-rule { width: 34px; height: 1px; background: var(--purple); box-shadow: 0 0 12px rgba(167, 139, 250, 0.65); }

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 7.3vw, 112px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.accent-text { color: var(--purple); text-shadow: 0 0 34px rgba(167, 139, 250, 0.23); }
.period { color: var(--cyan); }
.cursor { display: inline-block; width: 0.07em; height: 0.72em; margin-left: 0.13em; background: var(--cyan); vertical-align: 0.02em; animation: blink 1.1s steps(1) infinite; }

.intro { max-width: 520px; margin: 32px 0 35px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button:focus-visible, .brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.button-primary { background: var(--surface-strong); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.button-primary:hover { border-color: rgba(167, 139, 250, 0.66); background: rgba(36, 40, 61, 0.95); box-shadow: 0 10px 30px rgba(167, 139, 250, 0.11); }
.button-secondary { background: transparent; color: var(--muted); }
.button-secondary:hover { border-color: rgba(98, 231, 224, 0.56); color: var(--cyan); background: rgba(98, 231, 224, 0.05); }
.button-icon { display: grid; width: 20px; height: 20px; place-items: center; color: var(--purple); font-size: 17px; }
.play-icon { color: var(--cyan); font-size: 10px; }
.external-arrow { margin-left: 7px; color: var(--faint); font-size: 16px; }

.build-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04); backdrop-filter: blur(18px); animation: panel-in 1s 0.3s both; transform: translate(var(--pointer-x), var(--pointer-y)); transition: transform 1s ease-out; }
.build-panel::before { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), transparent 42%); content: ''; pointer-events: none; }
.panel-topline, .panel-footer { display: flex; justify-content: space-between; padding: 17px 20px; color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; }
.panel-topline { border-bottom: 1px solid var(--line); }
.panel-footer { border-top: 1px solid var(--line); }
.panel-live { display: flex; align-items: center; gap: 7px; color: var(--cyan); }
.live-dot { width: 5px; height: 5px; box-shadow: 0 0 9px rgba(98, 231, 224, 0.8); }
.panel-content { min-height: 245px; padding: 44px 30px 38px; }
.terminal-line { display: flex; align-items: center; gap: 11px; color: var(--ink); font-family: var(--mono); font-size: 13px; }
.terminal-prompt { color: var(--cyan); }
.terminal-caret { width: 7px; height: 15px; background: var(--purple); animation: blink 1.1s steps(1) infinite; }
.terminal-output { margin: 18px 0 43px; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.progress-track { height: 3px; overflow: hidden; border-radius: 3px; background: rgba(167, 139, 250, 0.16); }
.progress-track span { display: block; width: 31%; height: 100%; background: linear-gradient(90deg, var(--purple), var(--cyan)); box-shadow: 0 0 14px rgba(98, 231, 224, 0.65); }
.panel-meta { display: flex; justify-content: space-between; margin-top: 17px; color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-meta strong { color: var(--cyan); font-weight: 400; }

.site-footer { color: var(--faint); }
.footer-note { color: var(--muted); }
.footer-code { color: var(--purple); }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translate(20px, 8px); } to { opacity: 1; transform: translate(var(--pointer-x), var(--pointer-y)); } }
@keyframes blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes status-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 780px) {
  .page-shell { padding: 24px 20px 22px; }
  .hero { grid-template-columns: 1fr; gap: 54px; padding: 13vh 0 11vh; }
  h1 { font-size: clamp(50px, 13.5vw, 80px); }
  .intro { margin: 27px 0 30px; font-size: 15px; }
  .build-panel { width: min(100%, 500px); margin: 0 auto; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; line-height: 1.5; }
  .footer-note { order: 3; width: 100%; }
  .footer-code { display: none; }
}

@media (max-width: 480px) {
  .site-header { align-items: flex-start; }
  .status { font-size: 9px; text-align: right; }
  .hero { padding-top: 11vh; }
  .social-links { width: 100%; }
  .button { flex: 1; justify-content: center; }
  .panel-content { min-height: 220px; padding: 34px 22px 31px; }
}

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