/*
Theme Name: Killrate
Theme URI: https://killrate.online
Author: Killrate
Description: Custom launch and development journal theme for Killrate.
Version: 1.0.0
*/

:root {
  --ink: #070707;
  --ink-soft: #11100f;
  --panel: #171512;
  --bone: #e7dfcf;
  --muted: #9f9789;
  --blood: #a51616;
  --blood-bright: #db2d20;
  --gold: #c3974f;
  --line: rgba(231, 223, 207, .16);
  --max: 1240px;
  --condensed: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--bone); background: var(--ink); font-family: var(--body); line-height: 1.55; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .17; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--gold); font: 700 .75rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--blood-bright); }
.display { margin: 0; font-family: var(--condensed); font-weight: 900; letter-spacing: .015em; line-height: .86; text-transform: uppercase; }
.red { color: var(--blood-bright); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.section { position: relative; padding: clamp(88px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(65px, 7vw, 100px); }
.section-heading { max-width: 870px; margin-bottom: 54px; }
.section-heading h2 { font-size: clamp(3.2rem, 8vw, 7.4rem); }
.section-heading p { max-width: 680px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.btn { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 10px; padding: 0 25px; border: 1px solid var(--bone); background: transparent; color: var(--bone); font-weight: 900; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: .2s ease; }
.btn:hover { background: var(--bone); color: var(--ink); transform: translateY(-2px); }
.btn--blood { border-color: var(--blood-bright); background: var(--blood-bright); color: #fff; box-shadow: 0 15px 45px rgba(165, 22, 22, .28); }
.btn--blood:hover { border-color: #fff; background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(231, 223, 207, .38); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Age gate */
.age-gate { min-height: 100svh; position: relative; display: grid; place-items: center; padding: 30px 20px; isolation: isolate; background: #050505 url("assets/age-gate.webp") center/cover no-repeat; }
.age-gate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 60% 45%, transparent 0, rgba(0,0,0,.45) 40%, #050505 83%), linear-gradient(100deg, rgba(0,0,0,.9), rgba(36,0,0,.3)); }
.age-gate::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .42; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px); }
.age-card { width: min(660px, 100%); padding: clamp(30px, 6vw, 64px); border: 1px solid rgba(219,45,32,.75); background: rgba(5,5,5,.88); box-shadow: 0 30px 100px rgba(0,0,0,.82), inset 0 0 80px rgba(120,0,0,.13); backdrop-filter: blur(9px); text-align: center; }
.age-mark { display: inline-grid; width: 84px; height: 84px; place-items: center; margin-bottom: 25px; border: 3px solid var(--blood-bright); border-radius: 50%; color: #fff; font: 900 2.1rem/1 var(--condensed); transform: rotate(-4deg); }
.age-card h1 { font-size: clamp(4.6rem, 14vw, 9rem); }
.age-card h2 { margin: 8px 0 22px; color: var(--blood-bright); font: 900 clamp(1.5rem, 5vw, 2.6rem)/1 var(--condensed); letter-spacing: .08em; text-transform: uppercase; }
.age-copy { max-width: 520px; margin: 0 auto 28px; color: #bdb5a6; }
.age-form { max-width: 430px; margin: auto; }
.age-form label { display: block; margin-bottom: 10px; color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .18em; text-align: left; text-transform: uppercase; }
.age-form input { width: 100%; min-height: 58px; padding: 0 18px; border: 1px solid rgba(231,223,207,.35); border-radius: 0; background: #0c0b0a; color: #fff; color-scheme: dark; }
.age-form .btn { width: 100%; margin-top: 12px; }
.age-error { margin: 0 0 18px; padding: 12px; border-left: 3px solid var(--blood-bright); background: rgba(165,22,22,.18); color: #fff; font-weight: 700; text-align: left; }
.age-legal { margin: 18px 0 0; color: #6f6960; font-size: .72rem; }

/* Navigation and hero */
.site-nav { position: absolute; inset: 0 0 auto; z-index: 50; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { color: #fff; font: 900 clamp(1.9rem, 3vw, 2.8rem)/1 var(--condensed); letter-spacing: .035em; text-decoration: none; }
.brand span { color: var(--blood-bright); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: #d7d0c4; font-size: .73rem; font-weight: 900; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.4); color: #fff; font-size: 1.25rem; }
.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: 150px 0 70px; isolation: isolate; background: #080706 url("assets/hero.webp") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 46%, rgba(0,0,0,.12) 75%), linear-gradient(0deg, #070707 0%, transparent 45%, rgba(0,0,0,.3) 100%); }
.hero-copy { max-width: 890px; }
.hero h1 { max-width: 870px; font-size: clamp(5rem, 15vw, 13rem); text-shadow: 0 5px 30px rgba(0,0,0,.45); }
.hero-kicker { margin: 18px 0 0; color: var(--gold); font: 900 clamp(1.3rem, 3vw, 2.5rem)/1 var(--condensed); letter-spacing: .12em; text-transform: uppercase; }
.hero-summary { max-width: 650px; margin: 24px 0 32px; color: #d0c9bd; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: #a59d91; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-meta span::before { content: "//"; margin-right: 9px; color: var(--blood-bright); }

/* Trailer */
.trailer-section { padding-top: 0; border-top: 0; }
.trailer-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(231,223,207,.23); background: #111; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.trailer-frame img { height: 100%; object-fit: cover; }
.trailer-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 60%); }
.trailer-play { position: absolute; inset: 50% auto auto 50%; z-index: 2; width: clamp(76px, 10vw, 118px); aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: clamp(1.5rem, 3vw, 2.5rem); transform: translate(-50%, -50%); cursor: pointer; backdrop-filter: blur(7px); }
.trailer-play:hover { background: var(--blood-bright); transform: translate(-50%, -50%) scale(1.06); }
.trailer-caption { position: absolute; z-index: 2; right: 28px; bottom: 24px; left: 28px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.trailer-caption strong { font: 900 clamp(1.6rem, 4vw, 4rem)/.95 var(--condensed); letter-spacing: .03em; text-transform: uppercase; }
.trailer-caption span { color: var(--gold); font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }

/* Mechanics */
.mechanics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mechanic { min-height: 300px; padding: 36px; background: var(--ink-soft); }
.mechanic-num { color: var(--blood-bright); font: 900 4.3rem/1 var(--condensed); }
.mechanic h3 { margin: 50px 0 12px; font: 900 2.1rem/1 var(--condensed); letter-spacing: .04em; text-transform: uppercase; }
.mechanic p { margin: 0; color: var(--muted); }
.wide-image { position: relative; margin-top: 34px; aspect-ratio: 16/8; overflow: hidden; border: 1px solid var(--line); }
.wide-image img { height: 100%; object-fit: cover; }
.wide-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -90px 100px rgba(0,0,0,.45); pointer-events: none; }

/* Kill rate */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); align-items: stretch; gap: 0; border: 1px solid var(--line); }
.split-media { min-height: 620px; overflow: hidden; }
.split-media img { height: 100%; object-fit: cover; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 78px); background: var(--panel); }
.split-copy h2 { font-size: clamp(3.7rem, 8vw, 7rem); }
.formula { margin: 35px 0; padding: 22px 0; border-block: 1px solid var(--line); color: var(--gold); font: 900 clamp(1.3rem, 3vw, 2.25rem)/1.1 var(--condensed); letter-spacing: .04em; text-transform: uppercase; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border: 1px solid var(--line); }
.stat { padding: 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat small { display: block; color: var(--muted); font-size: .66rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.stat strong { display: block; margin-top: 8px; font: 900 2.4rem/1 var(--condensed); }

/* Arena */
.arena-wrap { position: relative; }
.arena-image { aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); }
.arena-image img { height: 100%; object-fit: cover; }
.route-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); margin: -42px 26px 0; border: 1px solid var(--line); background: #0d0c0b; }
.route { min-height: 180px; padding: 24px; border-right: 1px solid var(--line); }
.route:last-child { border-right: 0; }
.route strong { display: block; margin-bottom: 10px; color: var(--gold); font: 900 1.25rem/1 var(--condensed); text-transform: uppercase; }
.route span { color: var(--muted); font-size: .86rem; }

/* Roster */
.roster-image { aspect-ratio: 16/7; overflow: hidden; border: 1px solid var(--line); }
.roster-image img { height: 100%; object-fit: cover; }
.rule-banner { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1px; gap: 1px; background: var(--line); }
.rule-banner div { padding: 24px; background: #11100e; text-align: center; }
.rule-banner strong { display: block; color: #fff; font: 900 1.3rem/1 var(--condensed); letter-spacing: .05em; text-transform: uppercase; }
.rule-banner span { display: block; margin-top: 8px; color: var(--muted); font-size: .78rem; }

/* Founders */
.founders-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .8fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.founders-media { position: relative; }
.founders-media img { border: 1px solid var(--line); }
.founders-media::before { content: "BUILD 001"; position: absolute; z-index: 2; top: 18px; left: -12px; padding: 9px 14px; background: var(--blood-bright); color: #fff; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.founders-copy h2 { font-size: clamp(4rem, 9vw, 8rem); }
.founders-copy p { color: var(--muted); font-size: 1.06rem; }
.founders-copy .lead { color: var(--bone); font-size: clamp(1.15rem, 2vw, 1.45rem); }

/* Anti-cheat */
.integrity { position: relative; min-height: 680px; display: flex; align-items: end; overflow: hidden; border: 1px solid var(--line); }
.integrity > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.integrity::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.35)), linear-gradient(0deg, #080808, transparent 65%); }
.integrity-copy { position: relative; z-index: 2; max-width: 690px; padding: clamp(36px, 7vw, 88px); }
.integrity-copy h2 { font-size: clamp(3.8rem, 8vw, 7.5rem); }
.integrity-copy p { color: #c1baae; }

/* Waitlist and funding */
.waitlist { overflow: hidden; background: #120b09; }
.waitlist::before { content: ""; position: absolute; inset: 0; opacity: .42; background: url("assets/community.webp") center/cover no-repeat; filter: grayscale(.35); }
.waitlist::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0908 15%, rgba(11,9,8,.74) 62%, rgba(11,9,8,.35)); }
.waitlist-inner { position: relative; z-index: 2; max-width: 820px; }
.waitlist h2 { font-size: clamp(4.2rem, 10vw, 9.2rem); }
.waitlist p { max-width: 650px; color: #cac2b6; }
.waitlist-form { display: flex; max-width: 720px; margin-top: 30px; }
.waitlist-form input[type="email"] { flex: 1; min-width: 0; min-height: 62px; padding: 0 20px; border: 1px solid rgba(231,223,207,.3); border-right: 0; border-radius: 0; background: rgba(0,0,0,.65); color: #fff; }
.waitlist-status { margin: 18px 0 0; padding: 13px 16px; border-left: 3px solid var(--gold); background: rgba(195,151,79,.12); color: #fff; }
.fund-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 7vw, 100px); align-items: center; }
.fund-copy h2 { font-size: clamp(4rem, 9vw, 8.4rem); }
.fund-copy p { color: var(--muted); }
.founder-cap { display: flex; align-items: center; gap: 18px; margin: 28px 0 14px; padding: 18px 0; border-block: 1px solid var(--line); }
.founder-cap strong { color: var(--blood-bright); font: 900 clamp(4rem, 8vw, 7rem)/.75 var(--condensed); }
.founder-cap span { color: #efe9df; font: 800 1rem/1.25 var(--condensed); letter-spacing: .08em; text-transform: uppercase; }
.fund-copy .fund-total { margin-bottom: 28px; color: #aaa298; }
.fund-total strong { color: var(--gold); }
.founder-tiers { display: grid; gap: 12px; }
.founder-tier { position: relative; overflow: hidden; padding: 24px 26px; border: 1px solid var(--line); background: linear-gradient(125deg, #171512, #0c0c0b); }
.founder-tier::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blood-bright); }
.founder-tier--top { border-color: rgba(195,151,79,.48); background: linear-gradient(125deg, rgba(195,151,79,.14), #0d0c0b 62%); }
.founder-tier--top::before { background: var(--gold); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.tier-head span { color: var(--blood-bright); font: 800 .78rem/1 var(--condensed); letter-spacing: .16em; text-transform: uppercase; }
.founder-tier--top .tier-head span { color: var(--gold); }
.tier-head strong { color: #fff; font: 900 3.2rem/.8 var(--condensed); }
.founder-tier h3 { margin: 13px 0 7px; color: #eee7dc; font: 900 1.55rem/1 var(--condensed); letter-spacing: .05em; text-transform: uppercase; }
.founder-tier p { margin: 0; color: #9f988e; font-size: .88rem; }
.tier-terms { margin: 4px 3px 0; color: #6f6961; font-size: .67rem; line-height: 1.45; }
.coming { opacity: .58; cursor: not-allowed; }

/* Footer */
.site-footer { padding: 50px 0; border-top: 1px solid var(--line); background: #050505; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-copy { color: #716b62; font-size: .72rem; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { position: absolute; top: 78px; right: 20px; left: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px; border: 1px solid var(--line); background: rgba(7,7,7,.97); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 16px; }
  .nav-toggle { display: block; }
  .mechanics-grid { grid-template-columns: 1fr; }
  .mechanic { min-height: auto; }
  .mechanic h3 { margin-top: 20px; }
  .split, .founders-grid, .fund-grid { grid-template-columns: 1fr; }
  .split-media { min-height: 520px; }
  .route-grid { grid-template-columns: repeat(2, 1fr); margin-inline: 14px; }
  .route { border-bottom: 1px solid var(--line); }
  .route:last-child { grid-column: span 2; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding-block: 78px; }
  .hero { min-height: 760px; padding-bottom: 48px; background-position: 58% center; }
  .hero::before { background: linear-gradient(0deg, #070707 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.45)); }
  .hero h1 { font-size: clamp(4.6rem, 24vw, 7rem); }
  .hero-summary { font-size: 1rem; }
  .button-row .btn { width: 100%; }
  .hero-meta { display: grid; gap: 8px; }
  .trailer-frame { aspect-ratio: 4/5; }
  .trailer-caption { align-items: start; flex-direction: column; }
  .wide-image, .arena-image, .roster-image { aspect-ratio: 4/5; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .split-media { min-height: 470px; }
  .route-grid { grid-template-columns: 1fr; margin: 1px 0 0; }
  .route:last-child { grid-column: auto; }
  .rule-banner { grid-template-columns: 1fr; }
  .integrity { min-height: 700px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"] { border-right: 1px solid rgba(231,223,207,.3); }
  .waitlist-form .btn { width: 100%; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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