/* ============================================
   JERA GAMES STUDIO — shared styles
   Plain CSS, no build step, no framework.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

:root {
  --bg: #0B1220;
  --bg-raised: #101A2E;
  --ink: #F4F2EC;
  --muted: #8B93A7;
  --line: rgba(244, 242, 236, 0.12);

  --bikepov-1: #FF7A45;
  --bikepov-2: #2C4A6E;
  --colorfuse-1: #3E8EF7;
  --colorfuse-2: #FF4D67;
  --accent: #FE4100;

  --display: 'Roboto', sans-serif;
  --body: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .shot-track { animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-logo:hover img {
  transform: rotate(-12deg) scale(1.08);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(254, 65, 0, 0.5);
  animation: dotPulse 2.4s ease-out infinite;
}

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(254, 65, 0, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(254, 65, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(254, 65, 0, 0); }
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--colorfuse-1);
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 65, 0, 0.25);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254, 65, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow-tag {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 780px;
}

.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateX(-24px);
  animation: slideIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero h1 span:nth-child(1) { animation-delay: 0.05s; }
.hero h1 span:nth-child(2) { animation-delay: 0.2s; }

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.4s;
}

.hero .hero-cta {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
}

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

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- who we are ---------- */

.about {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.about .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 800px) {
  .about .wrap { grid-template-columns: 1fr; gap: 40px; }
}

.about h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 20px;
  max-width: 420px;
}

.about p {
  color: var(--muted);
  font-size: 17px;
  max-width: 440px;
}

.about-fact {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  margin-bottom: 28px;
}

.about-fact strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 4px;
}

.about-fact span { color: var(--muted); font-size: 15px; }

/* ---------- game bands ---------- */

.game-band {
  position: relative;
  padding: 90px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.game-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 800px) {
  .game-band .wrap { grid-template-columns: 1fr; gap: 36px; }
}

.game-band.bikepov {
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.14), transparent 60%);
}

.game-band.colorfuse {
  background: linear-gradient(135deg, rgba(62, 142, 247, 0.14), transparent 60%);
}

.status-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.status-pill.live {
  background: rgba(255, 122, 69, 0.16);
  color: var(--bikepov-1);
}

.status-pill.soon {
  background: rgba(62, 142, 247, 0.16);
  color: var(--colorfuse-1);
}

.game-band h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 18px;
}

.game-band p {
  color: var(--muted);
  font-size: 17px;
  max-width: 420px;
  margin: 0 0 32px;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-badge svg { flex-shrink: 0; }

.store-badge:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.game-visual {
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}

.game-band:hover .game-visual { transform: rotate(-1deg); }

.device-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 18;
  border-radius: 32px;
  border: 6px solid var(--bg-raised);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}

.device-frame.bikepov-screen {
  aspect-ratio: 526 / 296;
  max-width: 380px;
  border-radius: 20px;
  background: linear-gradient(200deg, var(--bikepov-1), var(--bikepov-2) 70%);
  overflow: hidden;
}

.device-frame.colorfuse-screen {
  width: auto;
  height: 380px;
  max-width: none;
  aspect-ratio: 920 / 2035;
  border-radius: 20px;
  background: #0B1220;
  overflow: hidden;
}

.device-frame.colorfuse-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- community ---------- */

.community {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.community h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 16px;
  max-width: 480px;
}

.community p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 32px;
}

.social-row {
  display: flex;
  gap: 20px;
}

.social-row a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-row a:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .foot-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
}

.site-footer .foot-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .foot-links a { text-decoration: none; }
.site-footer .foot-links a:hover { color: var(--ink); }

/* ---------- inner page hero (bike pov / color fuse) ---------- */

.page-hero {
  padding: 100px 0 70px;
  border-bottom: 1px solid var(--line);
}

.page-hero .status-pill { margin-bottom: 20px; }

.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 720px;
}

.page-hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 36px;
}

.support-hero p.lede {
  max-width: none;
}

/* ---------- feature grid ---------- */

.feature-grid {
  padding: 90px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-item h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 10px;
}

.feature-item p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---------- screenshot strip ---------- */

.shot-strip {
  overflow: hidden;
  padding: 0 0 90px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.shot-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: shotMarquee 26s linear infinite;
}

.shot-strip:hover .shot-track {
  animation-play-state: paused;
}

@keyframes shotMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.shot-strip .shot {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 526 / 296;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-raised);
}

.shot-strip .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-frame.bikepov-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- contact form ---------- */

.contact {
  padding: 90px 0 110px;
  border-top: 1px solid var(--line);
}

.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

@media (max-width: 800px) {
  .contact .wrap { grid-template-columns: 1fr; }
}

.contact h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 34px);
  margin: 0 0 16px;
}

.contact p { color: var(--muted); }

.contact-form { display: grid; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  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='%238B93A7' 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: 18px;
  padding-right: 44px;
}

.contact-form select:invalid { color: var(--muted); }
.contact-form option { color: var(--ink); background: var(--bg-raised); }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: -6px;
}

.contact-form label span { color: var(--colorfuse-2); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--colorfuse-1);
  outline-offset: 1px;
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- color fuse coming soon page ---------- */

.cf-hero {
  padding: 110px 0 90px;
  text-align: left;
  position: relative;
}

.cf-logo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 0 40px;
  opacity: 0;
  animation: cfFuse 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes cfFuse {
  from { opacity: 0; transform: scale(0.8) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.cf-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  max-width: 700px;
  margin: 0 0 24px;
}

.cf-hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 40px;
}

.cf-teaser {
  padding: 0 32px 56px;
  text-align: left;
}

.cf-teaser p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

.cf-screenshots {
  padding: 0 32px 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
}

.cf-screenshot {
  width: min(100%, 260px);
  flex: 0 1 260px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

.cf-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .cf-screenshots {
    gap: 24px;
    justify-content: center;
  }

  .cf-screenshot {
    flex-basis: 220px;
    width: min(100%, 220px);
  }
}

/* ---------- legal pages (privacy policy / EULA) ---------- */

.legal-page {
  padding: 70px 0 120px;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 42px);
  margin: 0 0 12px;
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 48px;
}

.legal-part-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  margin: 64px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-part-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-intro {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.legal-toc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.legal-toc p {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  gap: 24px;
}

.legal-toc li { margin-bottom: 8px; font-size: 14px; }

.legal-toc a {
  text-decoration: none;
  color: var(--ink);
}

.legal-toc a:hover { color: var(--colorfuse-1); }

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}

.legal-section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 14px;
}

.legal-section h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin: 20px 0 10px;
}

.legal-section p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 14px;
}

.legal-section .legal-short {
  color: var(--ink);
  font-weight: 500;
}

.legal-section ul,
.legal-section ol.legal-list {
  color: var(--muted);
  font-size: 15.5px;
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal-section li { margin-bottom: 8px; }

.legal-contact {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 15px;
}

.legal-contact a { color: var(--colorfuse-1); text-decoration: none; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}


/* ---------- direct legal / account pages ---------- */
.direct-page {
  padding: 100px 0 110px;
  max-width: 760px;
}
.direct-page h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 54px);
  margin: 0 0 14px;
}
.direct-page .lede { color: var(--muted); max-width: 650px; margin-bottom: 42px; }
.direct-form { display:grid; gap:16px; max-width:640px; }
.direct-form label { display:block; font-size:14px; font-weight:500; color:var(--muted); margin-bottom:-6px; }
.direct-form label span { color:var(--colorfuse-2); }
.direct-form input, .direct-form textarea {
  width:100%; background:var(--bg-raised); border:1px solid var(--line); border-radius:10px;
  padding:14px 16px; color:var(--ink); font-family:var(--body); font-size:15px;
}
.direct-form textarea { min-height:120px; resize:vertical; }
.direct-form input:focus, .direct-form textarea:focus { outline:2px solid var(--colorfuse-1); outline-offset:1px; }
.direct-form .helper { color:var(--muted); font-size:14px; margin:0; }
.legal-document { margin-bottom:72px; }
.legal-document > h2 {
  font-family:var(--display); font-weight:900; font-size:clamp(28px,4vw,38px);
  margin:0 0 18px; padding-top:34px; border-top:1px solid var(--line);
}
.legal-document:first-child > h2 { border-top:none; padding-top:0; }
.legal-document .legal-source { color:var(--muted); font-size:14px; margin:0 0 28px; }
.legal-document h3, .legal-document h4 { font-family:var(--display); }
.legal-document p { color:var(--muted); font-size:15.5px; line-height:1.75; margin:0 0 14px; }
.legal-document strong { color:var(--ink); }
.legal-document ul, .legal-document ol { color:var(--muted); font-size:15.5px; line-height:1.7; padding-left:24px; margin:0 0 18px; }
.legal-document li { margin-bottom:8px; }
.legal-document a { color:var(--colorfuse-1); }
.legal-document .legal-updated { font-size:14px; margin-bottom:30px; color:var(--muted); }
.legal-jump {
  background:var(--bg-raised); border:1px solid var(--line); border-radius:14px;
  padding:20px 24px; margin:0 0 50px;
}
.legal-jump strong { display:block; margin-bottom:10px; }
.legal-jump a { color:var(--ink); text-decoration:none; margin-right:18px; }
.legal-jump a:hover { color:var(--colorfuse-1); }
@media (max-width:640px) {
  .direct-page { padding-top:70px; }
  .legal-document p, .legal-document ul, .legal-document ol { font-size:15px; }
}
