/* TickRate Games — landing page
   Palette taken from the logos (logo_simplified.svg). */

@font-face { font-family: "Orbitron"; src: url("assets/fonts/Orbitron-VariableFont_wght.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("assets/fonts/Rajdhani-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("assets/fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("assets/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("assets/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* logo colours */
  --bg:      #212022;  /* logo background */
  --ink-0:   #0c2440;  /* running wolf shadow */
  --navy:    #0a2146;  /* head outline */
  --navy-2:  #1a346e;
  --mid:     #124a82;
  --royal:   #2b4eb5;
  --blue:    #03a3fa;  /* "Rate" */
  --cyan:    #05a9fb;
  --steel:   #96a4b8;
  --light:   #ccd9e6;
  --white:   #fdfdfd;  /* "Tick" */

  --text: var(--light);
  --muted: var(--steel);
  --line: rgb(204 217 230 / .12);
  --radius: 14px;
  --wrap: 1180px;
  --head-font: "Orbitron", system-ui, sans-serif;
  --body-font: "Rajdhani", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.2rem/1.55 var(--body-font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head-font); color: var(--white); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: .03em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--blue); color: var(--navy); padding: .5rem 1rem; }

.eyebrow {
  font: 600 .95rem/1 var(--body-font);
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.lead { font-size: 1.35rem; color: var(--light); max-width: 46rem; }
.accent { color: var(--blue); }
.note { color: var(--muted); font-size: 1rem; text-align: center; margin-top: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 10px;
  font: 700 1.1rem/1 var(--body-font); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 1.3em; height: 1.3em; fill: currentColor; }
.btn-primary { background: var(--blue); color: var(--navy); box-shadow: 0 8px 30px -10px rgb(3 163 250 / .7); }
.btn-primary:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-ghost { color: var(--white); border: 1.5px solid rgb(3 163 250 / .55); }
.btn-ghost:hover { border-color: var(--blue); background: rgb(3 163 250 / .1); color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(33 32 34 / .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 44px; height: auto; }
.wordmark { font: 600 1.35rem/1 var(--head-font); display: flex; align-items: baseline; }
.wordmark .tick { color: var(--white); }
.wordmark .rate { color: var(--blue); }
.wordmark .tick,
.wordmark .rate { letter-spacing: 3px; }
.wordmark small {
  font: 600 .7rem/1 var(--body-font); letter-spacing: .45em; text-transform: uppercase;
  color: var(--light); margin-left: .7rem; border-left: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--light); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 1rem; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta { color: var(--white); border: 1.5px solid var(--blue); padding: .45rem 1rem; border-radius: 8px; }
.nav .nav-cta:hover { background: var(--blue); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 75% 40%, rgb(43 78 181 / .35), transparent 70%),
    radial-gradient(40rem 25rem at 10% 90%, rgb(3 163 250 / .12), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--navy) 140%);
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(3 163 250 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(3 163 250 / .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: center; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 60px rgb(3 163 250 / .18)); animation: run-in 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes run-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgb(5 169 251 / .6); animation: pulse 1s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(5 169 251 / .6); } 100% { box-shadow: 0 0 0 10px rgb(5 169 251 / 0); } }
.ticker {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem;
  font: 500 .8rem/1 var(--head-font); letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
}
.ticker b { color: var(--light); font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker .ok { color: var(--cyan); }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 3rem; }
.game { background: linear-gradient(180deg, var(--navy) 0%, #0b1c37 100%); }

.game-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.features li {
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: rgb(18 74 130 / .25); border: 1px solid rgb(3 163 250 / .18);
  border-left: 3px solid var(--blue);
}
.features h3 { margin-bottom: .3rem; }
.features p { margin: 0; color: var(--light); font-size: 1.1rem; }

.shot {
  display: block; padding: 0; border: 1px solid rgb(3 163 250 / .25); border-radius: var(--radius);
  overflow: hidden; background: var(--ink-0); cursor: zoom-in; width: 100%;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 40px -18px rgb(3 163 250 / .55); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }

.loop {
  margin: 3rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .6rem 1rem;
  font: 600 1rem/1 var(--head-font); text-transform: uppercase; letter-spacing: .06em; color: var(--white);
}
.loop span { padding: .7rem 1rem; border-radius: 8px; background: rgb(43 78 181 / .35); border: 1px solid rgb(3 163 250 / .3); }
.loop i { width: 1.6rem; height: 2px; background: linear-gradient(90deg, var(--blue), transparent); position: relative; }
.loop i::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--blue); }

.planned { margin: 3rem auto 0; max-width: 52rem; padding: 1.75rem 2rem; border-radius: var(--radius); background: rgb(12 36 64 / .7); border: 1px dashed rgb(150 164 184 / .35); }
.planned ul { margin: 0; padding-left: 1.2rem; }
.planned li { margin: .35rem 0; }
.planned li::marker { color: var(--blue); }
.planned b { color: var(--white); }

/* ---------- roadmap ---------- */
.roadmap { background: var(--bg); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--royal) 60%, rgb(43 78 181 / .2)); }
.timeline li { position: relative; padding: 2.6rem 1rem 0 0; }
.timeline li::before { content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.timeline li:last-child::before { border-color: var(--royal); border-style: dashed; }
.when { display: block; font: 600 .85rem/1.3 var(--head-font); color: var(--blue); letter-spacing: .06em; }
.what { display: block; font-size: 1.35rem; font-weight: 700; color: var(--white); margin-top: .35rem; }

/* ---------- studio ---------- */
.studio { background: radial-gradient(50rem 30rem at 15% 50%, rgb(18 74 130 / .45), transparent 70%), var(--bg); }
.studio-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.studio-mark { width: 100%; max-width: 380px; margin-inline: auto; filter: drop-shadow(0 25px 50px rgb(0 0 0 / .45)); }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillars li { padding: 1rem; border-top: 2px solid var(--blue); background: rgb(10 33 70 / .5); border-radius: 0 0 10px 10px; }
.pillars b { display: block; font: 600 .95rem/1.2 var(--head-font); color: var(--white); margin-bottom: .35rem; }
.pillars span { font-size: 1.05rem; color: var(--light); }

/* ---------- community ---------- */
.community { background: linear-gradient(180deg, var(--bg), var(--navy)); text-align: center; }
.community .lead { margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 2rem 1rem; border-radius: var(--radius); color: var(--light);
  background: rgb(18 74 130 / .25); border: 1px solid rgb(3 163 250 / .2);
  transition: transform .2s, border-color .2s, background-color .2s;
}
.card svg { width: 40px; height: 40px; fill: var(--blue); margin-bottom: .5rem; transition: fill .2s; }
.card b { font: 600 1.15rem/1 var(--head-font); color: var(--white); }
.card:hover { transform: translateY(-4px); border-color: var(--blue); background: rgb(18 74 130 / .45); color: var(--white); }
.card:hover svg { fill: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 3rem 0; text-align: center; color: var(--muted); }
.brand-lg { justify-content: center; margin-bottom: 1.25rem; gap: 1rem; }
.brand-lg img { width: 84px; }
.brand-lg .wordmark { font-size: 2rem; }
.brand-lg .wordmark small { font-size: .8rem; }
.footer-inner p { margin: .2rem 0; }
.small { font-size: .9rem; }

/* ---------- lightbox ---------- */
.lightbox { padding: 0; border: 1px solid var(--blue); border-radius: var(--radius); background: var(--ink-0); max-width: min(94vw, 1600px); }
.lightbox::backdrop { background: rgb(8 14 28 / .88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; }
.lb-close {
  position: absolute; top: .5rem; right: .5rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 0; background: rgb(10 33 70 / .85); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--blue); color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .game-feature, .studio-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 640px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .timeline::before { display: none; }
  .studio-mark { max-width: 260px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav a { padding: 1rem; width: 100%; text-align: center; }
  .nav .nav-cta { border: 0; border-radius: 0; }
  .nav.open { max-height: 320px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .wordmark small { display: none; }
  .cards, .pillars { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .loop i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
