/* ── FLASH PREVENTION ── */
.no-transition *, .no-transition *::before, .no-transition *::after {
  transition: none !important;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bg:      #ffffff;
  --text:    #080808;
  --muted:   #666666;
  --border:  #e5e5e5;
  --nav-bg:  #080808;
  --dark:    #111110;
  --green:   #00FF41;
  --red:     #E24B4A;
  --surface: #f5f5f5;
}

[data-theme="dark"] {
  --bg:      #0a0a0a;
  --text:    #F4F4F0;
  --muted:   #888888;
  --border:  #2a2a2a;
  --nav-bg:  #080808;
  --surface: #111111;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s, color 0.2s;
}

h1, h2, h3, h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  line-height: 1.1;
  word-spacing: -4px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ── NAV — always dark ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #080808;
  border-bottom: 1px solid #222;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.nav-logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.logo-denied { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 22px; color: #F4F4F0; letter-spacing: -1px; }
.logo-gt     { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 22px; color: #F4F4F0; letter-spacing: -1px; }
.logo-cursor { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 22px; color: #E24B4A; letter-spacing: -1px; animation: blink-cursor 1s step-end infinite; }
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}

.nav-center a {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(244,244,240,0.55);
  transition: color 0.15s;
}
.nav-center a:hover,
.nav-center a[aria-current] { color: #F4F4F0; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  color: rgba(244,244,240,0.55);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: #F4F4F0; }

/* Subscribe button */
.btn-sub {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 9px 20px;
  background: transparent;
  color: #F4F4F0;
  border: 1px solid rgba(244,244,240,0.35);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.btn-sub:hover { border-color: #F4F4F0; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  justify-self: end;
}
.hamburger span { display: block; width: 20px; height: 1px; background: #F4F4F0; }

/* ── MOBILE NAV ── */
.nav-mobile {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 299;
  background: #080808;
  border-bottom: 1px solid #222;
  padding: 28px 24px;
  flex-direction: column;
  gap: 18px;
}
.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(244,244,240,0.65);
}
.nav-mobile a:hover { color: #F4F4F0; }
.nav-mobile .btn-sub { width: 100%; text-align: center; padding: 12px 20px; }

.nav-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mobile-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(244,244,240,0.4);
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.btn-outline:hover { border-color: var(--text); }

/* ── FORM INPUTS (themed) ── */
input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
  transition: border-color 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus { border-color: var(--text); }
textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
}

/* ── UTILITY ── */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: block;
}

.rule { border: none; border-top: 1px solid var(--border); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

.status {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  margin-top: 14px;
  display: none;
  line-height: 1.6;
}
.status.ok  { color: var(--green); display: block; }
.status.err { color: var(--red);   display: block; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 40px 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.footer-logo { height: 28px; width: auto; display: block; }

.footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.65;
  max-width: 220px;
}

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.footer-powered {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-style: italic;
  color: #666;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-inner { grid-template-columns: auto 1fr; padding: 0 20px; }
  .nav-center { display: none; }
  .nav-right  { display: none; }
  .hamburger  { display: flex; }

  .wrap { padding: 0 20px; }
  .site-footer { padding: 56px 20px 0; }
  .footer-grid  { padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
