:root {
  --bg: #05070a;
  --panel: rgba(12, 18, 26, 0.76);
  --panel-strong: rgba(16, 25, 37, 0.96);
  --text: #e7f7ff;
  --muted: #8fa5b8;
  --line: rgba(103, 232, 249, 0.18);
  --cyan: #49dadf;
  --green: #8cff9d;
  --blue: #5fa8ff;
  --red: #ff5c7a;
  --yellow: #ffe67a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
}

@font-face {
  font-family: 'D2Coding';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_three@1.0/D2Coding.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  width: 100%;
  max-width: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(73, 218, 223, 0.16), transparent 32vw),
    radial-gradient(circle at 80% 20%, rgba(95, 168, 255, 0.12), transparent 28vw),
    linear-gradient(180deg, #040608 0%, #070b10 50%, #030405 100%);
  font-family: 'D2Coding', monospace;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.mobile-only { display: none; }
img,
video,
svg,
pre {
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(73, 218, 223, .18), transparent 64%);
  left: var(--x, 50%);
  top: var(--y, 30%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
  transition: opacity .3s ease;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 7, 10, .66);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #031012;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
  box-shadow: 0 0 32px rgba(73, 218, 223, .28);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.menu-btn { display: none; }

.section-pad { padding: 140px max(24px, calc((100% - 1180px) / 2)); }
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 160px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .72fr; align-items: center; gap: 54px; width: 100%; min-width: 0; }
.hero-copy,
.hero-visual,
.training-copy,
.official-copy,
.apply-copy,
.terminal-panel,
.official-shell,
.apply-form,
.proof-card,
.infra-card {
  min-width: 0;
}
.terminal-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--green);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.ascii {
  margin: 24px 0 18px;
  max-width: 100%;
  overflow: hidden;
  color: rgba(140, 255, 157, .9);
  font-size: clamp(7px, 1.04vw, 13px);
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(140,255,157,.16);
  white-space: pre;
}
.ascii-mobile { display: none; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { word-break: keep-all; }
h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.2;
  letter-spacing: 0;
}
h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), #fff, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-desc {
  max-width: 760px;
  margin: 26px 0 0;
  color: #b9c9d6;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 0;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  color: #031012;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 48px rgba(73, 218, 223, .22);
  font-weight: 900;
}
.btn.ghost { color: var(--text); background: rgba(255,255,255,.04); }
.btn.full { width: 100%; }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.status-row span {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  overflow-wrap: anywhere;
}
.status-row b { color: var(--cyan); margin-right: 8px; }

.hero-visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.device-frame {
  width: min(370px, 78vw);
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(73,218,223,.38);
  border-radius: 38px;
  background: #020406;
  box-shadow: var(--shadow), 0 0 0 10px rgba(73,218,223,.04);
  transform: rotate(2deg);
}
.device-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  height: 24px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.device-top span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.42); }
.device-frame video { width: 100%; height: 100%; object-fit: cover; opacity: .86; filter: saturate(1.1) contrast(1.08); }
.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(73,218,223,.2), transparent);
  height: 24%;
  animation: scan 3.6s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(460%); } }
.floating-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 12, 18, .78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.floating-card small { display: block; color: var(--cyan); margin-bottom: 6px; }
.floating-card strong { font-size: 15px; }
.card-a { top: 12%; right: 0; animation: float 4s ease-in-out infinite; }
.card-b { bottom: 12%; left: 0; animation: float 5s ease-in-out infinite reverse; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(73,218,223,.04); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker span {
  display: inline-flex;
  padding: 18px 28px;
  color: rgba(231,247,255,.88);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ticker span::before { content: "//"; color: var(--cyan); margin-right: 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head h2, .training-copy h2, .proof-card h2, .apply-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.2;
  letter-spacing: 0;
}
.section-head p:not(.eyebrow), .training-copy p, .proof-card p, .apply-copy p {
  color: #afbfcc;
  line-height: 1.8;
  font-size: 17px;
}
.lineup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.infra-card {
  position: relative;
  min-height: 470px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.infra-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 50% 0%, rgba(73,218,223,.18), transparent 40%);
  opacity: 0;
  transition: opacity .25s ease;
}
.infra-card:hover { transform: translateY(-8px); border-color: rgba(73,218,223,.48); background: rgba(255,255,255,.065); }
.infra-card:hover::before { opacity: 1; }
.card-index { color: var(--cyan); opacity: .75; font-weight: 900; }
.icon-cloud { font-size: 54px; margin: 82px 0 20px; }
.infra-card h3 { position: relative; margin: 0 0 16px; font-size: 28px; letter-spacing: 0; }
.infra-card p { position: relative; color: #b6c7d4; line-height: 1.75; }
.infra-card ul { position: relative; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.infra-card li { color: var(--green); }
.infra-card li::before { content: "→"; color: var(--cyan); margin-right: 10px; }

.training { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 44px; }
.terminal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-header { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.04); }
.terminal-header span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-header span:nth-child(1) { background: var(--red); }
.terminal-header span:nth-child(2) { background: var(--yellow); }
.terminal-header span:nth-child(3) { background: var(--green); }
.terminal-header p { margin-left: 10px; color: var(--muted); }
.terminal-body { padding: 32px; min-height: 360px; }
.terminal-body p { margin: 0 0 18px; color: #d6ecf4; font-size: clamp(15px, 1.6vw, 20px); line-height: 1.7; overflow-wrap: anywhere; }
.terminal-body span { color: var(--green); margin-right: 10px; }
.terminal-body em { color: var(--cyan); font-style: normal; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.metric-grid div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); }
.metric-grid strong { display: block; color: var(--cyan); font-size: 36px; }
.metric-grid span { color: var(--muted); font-size: 13px; }

.roadmap-list { display: grid; gap: 14px; }
.roadmap-item {
  display: grid;
  grid-template-columns: 80px 240px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
}
.roadmap-item span { color: var(--cyan); font-size: 24px; font-weight: 900; }
.roadmap-item h3 { margin: 0; font-size: 24px; }
.roadmap-item p { margin: 0; color: #adbfca; line-height: 1.7; }

.proof { padding-top: 60px; }
.proof-card {
  padding: clamp(34px, 6vw, 80px);
  border: 1px solid rgba(73,218,223,.28);
  border-radius: calc(var(--radius) + 12px);
  background:
    linear-gradient(135deg, rgba(73,218,223,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}

.apply { display: grid; grid-template-columns: .9fr 1fr; gap: 36px; align-items: start; }
.apply-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  box-shadow: var(--shadow);
}
.apply-form label { display: grid; gap: 10px; margin-bottom: 18px; }
.apply-form span { color: var(--cyan); font-weight: 800; }
.apply-form input, .apply-form select {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  color: var(--text);
  background: rgba(0,0,0,.28);
}
.apply-form input:focus, .apply-form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(73,218,223,.12); }
.apply-form option { color: #071014; }
.form-message { min-height: 24px; color: var(--green); margin: 16px 0 0; }

.footer {
  padding: 36px 24px 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.footer p { color: var(--green); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
  .site-header { top: 12px; height: 64px; }
  .nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(5,7,10,.94);
  }
  .nav.is-open { display: grid; }
  .menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    gap: 0;
    background: rgba(255,255,255,.04);
  }
  .menu-btn span { width: 18px; height: 2px; background: var(--text); display: block; }
  .section-pad { padding: 110px 20px; }
  .hero { padding-top: 120px; }
  .hero-grid, .training, .apply { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; padding: 30px 0; }
  .lineup-grid { grid-template-columns: 1fr; }
  .infra-card { min-height: 390px; }
  .icon-cloud { margin-top: 48px; }
  .roadmap-item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    height: 60px;
    padding: 10px 12px;
  }
  .brand { gap: 10px; }
  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .brand strong {
    font-size: 13px;
    letter-spacing: 0;
  }
  .brand small { display: none; }
  .nav {
    top: 74px;
    right: 10px;
    left: 10px;
  }
  .section-pad { padding: 86px 16px; }
  .hero {
    min-height: auto;
    padding-top: 104px;
  }
  .terminal-pill {
    padding: 9px 12px;
    border-radius: 16px;
    font-size: 12px;
  }
  h1,
  h2,
  h3,
  p {
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }
  br.mobile-only { display: block; }
  h1 {
    font-size: clamp(31px, 8.4vw, 35px);
    line-height: 1.25;
    letter-spacing: 0;
  }
  .section-head h2,
  .training-copy h2,
  .proof-card h2,
  .apply-copy h2 {
    font-size: 30px;
    line-height: 1.28;
    letter-spacing: 0;
  }
  .hero-desc,
  .section-head p:not(.eyebrow),
  .training-copy p,
  .proof-card p,
  .apply-copy p {
    font-size: 15px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .ascii {
    display: block;
    margin: 18px 0 14px;
    font-size: clamp(6.6px, 1.85vw, 8px);
    line-height: 1.08;
    letter-spacing: 0;
    white-space: pre;
  }
  .ascii-desktop { display: none; }
  .ascii-mobile { display: block; }
  .hero-actions .btn { width: 100%; }
  .status-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .device-frame {
    width: min(300px, 82vw);
    border-radius: 30px;
  }
  .infra-card {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }
  .terminal-body {
    min-height: auto;
    padding: 22px;
  }
  .metric-grid { grid-template-columns: 1fr; }
  .roadmap-item { padding: 20px; }
  .proof-card,
  .apply-form {
    border-radius: 22px;
  }
  .apply-form { padding: 20px; }
  .floating-card { display: none; }
}

.official-apply { padding-top: 70px; }
.official-shell {
  overflow: hidden;
  border: 1px solid rgba(73,218,223,.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 12% 20%, rgba(73,218,223,.15), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(140,255,157,.1), transparent 30%),
    rgba(8, 14, 22, .82);
  box-shadow: var(--shadow);
}
.official-grid {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 28px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 62px);
}
.official-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.2;
  letter-spacing: 0;
}
.official-copy p:not(.eyebrow) {
  max-width: 720px;
  color: #afbfcc;
  line-height: 1.8;
  font-size: 17px;
}
.official-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.official-console {
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.12)),
    rgba(255,255,255,.035);
}
.official-console p {
  margin: 0 0 16px;
  color: #d6ecf4;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.official-console p:last-child { margin-bottom: 0; }
.official-console span {
  color: var(--green);
  margin-right: 10px;
}
.check-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 14px 0 4px;
}
.check-line input {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  accent-color: var(--cyan);
}
.check-line span {
  color: #b9c9d6;
  font-weight: 400;
  line-height: 1.5;
}
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-message.is-success { color: var(--green); }
.form-message.is-error { color: var(--red); }

@media (max-width: 980px) {
  .official-grid { grid-template-columns: 1fr; }
  .official-actions .btn { flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .official-grid { padding: 22px; }
  .official-copy h2 {
    font-size: 30px;
    line-height: 1.28;
    letter-spacing: 0;
  }
  .official-actions .btn { width: 100%; }
  .official-console { padding: 20px; }
}

@media (max-width: 360px) {
  .ascii {
    font-size: 6.3px;
  }
}
