/* ═══════════════════════════════════════════════════════════════════
   TOT — thatorthat.app · Design System
   Editorial Luxury × Z-Gen Energy
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --paper: #FAF8F3;
  --paper-warm: #F4F0E8;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --ink-muted: #6B6B6B;
  --ink-light: #A8A8A8;
  --line: #E8E4DA;
  --line-soft: #F0ECE2;

  /* Accent — Acid Lime */
  --acid: #D4FF00;
  --acid-dark: #B8E000;
  --acid-glow: rgba(212, 255, 0, 0.4);

  /* Secondary accents */
  --hot: #FF4D2E;
  --cool: #4D7CFF;

  /* Surface */
  --surface: #FFFFFF;
  --surface-tint: #FBFAF6;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Spacing */
  --container: min(1280px, 100% - 48px);
  --container-tight: min(900px, 100% - 48px);
  --container-prose: min(720px, 100% - 48px);

  /* Type */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(212, 255, 0, 0.2);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 255, 0, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(212, 255, 0, 0.05); }
}

/* ── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--container);
  max-width: 1280px;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 14px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: all 0.3s var(--ease);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--acid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
}

.nav-link:hover {
  background: rgba(10, 10, 10, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-lang {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}

.nav-lang:hover {
  border-color: var(--ink);
}

.nav-lang strong {
  color: var(--ink);
  font-weight: 600;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  animation: pulse 2s var(--ease) infinite;
}

.nav-cta:hover .nav-cta-dot {
  background: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { padding: 8px 8px 8px 18px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 255, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-acid {
  background: var(--acid);
  color: var(--ink);
}

.btn-acid:hover {
  background: var(--ink);
  color: var(--acid);
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-block .footer-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-block .footer-logo-mark {
  width: 56px;
  height: 56px;
  background: var(--acid);
  color: var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: rgba(250, 248, 243, 0.7);
  max-width: 320px;
  line-height: 1.3;
  margin-bottom: 24px;
}

.footer-stores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: rgba(250, 248, 243, 0.6);
  cursor: not-allowed;
}

.footer-store-btn .badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  background: var(--acid);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.4);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(250, 248, 243, 0.75);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: rgba(250, 248, 243, 0.4);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.footer-mega {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 1;
  color: rgba(212, 255, 0, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand-block { grid-column: span 2; }
  .footer-brand-block .footer-logo { font-size: 42px; }
  .footer-brand-block .footer-logo-mark { width: 44px; height: 44px; font-size: 18px; }
}

@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── PROSE (legal pages, blog, etc) ─────────────────────────────── */
.prose {
  width: var(--container-prose);
  margin: 0 auto;
  padding: 140px 0 60px;
}

.prose-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--acid);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.prose h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
}

.prose-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.prose-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.prose h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  margin: 56px 0 18px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.02em;
}

.prose h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.prose p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin: 14px 0 22px 24px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--acid-dark); }

.prose a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--acid);
  transition: all 0.2s var(--ease);
}

.prose a:hover {
  background: var(--acid);
  padding: 0 4px;
  margin: 0 -4px;
  border-bottom-color: var(--ink);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--acid);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.callout strong { color: var(--ink); font-weight: 600; }

.callout-warn {
  border-left-color: var(--hot);
  background: rgba(255, 77, 46, 0.04);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.prose th, .prose td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.prose tr:last-child td { border-bottom: none; }

.prose th {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-warm);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ── UTILITIES ──────────────────────────────────────────────────── */
.container { width: var(--container); margin: 0 auto; }
.container-tight { width: var(--container-tight); margin: 0 auto; }
.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }

.divider-line {
  height: 1px;
  background: var(--line);
  width: 100%;
}

@media (max-width: 540px) {
  .section { padding: 60px 0; }
  .prose { padding: 110px 0 40px; }
  .prose h2 { font-size: 21px; margin-top: 44px; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.fade-up { animation: fadeUp 0.8s var(--ease) backwards; }

/* ── SELECTION ──────────────────────────────────────────────────── */
::selection { background: var(--acid); color: var(--ink); }
::-moz-selection { background: var(--acid); color: var(--ink); }
