/* SV Speedo website – shared styles */

:root {
  --bg: #000;
  --card: #0e0e10;
  --line: #222226;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --green: #0de859;
  --green-dark: #08b845;
  --ink: #001a09;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1100px, 92vw); margin-inline: auto; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 0 18px rgba(13, 232, 89, 0.35);
}

.brand span {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span b { color: var(--green); font-weight: 800; }

/* Menu button (three lines) + dropdown */

.menu-wrap { position: relative; }

.menu-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.menu-btn:hover { border-color: var(--green); background: rgba(13, 232, 89, 0.06); }

.menu-btn i {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.menu-btn.open i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open i:nth-child(2) { opacity: 0; }
.menu-btn.open i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 230px;
  padding: 8px;
  background: #111113;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.menu.open { opacity: 1; visibility: visible; transform: none; }

.menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
}

.menu a small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.menu a:hover { background: rgba(13, 232, 89, 0.1); color: var(--green); }

/* ---------- Hero ---------- */

.hero { padding: 0; }

/* The picture slides in from the side. The black space above the handlebars
   holds the headline, so the words sit right on top of the bike. */
.hero-card {
  position: relative;
  width: min(1500px, 100%);
  aspect-ratio: 2440 / 1300;
  margin-inline: auto;
  background: #000;
  overflow: hidden;
  animation: slide-in 1.2s cubic-bezier(0.16, 0.84, 0.24, 1) both;
  will-change: transform;
}

.hero-card img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 89.2%;           /* 1160 / 1300: the photo fills the lower part */
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-text {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: clamp(14px, 3.4%, 44px);
  text-align: center;
  padding: 0 16px;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 3.7rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.hero-text .line {
  display: block;
  opacity: 0;
  transform: translateY(-14px);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-text .l1 { animation-delay: 0.8s; }
.hero-text .l2 { animation-delay: 1.05s; color: var(--green); }

/* Phones: a taller card, the photo is cropped to the dashboard and forks */
@media (max-width: 700px) {
  .hero-card { aspect-ratio: 4 / 5; }
  .hero-card img { height: 74%; object-position: 50% 35%; }
  .hero-text { top: clamp(18px, 5%, 40px); }
}

@keyframes slide-in {
  from { transform: translateX(105vw); }
  to { transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.intro { padding: 76px 0 24px; text-align: center; }

.intro p {
  max-width: 780px;
  margin: 0 auto 1.2em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: #e7e7ea;
}

.intro p strong { color: var(--green); font-weight: 750; }
.intro p.sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 850;
  margin: 72px 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: rgba(13, 232, 89, 0.5); transform: translateY(-3px); }

.card .ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(13, 232, 89, 0.1);
  color: var(--green);
  margin-bottom: 16px;
}

.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 18px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  border: 0;
  background: var(--green);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(13, 232, 89, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 50px rgba(13, 232, 89, 0.42); background: #2bf070; }
.btn svg { width: 22px; height: 22px; }

.btn[aria-disabled="true"] {
  background: #1b1b1f;
  color: #7c7c85;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.cta { padding: 56px 0 100px; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); margin: 0 0 10px; font-weight: 900; }
.cta p { color: var(--muted); margin: 0 0 28px; }

.cta .btn { font-size: 1.25rem; padding: 20px 46px; }

/* ---------- Inner pages ---------- */

.page-head { padding: 64px 0 28px; text-align: center; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 900; }
.page-head p { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 1.1rem; }

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}

.platform h2 { margin: 0; font-size: 1.4rem; }
.platform .meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pill {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill.ok { background: rgba(13, 232, 89, 0.14); color: var(--green); }
.pill.soon { background: #1b1b1f; color: #9a9aa3; }

.platform .btn { margin-top: auto; font-size: 1rem; padding: 14px 24px; }

.platform details { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 0.95rem; }
.platform summary { cursor: pointer; color: var(--text); font-weight: 650; }
.platform ol { margin: 10px 0 0; padding-left: 20px; }
.platform li { margin-bottom: 6px; }

.safety {
  max-width: 760px;
  margin: 8px auto 90px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.safety strong { color: var(--text); }

/* Contact form */

form.contact {
  width: min(620px, 92vw);
  margin: 0 auto 100px;
  display: grid;
  gap: 16px;
}

form.contact label { display: grid; gap: 6px; font-weight: 650; }

form.contact input,
form.contact textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0e0e10;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

form.contact textarea { min-height: 160px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--green); outline: none; }

.form-status { min-height: 1.4em; color: var(--green); text-align: center; margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  text-align: center;
  color: #75757d;
  font-size: 0.88rem;
}

.site-footer a { color: #a1a1aa; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  .hero-text .line { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .menu { transition: none; }
}
