/* ============================================================
   Endpoint Alpha — promotional landing page
   Pure CSS. No framework, no reset library, no preprocessor.
   ============================================================ */

:root{
  --bg:            #0a0908;
  --bg-panel:      #131110;
  --bg-panel-2:    #1a1613;
  --line:          #2b2620;
  --line-bright:   #4a4030;

  --amber:         #ffb627;
  --amber-dim:     #8a641b;
  --amber-glow:    rgba(255, 182, 39, 0.14);
  --red:           #ff3b3b;
  --red-glow:      rgba(255, 59, 59, 0.16);

  --text:          #e8e2d4;
  --text-dim:      #948c7c;
  --text-faint:    #5c5648;

  --ff-display:    'VT323', 'Courier New', monospace;
  --ff-mono:       'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --wrap:          1080px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-mono);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection{ background: var(--amber); color: #0a0908; }

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
h1,h2,h3{ margin: 0; font-weight: 500; }
p{ margin: 0; color: var(--text-dim); }

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== atmosphere ===== */
.scanlines{
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(255,255,255,0.018) 0px, rgba(255,255,255,0.018) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: overlay;
}
.vignette{
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(0,0,0,0.55) 100%);
}

/* ===== header ===== */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,9,8,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.brand{ display: flex; align-items: center; gap: 8px; font-family: var(--ff-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-glyph{ color: var(--amber); }
.brand-alpha{ color: var(--text-dim); font-weight: 500; }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 600; font-size: 13.5px;
  padding: 11px 18px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-glyph{ font-size: 11px; }
.btn-ghost{ border-color: var(--line-bright); color: var(--text); }
.btn-ghost:hover{ border-color: var(--amber); color: var(--amber); }
.btn-amber{ background: var(--amber); color: #14100a; box-shadow: 0 0 0 1px var(--amber); }
.btn-amber:hover{ background: #ffc555; transform: translateY(-1px); }
.btn-outline{ border-color: var(--line-bright); color: var(--text-dim); }
.btn-outline:hover{ border-color: var(--text-dim); color: var(--text); }
.btn-lg{ padding: 15px 28px; font-size: 15px; }

/* ===== hero / terminal window ===== */
.hero{ padding: 64px 0 88px; }

.terminal-window{
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: var(--bg-panel);
  box-shadow: 0 0 0 1px rgba(255,182,39,0.05), 0 40px 90px -40px rgba(0,0,0,0.8);
  overflow: hidden;
}
.terminal-chrome{
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--bg-panel-2); border-bottom: 1px solid var(--line);
}
.dot{ width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-r{ background: #5a2a2a; } .dot-y{ background: #5a4a1e; } .dot-g{ background: #2a4a2e; }
.terminal-title{
  margin-left: 8px; font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em;
}
.terminal-body{ padding: 36px 30px 40px; }

.boot-lines{
  font-family: var(--ff-mono); font-size: 14px; color: var(--amber-dim);
  min-height: 168px; margin-bottom: 26px;
}
.boot-lines .line{ display: block; margin-bottom: 6px; opacity: 0.85; }
.boot-lines .line.headline{
  font-family: var(--ff-display); font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05; color: var(--text); opacity: 1; margin: 14px 0 4px;
  letter-spacing: 0.01em;
}
.cursor{
  display: inline-block; width: 0.55em; height: 1em; background: var(--amber);
  vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite;
}
.line.headline .cursor{ height: 0.85em; }
@keyframes blink{ 50%{ opacity: 0; } }
@media (prefers-reduced-motion: reduce){
  .cursor{ animation: none; opacity: 1; }
}

.hero-sub{ max-width: 62ch; font-size: 15.5px; color: var(--text-dim); margin-bottom: 30px; }
.hero-ctas{ display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.statusline{
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-faint); letter-spacing: 0.03em;
  padding-top: 20px; border-top: 1px dashed var(--line);
}
.led{ display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.led-live{ background: var(--amber); box-shadow: 0 0 6px 1px var(--amber-glow); }

/* ===== reveal-on-scroll ===== */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ===== section basics ===== */
section{ padding: 90px 0; border-top: 1px solid var(--line); }
.eyebrow{
  display: block; font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--amber); margin-bottom: 16px;
}
.section-head{ max-width: 760px; margin-bottom: 52px; }
.section-head h2{
  font-family: var(--ff-display); font-size: clamp(28px, 4vw, 42px);
  color: var(--text); line-height: 1.15; margin-bottom: 16px;
}
.section-head p{ font-size: 15.5px; max-width: 60ch; }

/* ===== features ===== */
.feat-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat-card{ background: var(--bg-panel); padding: 28px 26px; transition: background .2s ease; }
.feat-card:hover{ background: var(--bg-panel-2); }
.feat-id{ display: block; font-size: 12px; color: var(--amber-dim); letter-spacing: 0.05em; margin-bottom: 14px; }
.feat-card h3{ font-size: 17px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.feat-card p{ font-size: 14px; line-height: 1.6; }

/* ===== protocol ===== */
.protocol-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.protocol-num{
  font-family: var(--ff-display); font-size: 46px; color: var(--amber-dim); line-height: 1; display: block; margin-bottom: 14px;
}
.protocol-step h3{ font-size: 18px; color: var(--text); margin-bottom: 10px; font-weight: 600; }
.protocol-step p{ font-size: 14.5px; max-width: 34ch; }

/* ===== final CTA ===== */
.cta-section{ padding-bottom: 110px; }
.cta-box{
  border: 1px solid var(--line-bright); border-radius: 10px; padding: 56px 48px;
  background: radial-gradient(ellipse at 20% 0%, var(--amber-glow), transparent 60%), var(--bg-panel);
  text-align: left;
}
.cta-box h2{ font-family: var(--ff-display); font-size: clamp(28px,4vw,40px); color: var(--text); line-height: 1.15; margin: 0 0 14px; }
.cta-box p{ margin-bottom: 30px; font-size: 14.5px; }

/* ===== footer ===== */
.site-footer{ border-top: 1px solid var(--line); padding: 26px 0 40px; }
.footer-inner{
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-faint);
}
.footer-inner a{ color: var(--text-dim); border-bottom: 1px solid var(--line-bright); }
.footer-inner a:hover{ color: var(--amber); border-color: var(--amber); }
.footer-status{ margin-left: auto; }

/* ===== mobile ===== */
@media (max-width: 860px){
  .feat-grid{ grid-template-columns: 1fr 1fr; }
  .protocol-grid{ grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 640px){
  section{ padding: 64px 0; }
  .hero{ padding: 40px 0 56px; }
  .terminal-body{ padding: 26px 20px 30px; }
  .boot-lines{ min-height: 210px; font-size: 13px; }
  .feat-grid{ grid-template-columns: 1fr; }
  .hero-ctas{ flex-direction: column; align-items: stretch; }
  .hero-ctas .btn{ width: 100%; }
  .statusline{ flex-direction: column; gap: 8px; }
  .cta-box{ padding: 36px 24px; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .footer-status{ margin-left: 0; }
}
