/* Leo Universe proposal V2
   Near-black graphite, white text, one signal-red accent. */

:root {
  --bg: #101113;
  --bg-raised: #17181b;
  --line: #2a2c30;
  --text: #ffffff;
  --text-dim: #b9bcc2;
  --accent: #ff3b30;
  --accent-ink: #ffffff;
  --nav-h: 72px;
  --radius: 4px;
  --font: "Helvetica Neue", "Arial Narrow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dur: 220ms;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f4f2;
  --bg-raised: #ffffff;
  --line: #d8d8d4;
  --text: #101113;
  --text-dim: #4a4c52;
  --accent: #e0261c;
  --accent-ink: #ffffff;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: top var(--dur);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accent { color: var(--accent); }

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; line-height: 1.25; }

.section-sub {
  color: var(--text-dim);
  max-width: 56ch;
  margin-top: 16px;
  font-size: 1.05rem;
}

section { padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 72px); }

.section-head { max-width: 1200px; margin: 0 auto 40px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--text); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { border-radius: 50%; }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.02rem;
}

.nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur), border-color var(--dur);
}
.nav-links a:hover { color: var(--text); border-color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 11px 20px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur), border-color var(--dur);
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger-line {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform var(--dur), opacity var(--dur);
}
.nav-burger[aria-expanded="true"] .burger-line:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px clamp(16px, 4vw, 40px) 22px;
}
.mobile-menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.btn { border-bottom: none; margin-top: 14px; }

/* Hero */
.hero {
  min-height: min(760px, calc(100dvh - var(--nav-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.8rem);
  text-transform: uppercase;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 42ch;
}

.hero-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.hero-card img,.hero-card iframe { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; }
.hero-card iframe { border: 0; display: block; }
.hero-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
}
.tilt-a { transform: rotate(-2.2deg) translateY(18px); }
.tilt-b { transform: rotate(1.4deg); }
.tilt-c { transform: rotate(3deg) translateY(34px); }

/* TikTok One */
.tiktok-one { border-top: 1px solid var(--line); }

.format-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.format-list li {
  padding: 28px 22px 34px 0;
  border-right: 1px solid var(--line);
  padding-left: 22px;
}
.format-list li:first-child { padding-left: 0; }
.format-list li:last-child { border-right: none; }
.format-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}
.format-list h3 { margin-bottom: 10px; }
.format-list p { color: var(--text-dim); font-size: 0.96rem; }

/* Reel */
.reel {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  padding-left: 0;
  padding-right: 0;
}
.reel .section-head { padding: 0 clamp(20px, 6vw, 72px); }

.reel-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.reel-controls { display: flex; gap: 10px; }
.reel-btn {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), opacity var(--dur);
}
.reel-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.reel-btn:disabled { opacity: 0.35; cursor: default; }

.reel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px clamp(20px, 6vw, 72px) 20px;
  scrollbar-width: thin;
}
.reel-item {
  flex: 0 0 clamp(220px, 26vw, 320px);
  scroll-snap-align: start;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.reel-item img,.reel-item iframe { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.reel-item iframe { border: 0; display: block; background: #050505; }
.reel-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 12, 0.72);
}
.reel-item figcaption strong,.reel-item figcaption span { display: block; }
.reel-item figcaption span { color: rgba(255,255,255,.68); font-size: .58rem; margin-top: 2px; }

.reel-status {
  padding: 0 clamp(20px, 6vw, 72px);
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 1.2em;
}

/* Agency */
.agency { border-top: 1px solid var(--line); }
.agency-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.agency-item {
  padding: 30px 24px 38px;
  border-right: 1px solid var(--line);
}
.agency-item:first-child { padding-left: 0; }
.agency-item:last-child { border-right: none; }
.agency-item h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.agency-item h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
}
.agency-item p { color: var(--text-dim); }

/* Flow */
.flow { border-top: 1px solid var(--line); background: var(--bg-raised); }
.flow-steps {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  counter-reset: step;
}
.flow-steps li { position: relative; padding-top: 18px; }
.flow-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line);
}
.flow-steps li::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.flow-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.flow-steps h3 { text-transform: uppercase; margin-bottom: 8px; }
.flow-steps p { color: var(--text-dim); font-size: 0.96rem; }

/* Apply */
.apply { border-top: 1px solid var(--line); text-align: center; }
.apply-inner { max-width: 820px; margin: 0 auto; }
.apply-mark { margin: 0 auto 22px; border-radius: 50%; }
.apply .section-sub { margin-left: auto; margin-right: auto; }

.identity-panel {
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}
.identity-copy { max-width: 470px; }
.identity-copy strong { display: block; font-size: 1.18rem; margin: 4px 0; }
.identity-copy p { color: var(--text-dim); font-size: 0.92rem; }
.identity-step {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }

.apply-form { margin-top: 28px; text-align: left; }
.connected-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.connected-user img { border-radius: 50%; background: var(--bg-raised); }
.connected-user div { display: grid; }
.connected-user span { color: var(--text-dim); font-size: 0.76rem; }
.connected-user strong { font-size: 0.98rem; }
.text-button {
  margin-left: auto;
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.field-wide { grid-column: 1 / -1; }
.field label, .field legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.field label span { opacity: 0.62; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field input::placeholder { color: var(--text-dim); opacity: 0.7; }
.field-help { margin-top: 7px; color: var(--text-dim); font-size: 0.78rem; }
.handle-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.handle-entry > span { padding-left: 14px; color: var(--text-dim); }
.handle-entry input { border: 0; background: transparent; padding-left: 3px; }
.add-handle {
  align-self: stretch;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.handle-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.handle-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
}
.handle-chip button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.niche-field { border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { margin: 0; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row span {
  display: block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.choice-row input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.choice-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.apply-submit-row { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.apply-submit-row p { color: var(--text-dim); font-size: 0.74rem; max-width: 36ch; }
.apply-submit-row .btn[disabled] { opacity: 0.55; cursor: wait; }

.apply-feedback {
  margin-top: 18px;
  font-size: 0.94rem;
  color: var(--text-dim);
  min-height: 1.4em;
}
.apply-feedback[data-state="error"] { color: var(--accent); }
.apply-feedback[data-state="success"] { color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px clamp(20px, 6vw, 72px) 44px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--text); }
.footer-note {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: section-in 500ms ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }

  @keyframes section-in {
    from { opacity: 0.72; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .hero { min-height: 0; padding-top: 48px; padding-bottom: 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .tilt-a, .tilt-b, .tilt-c { transform: none; }

  .format-list { grid-template-columns: 1fr 1fr; border-top: none; }
  .format-list li {
    border-right: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-bottom: 26px;
  }

  .agency-grid { grid-template-columns: 1fr; border-top: none; }
  .agency-item {
    border-right: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-bottom: 26px;
  }

  .flow-steps { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  section { padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .hero-card-wide { grid-column: 1 / -1; }
  .hero-card-wide img,.hero-card-wide iframe { aspect-ratio: 16 / 10; }
  .format-list { grid-template-columns: 1fr; }
  .application-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .identity-panel, .apply-submit-row { align-items: stretch; flex-direction: column; }
  .identity-panel .btn { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }
  .reel-item { flex-basis: 72vw; }
}
