/* ===== THINKPROCESS ===== */
:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #161616;
  --fg: #F5F2ED;
  --fg-dim: #A8A39B;
  --fg-mute: #6B665E;
  --line: rgba(245, 242, 237, 0.08);
  --line-2: rgba(245, 242, 237, 0.16);
  --accent: #F5B500;
  --accent-dim: #C49200;
  --warn: #FFB547;
  --grid-size: 72px;
}

[data-theme="light"] {
  --bg: #F5F2ED;
  --bg-2: #EDEAE4;
  --bg-3: #E4E0D9;
  --fg: #0A0A0A;
  --fg-dim: #4A463F;
  --fg-mute: #8A857C;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.16);
  --accent: #D94A1C;
  --accent-dim: #B23D16;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.serif { font-family: 'Fraunces', 'Times New Roman', serif; font-optical-sizing: auto; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  position: relative;
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
  transform: scale(0);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid #fff;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.nav-cta:hover { background: #fff; color: #000; }

/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}
.theme-toggle:hover { transform: rotate(12deg); border-color: var(--accent); }

/* === LAYOUT === */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}
section { position: relative; }

/* === TYPE === */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 50, 'WONK' 0;
  line-height: 0.95;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  color: var(--accent);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn .arrow {
  transition: transform 0.25s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* === MARQUEE === */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee-item .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* === GRID BG === */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* === UTILS === */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tweaks Panel */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px;
  min-width: 240px;
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg);
}
.tweaks-panel.on { display: block; }
.tweaks-panel h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  margin-bottom: 12px;
  font-weight: 500;
}
.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.tweak-row button {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
}
.tweak-row button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { padding: 6px 12px; font-size: 12px; }
}
