/* ============================================================
   EFF:DAVE — awesometn.tech
   Dark ops-room theme. Neon accents match the operator app.
   ============================================================ */

:root {
  --bg:        #0a0e14;
  --bg-panel:  #111722;
  --bg-card:   #151d2b;
  --line:      #1f2a3d;
  --text:      #d7e1ef;
  --text-dim:  #8494ab;
  --cyan:      #44ffff;
  --green:     #44ff44;
  --amber:     #ffbb33;
  --red:       #ff4444;
  --blue:      #4488ff;
  --purple:    #bb44ff;
  --pink:      #ff44aa;
  --orange:    #ff8844;
  --mono:      'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --sans:      'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* subtle scanline texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px);
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,20,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: var(--mono);
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); letter-spacing: 1px;
}
.logo:hover { text-decoration: none; }
.logo .colon { color: var(--cyan); cursor: default; }
.logo .dave  { color: var(--green); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); text-decoration: none; }
.btn-nav {
  background: var(--cyan); color: #05252a !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 700 !important;
}
.btn-nav:hover { filter: brightness(1.15); text-decoration: none !important; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; color: var(--cyan); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-panel); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .btn-nav { border-radius: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; text-align: center; }
.hero .kicker {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--amber);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1; margin: 18px 0 10px; font-weight: 700;
}
.hero h1 .glow { color: var(--cyan); text-shadow: 0 0 24px rgba(68,255,255,0.4); }
.hero .acronym {
  font-family: var(--mono); color: var(--text-dim);
  font-size: clamp(0.8rem, 2vw, 1rem); margin-bottom: 6px;
}
.hero .subtitle {
  color: var(--text-dim); font-size: 1.2rem; max-width: 640px; margin: 18px auto 34px;
}
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 10px;
  font-weight: 700; font-size: 1.05rem; transition: transform .15s, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.12); }
.btn-primary { background: var(--cyan); color: #05252a; box-shadow: 0 0 30px rgba(68,255,255,0.25); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--bg-card); }

/* ---------- TV grid animation ---------- */
.tv-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  max-width: 720px; margin: 56px auto 0;
}
.tv {
  aspect-ratio: 16/9; border-radius: 6px;
  background: var(--bg-card); border: 2px solid var(--line);
  transition: background .6s, border-color .6s, box-shadow .6s;
  position: relative;
}
.tv::after {
  content: ""; position: absolute; left: 40%; right: 40%; bottom: -6px;
  height: 3px; background: var(--line); border-radius: 2px;
}
.tv.live { box-shadow: 0 0 18px var(--tvglow, rgba(68,255,255,0.35)); }
@media (max-width: 560px) { .tv-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-title {
  font-size: 2rem; margin-bottom: 8px; text-align: center;
}
.section-sub { color: var(--text-dim); text-align: center; max-width: 620px; margin: 0 auto 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent, var(--cyan)); }
.card .icon {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  color: var(--accent, var(--cyan)); margin-bottom: 12px; display: block;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; }
.card.c-green  { --accent: var(--green); }
.card.c-amber  { --accent: var(--amber); }
.card.c-blue   { --accent: var(--blue); }
.card.c-purple { --accent: var(--purple); }
.card.c-red    { --accent: var(--red); }

/* ---------- Terminal block ---------- */
.terminal {
  background: #0c1018; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--mono); font-size: 0.92rem;
  max-width: 680px; margin: 0 auto; overflow: hidden;
}
.terminal .bar {
  background: var(--bg-panel); padding: 10px 16px; display: flex; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.terminal .dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal .body { padding: 22px 24px; line-height: 1.9; }
.terminal .prompt { color: var(--green); }
.terminal .cmd { color: var(--text); }
.terminal .ok { color: var(--cyan); }
.terminal .dim { color: var(--text-dim); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; counter-reset: step; }
.step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 28px; position: relative;
}
.step .num {
  font-family: var(--mono); font-size: 2.6rem; font-weight: 700;
  color: var(--cyan); opacity: 0.35; line-height: 1;
}
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Video embed ---------- */
.video-wrap { display: flex; justify-content: center; }
.video-wrap blockquote.instagram-media { margin: 0 auto !important; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 40px; max-width: 620px; margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; color: var(--text);
  font-family: var(--sans); font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(68,255,255,0.12);
}
textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(68,255,255,0.08), rgba(68,255,68,0.06));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: 64px 24px;
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px;
  text-align: center; color: var(--text-dim); font-size: 0.88rem;
}
footer .foot-logo { font-family: var(--mono); color: var(--text); font-weight: 700; }
footer .foot-logo .colon { color: var(--cyan); }
footer .tagline { margin-top: 6px; font-family: var(--mono); font-size: 0.78rem; opacity: 0.7; }

/* ---------- Dave modal (easter egg) ---------- */
.dave-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4,6,10,0.9); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.dave-modal.show { display: flex; }
.dave-box {
  background: var(--bg-card); border: 1px solid var(--cyan);
  box-shadow: 0 0 60px rgba(68,255,255,0.25);
  border-radius: 16px; max-width: 440px; width: 100%;
  padding: 28px; text-align: center; position: relative;
  animation: davein .35s ease;
}
@keyframes davein { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dave-box img {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  margin-bottom: 16px;
}
.dave-box h3 { font-family: var(--mono); color: var(--cyan); margin-bottom: 8px; }
.dave-box p { color: var(--text-dim); font-size: 0.93rem; }
.dave-box .close-dave {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  color: var(--text-dim); font-size: 1.4rem; cursor: pointer;
}
.dave-box .close-dave:hover { color: var(--red); }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 110px 24px; }
.err-page .code {
  font-family: var(--mono); font-size: clamp(4rem, 14vw, 8rem);
  color: var(--red); text-shadow: 0 0 40px rgba(255,68,68,0.35); font-weight: 700;
}
.err-page p { color: var(--text-dim); max-width: 480px; margin: 18px auto; }

/* ---------- About ---------- */
.about-block { max-width: 720px; margin: 0 auto; }
.about-block p { margin-bottom: 18px; color: var(--text-dim); font-size: 1.05rem; }
.about-block strong { color: var(--text); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 40px 0; }
.stat {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; text-align: center;
}
.stat .big { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--cyan); }
.stat .small { font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }
