/* Djärv 100% — Verka marketing site
   Spec: marketing/DESIGN_SPEC.md */

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

:root {
  --bg: #EDEAE3;
  --text: #000000;
  --text-muted: #4B4741;
  --accent: #D64B1A;
  --invert-bg: #0A0A0A;
  --invert-text: #F4F1E7;
  --border: #1F1E1B;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --duration: 150ms;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Brand ── */

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-block;
  line-height: 1;
}

.brand-period {
  font-style: italic;
  font-weight: 800;
  color: var(--accent);
}

.brand-small {
  font-size: 22px;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease, backdrop-filter 200ms ease;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  letter-spacing: -0.01em;
  transition: background var(--duration) ease, color var(--duration) ease;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--invert-text);
}

/* ── Section base ── */

.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 200px 48px;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.section-title {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
}

.section-body {
  font-size: 22px;
  line-height: 1.5;
  max-width: 720px;
  font-weight: 400;
  color: var(--text);
}

/* ── Hero ── */

.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 160px 48px 80px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 144px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 1300px;
  margin-bottom: 32px;
}

.hero-period {
  font-style: italic;
  font-weight: 900;
  color: var(--accent);
}

.hero-sub {
  font-size: 24px;
  color: var(--text-muted);
  max-width: 720px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── Cursor glow — smooth orange aura ── */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 680px;
  height: 680px;
  margin: -340px 0 0 -340px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 38%, transparent) 0%,
    color-mix(in srgb, var(--accent) 14%, transparent) 38%,
    color-mix(in srgb, var(--accent) 3%, transparent) 65%,
    transparent 82%);
  opacity: 0;
  transition: opacity 600ms ease-out;
  transform: translate3d(-1000px, -1000px, 0);
  will-change: transform;
}

.cursor-glow.active { opacity: 1; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none !important; }
}

/* ── Three modes ── */

.section-modes .modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 80px;
}

.mode-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.mode-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1;
}

.mode-body {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Invert section ── */

.section-invert {
  background: var(--invert-bg);
  color: var(--invert-text);
  max-width: none;
  width: 100vw;
  margin-left: 0;
  padding: 200px 48px;
  isolation: isolate;
  overflow: hidden;
}

.section-invert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(680px circle at var(--invert-glow-x, 50%) var(--invert-glow-y, 50%),
    color-mix(in srgb, var(--accent) 32%, transparent) 0%,
    color-mix(in srgb, var(--accent) 12%, transparent) 38%,
    color-mix(in srgb, var(--accent) 3%, transparent) 65%,
    transparent 82%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease-out;
  z-index: 0;
}

.section-invert:hover::before {
  opacity: 1;
}

.section-invert-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-invert .section-label {
  color: var(--invert-text);
  opacity: 0.5;
}

.section-invert .section-title {
  color: var(--invert-text);
  margin-bottom: 24px;
}

.section-invert .section-title-second {
  margin-bottom: 0;
  color: var(--accent);
}

/* ── Waitlist section ── */

.section-waitlist {
  padding-bottom: 200px;
  background: var(--bg);
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: 800px;
  margin-top: 48px;
}

.waitlist-input {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  padding: 20px 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  appearance: none;
  border-radius: 0;
  letter-spacing: -0.01em;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.waitlist-input:focus {
  border-color: var(--accent);
}

select.waitlist-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1E1B' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

.waitlist-submit {
  grid-column: 1 / -1;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  padding: 24px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background var(--duration) ease, color var(--duration) ease;
  border-radius: 0;
}

.waitlist-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--invert-text);
}

.waitlist-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.waitlist-success {
  margin-top: 48px;
  padding: 64px 48px;
  border: 1px solid var(--text);
  max-width: 800px;
  animation: fadeIn 300ms ease-out;
}

.success-rank {
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.success-body {
  font-size: 22px;
  color: var(--text-muted);
  font-weight: 500;
}

.waitlist-error {
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--accent);
  color: var(--invert-text);
  font-size: 14px;
  font-weight: 500;
  max-width: 800px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
  align-items: center;
}

.footer-links a {
  transition: color var(--duration) ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Legal pages (privacy / terms) ── */

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 200px 48px 120px;
}

.legal-page h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1;
}

.legal-page .legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 64px;
  letter-spacing: 0.04em;
}

.legal-page h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 64px;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--text);
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.6;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity var(--duration) ease;
}

.legal-page a:hover {
  opacity: 0.7;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-inner { padding: 20px 24px; }
  .nav-cta { font-size: 13px; padding: 10px 16px; }
  .brand { font-size: 22px; }

  .section { padding: 100px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: 56px; letter-spacing: -0.03em; margin-bottom: 24px; }
  .hero-sub { font-size: 18px; }

  .section-title { font-size: 40px; }
  .section-body { font-size: 18px; }

  .section-modes .modes { grid-template-columns: 1fr; gap: 48px; }
  .mode-title { font-size: 28px; }

  .section-invert { padding: 100px 24px; }

  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-success { padding: 32px 24px; }
  .success-rank { font-size: 64px; }

  .legal-page { padding: 120px 24px 80px; }
  .legal-page h1 { font-size: 40px; }
  .legal-page h2 { font-size: 22px; }

  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
