/* ==========================================================================
   RUBICON — "startup marathon" identity.
   Space Grotesk display + Inter body. Warm canvas #F6F4F0, race red #E03131,
   charcoal hero/prize/final. Kinetic: scroll-drawn red line, reveals,
   count-up, marquee, accordion. No em dashes anywhere in copy.
   ========================================================================== */

:root {
  --bg: #F6F4F0;
  --ink: #16161A;
  --ink-soft: rgba(22, 22, 26, 0.72);
  --red: #E03131;
  --red-deep: #B82323;
  --green: #2E7D4F;
  --surface: #FFFFFF;
  --line: rgba(22, 22, 26, 0.12);
  --line-strong: rgba(22, 22, 26, 0.3);
  --muted: #6E6A63;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[tabindex='-1']:focus { outline: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------------------------------------------------------ announcement bar */
.announce {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px auto 0;
  width: fit-content;
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 9999px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.announce .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
.announce strong { color: #FF6B6B; font-weight: 700; }
.announce .countdown { font-variant-numeric: tabular-nums; color: rgba(246,244,240,0.85); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ------------------------------------------------------------ pill nav */
.nav {
  position: sticky;
  top: 64px;
  z-index: 39;
  margin: 14px auto 0;
  width: fit-content;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 10px 8px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav .brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 15px; }
.nav .brand span { color: var(--red); }
.nav a { color: var(--ink); text-decoration: none; opacity: 0.75; transition: opacity 200ms; }
.nav a:hover { opacity: 1; }
@media (max-width: 760px) { .nav a.navlink { display: none; } }

/* --------------------------------------------------------------- buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 16px 32px;
  border-radius: 9999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 240ms var(--ease-out), background 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 24px rgba(224, 49, 49, 0.35); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 10px 32px rgba(224, 49, 49, 0.45); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn .arr { transition: transform 240ms var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  margin-top: -110px;
  padding: 190px var(--pad) 90px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 49, 49, 0.4), transparent 65%);
  filter: blur(20px);
  animation: orb 9s ease-in-out infinite alternate;
}
@keyframes orb { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 40px) scale(1.12); } }
.hero-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; }
.hero .label { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: #FF8787; margin-bottom: 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 .reveal-word { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); animation: word-in 700ms var(--ease-out) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero h1 .box-red {
  background: var(--red);
  color: #fff;
  padding: 0 0.18em;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero .sub { margin-top: 26px; font-size: clamp(16px, 2vw, 19px); color: rgba(246,244,240,0.78); max-width: 56ch; }
.hero .cta-row { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero .under { margin-top: 16px; font-size: 13px; color: rgba(246,244,240,0.6); letter-spacing: 0.02em; }
.hero .prize-line { margin-top: 34px; font-size: clamp(20px, 3vw, 30px); font-weight: 700; font-family: var(--font-display); color: #FF6B6B; }
.hero .prize-line .amount { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }

/* ------------------------------------------------------------- marquee */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 14px 0; transform: rotate(-1deg) scale(1.02); margin: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 22s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(56px, 9vh, 110px) var(--pad); max-width: 1160px; margin: 0 auto; }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 30px; max-width: 20ch; }
.section h2 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 60ch; margin-bottom: 34px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.check-list li { position: relative; padding-left: 34px; font-size: 16.5px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px; background: var(--red); opacity: 0.16; }
.check-list li::after { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 5px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Rubicon story */
.story { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.65; max-width: 68ch; }
.story p + p { margin-top: 20px; }
.story .quote { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 500; color: var(--red); margin: 30px 0; }

/* The Rubicon line (scroll-drawn) */
.rubicon-line { height: 3px; background: var(--red); transform-origin: left; transform: scaleX(0); margin: 0 var(--pad); border-radius: 2px; }
.rubicon-line.flip { transform-origin: right; }

/* Timeline */
.timeline { position: relative; margin-top: 20px; padding-left: 34px; border-left: 2px solid var(--line-strong); display: flex; flex-direction: column; gap: 34px; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -43px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--red); }
.tl-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.tl-item h4 span { color: var(--red); }
.tl-item ul { list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.tl-item li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--ink-soft); }
.tl-item li::before { content: ''; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--red); }

/* Prize */
.prize { background: var(--ink); color: var(--bg); border-radius: 24px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.prize::before { content: ''; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224,49,49,0.35), transparent 65%); }
.prize h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.prize .grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin: 30px 0; }
@media (min-width: 720px) { .prize .grid { grid-template-columns: repeat(3, 1fr); } }
.prize .tier { border: 1px solid rgba(246,244,240,0.16); border-radius: 16px; padding: 26px; }
.prize .tier.first { border-color: var(--red); background: rgba(224,49,49,0.12); }
.prize .tier .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; }
.prize .tier.first .n { color: #FF6B6B; }
.prize .tier .l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(246,244,240,0.6); margin-top: 6px; }
.prize p { color: rgba(246,244,240,0.78); max-width: 72ch; font-size: 15.5px; }

/* Apply / don't apply */
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.col-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.col-title.yes { color: var(--green); }
.col-title.no { color: var(--red); }
.rules-list { list-style: none; border-top: 2px solid var(--line-strong); }
.rules-list li { padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line); font-size: 15.5px; position: relative; }
.rules-list.yes li::before { content: '\2713'; position: absolute; left: 2px; color: var(--green); font-weight: 600; }
.rules-list.no li::before { content: '\00D7'; position: absolute; left: 4px; color: var(--red); font-weight: 600; }

/* Investment */
.invest { text-align: left; }
.invest .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.03em; }
.invest .price span { color: var(--red); }
.invest .note { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 46ch; margin-top: 14px; }

/* How to enter steps */
.enter-steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: enter; }
@media (min-width: 760px) { .enter-steps { grid-template-columns: repeat(3, 1fr); } }
.enter-steps .step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.enter-steps .step .n { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: 0.1em; margin-bottom: 10px; }
.enter-steps .step p { font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------- the form */
.apply-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 48px); max-width: 720px; }
.form-progress { display: flex; gap: 8px; margin-bottom: 22px; }
.form-progress i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.form-progress i.on { background: var(--red); }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.f-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.f-input, .f-select, .f-textarea {
  appearance: none; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 14px 16px; transition: border-color 200ms;
}
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: none; border-color: var(--red); }
.f-textarea { min-height: 110px; resize: vertical; }
.f-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.f-opt {
  appearance: none; border: 1px solid var(--line-strong); background: transparent; border-radius: 9999px;
  padding: 12px 20px; font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.f-opt:hover { border-color: var(--ink); }
.f-opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.f-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-soft); margin: 8px 0 20px; }
.f-check input { position: absolute; opacity: 0; width: 0; }
.f-check .box { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 7px; margin-top: 1px; position: relative; transition: all 200ms; }
.f-check input:checked + .box { background: var(--red); border-color: var(--red); }
.f-check input:checked + .box::after { content: ''; position: absolute; left: 6px; top: 3px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(40deg); }
.f-check input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 2px; }
.f-error { color: var(--red); font-size: 12.5px; }
.f-error:empty { display: none; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.apply-success h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; }
.apply-success p { color: var(--ink-soft); max-width: 52ch; }
.hidden { display: none !important; }

/* ------------------------------------------------------------------ FAQ */
.faq { border-top: 2px solid var(--line-strong); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { appearance: none; width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 44px 20px 4px; font-family: var(--font-display); font-weight: 500; font-size: 17.5px; position: relative; }
.faq-q::after { content: '+'; position: absolute; right: 12px; top: 16px; font-size: 24px; color: var(--red); transition: transform 300ms var(--ease-out); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 450ms var(--ease-out); }
.faq-a p { padding: 0 4px 22px; color: var(--ink-soft); font-size: 15px; max-width: 70ch; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); color: var(--bg); padding: 60px var(--pad) 40px; margin-top: 40px; }
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.1em; }
.footer .brand span { color: var(--red); }
.footer p, .footer a { color: rgba(246,244,240,0.7); font-size: 13.5px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }

/* --------------------------------------------------------- cookie banner */
.cookies {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(640px, calc(100vw - 28px)); z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(22,22,26,0.25); padding: 22px;
  animation: cookie-in 500ms var(--ease-out) both;
}
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookies h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.cookies p { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.cookies .row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookies .btn { padding: 11px 20px; font-size: 13px; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* Press wall */
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); }
@media (min-width: 700px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .logo-wall { grid-template-columns: repeat(5, 1fr); } }
.logo-wall a { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 20px; border-bottom: 1px solid var(--line); }
.logo-wall img { width: 128px; height: 40px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 1200ms var(--ease-out), opacity 300ms; }
.logo-wall a:hover img { filter: grayscale(0); opacity: 1; }

.guide-card { display: grid; gap: 26px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .guide-card { grid-template-columns: 5fr 7fr; } }
.guide-card img { width: 100%; max-width: 380px; border-radius: 18px; }
.guide-card .stat-line { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 12px; }
.guide-card .stat-line span { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .rubicon-line { transform: scaleX(1); }
}
