/* RUDX website – dark like the app, RUDX red, Inter (self-hosted, no third-party requests). */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0c0f;
  --surface: #14161b;
  --surface-high: #1c1f26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f3;
  --muted: #9aa1ad;
  --dim: #6b7280;
  --red: #e0312b;
  --red-dark: #b71f1b;
  --sky: #9fb8de;
  --amber: #f0ad2e;
  --green: #3ccf6e;
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 15, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 30px; width: 30px; border-radius: 7px; }
.brand span { font-weight: 600; letter-spacing: 0.32em; font-size: 15px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ea3a33; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(224, 49, 43, 0.20), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; margin: 14px 0 18px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 19px; color: #c9ced6; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 13.5px; }
.badges span::before { content: "●"; color: var(--red); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

.phones { position: relative; height: 620px; }
.phone {
  position: absolute; width: 270px; border-radius: 44px; padding: 9px;
  background: linear-gradient(160deg, #2a2d34, #0f1013);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.phone img { border-radius: 36px; }
.phone.front { right: 150px; top: 10px; z-index: 2; }
.phone.back { right: 0; top: 70px; transform: rotate(4deg); opacity: 0.92; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: linear-gradient(180deg, #0e1014, #0b0c0f); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Problem */
.problem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem div { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: #c9ced6; font-size: 15.5px; }
.problem strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 16.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(224, 49, 43, 0.12); color: var(--red); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Split road / offroad */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { border-radius: 28px; padding: 36px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 210px; gap: 24px; align-items: center; }
.mode h3 { font-size: 26px; margin: 8px 0 12px; }
.mode ul { margin: 0; padding: 0; list-style: none; color: #c9ced6; font-size: 15.5px; }
.mode li { padding: 7px 0; border-top: 1px solid var(--line); }
.mode li:first-child { border-top: 0; }
.mode .shot { border-radius: 30px; padding: 6px; background: #1d2026; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.mode .shot img { border-radius: 25px; }
.tag-road { color: var(--sky); }
.tag-off { color: var(--amber); }

/* Clubs */
.clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.list { display: grid; gap: 14px; }
.list > div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.list svg { width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.list strong { display: block; }
.list span { color: var(--muted); font-size: 15px; }
.recap { border-radius: 30px; padding: 8px; background: #1d2026; max-width: 320px; margin-left: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.recap img { border-radius: 24px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust .card { background: var(--surface); }
.swiss { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--red); border-radius: 3px; margin-right: 8px; vertical-align: -3px; }
.swiss::before { content: ""; width: 12px; height: 4px; background: #fff; position: absolute; }
.swiss::after { content: ""; width: 4px; height: 12px; background: #fff; position: absolute; }
.swiss { position: relative; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* CTA band */
.band { text-align: center; padding: 88px 24px; background: radial-gradient(60% 120% at 50% 0%, rgba(224, 49, 43, 0.28), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(32px, 4.5vw, 50px); margin: 0 0 12px; letter-spacing: -0.015em; }
.band p { color: #c9ced6; font-size: 18px; margin: 0 auto 28px; max-width: 36em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal / guide pages */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(32px, 4.5vw, 46px); margin: 8px 0 24px; }
.page h2 { margin-top: 40px; font-size: 24px; }
.page h3 { margin-top: 28px; font-size: 19px; }
.page p, .page li { color: #c9ced6; }
.page table { border-collapse: collapse; width: 100%; font-size: 15px; }
.page td, .page th { border-top: 1px solid var(--line); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; color: #c9ced6; }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap, .clubs, .split { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phone { width: 230px; }
  .phone.front { right: auto; left: 0; }
  .features, .problem { grid-template-columns: repeat(2, 1fr); }
  .trust, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .recap { margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .features, .problem { grid-template-columns: 1fr; }
  .mode { grid-template-columns: 1fr; padding: 24px; }
  .mode .shot { max-width: 240px; }
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
}

/* ---------- Cinematic (v2) ---------- */
.cine {
  position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
  padding: 120px 0 220px;
}
.cine .bg { position: absolute; inset: 0; z-index: 0; }
.cine .bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 55%;
  transform: scale(1.06); animation: kenburns 22s ease-out forwards;
}
.cine::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,12,15,0.95) 0%, rgba(11,12,15,0.86) 34%, rgba(11,12,15,0.45) 52%, rgba(11,12,15,0.08) 72%, rgba(11,12,15,0) 100%),
    linear-gradient(180deg, rgba(11,12,15,0.55) 0%, rgba(11,12,15,0) 22%, rgba(11,12,15,0) 62%, #0b0c0f 100%);
}
.cine .wrap { position: relative; z-index: 2; width: 100%; }
.cine .copy { max-width: 640px; }
.cine .lead { max-width: 470px; }
.cine h1 { font-size: clamp(44px, 7vw, 86px); line-height: 1.0; letter-spacing: -0.025em; margin: 16px 0 20px; font-weight: 750; text-shadow: 0 8px 40px rgba(0,0,0,0.5); }
.cine h1 em { font-style: normal; color: var(--red); }
.cine .lead { color: #dde1e7; text-shadow: 0 2px 20px rgba(0,0,0,0.6); }
.scroll-hint { position: absolute; left: 50%; bottom: 150px; z-index: 2; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
@keyframes kenburns { from { transform: scale(1.16) translateX(4%); } to { transform: scale(1.08) translateX(5%); } }

/* Phones rising out of the hero */
.showcase { position: relative; z-index: 3; margin-top: -200px; padding: 0 0 40px; }
.showcase .row { display: flex; justify-content: center; align-items: flex-end; gap: 28px; }
.showcase .phone { position: relative; width: 250px; right: auto; top: auto; transform: none; }
.showcase .phone.mid { width: 290px; }
.showcase .phone.side { opacity: 0.9; }
.showcase .phone.side.l { transform: translateY(26px) rotate(-3deg); }
.showcase .phone.side.r { transform: translateY(26px) rotate(3deg); }
.showcase p { text-align: center; color: var(--muted); margin: 34px auto 0; max-width: 40em; font-size: 15px; }

/* Wide cinematic photo band */
.film { position: relative; height: min(56vw, 560px); overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.film img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0c0f 0%, rgba(11,12,15,0.15) 25%, rgba(11,12,15,0.25) 60%, #0b0c0f 100%); }
.film blockquote { position: absolute; z-index: 1; left: 0; right: 0; bottom: 56px; margin: 0 auto; max-width: var(--max); padding: 0 24px; font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 4px 30px rgba(0,0,0,0.7); }
.film blockquote span { display: block; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* Mode cards with photo heads */
.mode.photo { padding: 0; overflow: hidden; display: block; }
.mode.photo .head { position: relative; height: 230px; }
.mode.photo .head img { width: 100%; height: 100%; object-fit: cover; }
.mode.photo .head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,27,0) 30%, var(--surface) 100%); }
.mode.photo .body { display: grid; grid-template-columns: 1fr 170px; gap: 22px; padding: 4px 32px 32px; align-items: end; margin-top: -40px; position: relative; z-index: 1; }

/* Clubs: phone over photo */
.clubs-photo { position: relative; border-radius: 28px; overflow: hidden; min-height: 560px; }
.clubs-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clubs-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11,12,15,0.05), rgba(11,12,15,0.55)); }
.clubs-photo .recap { position: absolute; z-index: 1; right: 28px; bottom: -40px; width: 270px; margin: 0; }

/* Night band */
.band.night { position: relative; overflow: hidden; background: #050506; padding: 140px 24px; }
.band.night > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.band.night::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 80% at 50% 50%, rgba(5,5,6,0.35), rgba(5,5,6,0.92)); }
.band.night > *:not(img) { position: relative; z-index: 2; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cine .bg img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .cine { min-height: 86vh; padding: 110px 0 200px; }
  .cine .bg img { object-position: 70% 55%; }
  .cine::after { background: linear-gradient(180deg, rgba(11,12,15,0.55) 0%, rgba(11,12,15,0.35) 35%, rgba(11,12,15,0.8) 75%, #0b0c0f 100%); }
  .showcase .phone.side { display: none; }
  .showcase .phone.mid { width: 260px; }
  .clubs-photo { min-height: 460px; }
  .clubs-photo .recap { right: 50%; transform: translateX(50%); }
  .mode.photo .body { grid-template-columns: 1fr; }
  .mode.photo .body .shot { max-width: 220px; }
}
@media (max-width: 560px) {
  .scroll-hint { display: none; }
  .clubs-photo .recap { width: 230px; }
}

/* Language switcher */
.lang { position: relative; margin-left: 4px; }
.nav + .lang { margin-left: 18px; }
.lang summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; font-size: 10px; }
.lang[open] summary { color: var(--text); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: var(--surface-high); border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 20; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 14.5px; }
.lang-menu a:hover { background: rgba(255,255,255,0.06); }
.lang-menu a[aria-current] { color: var(--red); }
.langs-foot { width: 100%; font-size: 13px; }
.langs-foot span { color: var(--dim); font-size: 12px; }
@media (max-width: 980px) { .header .lang { margin-left: auto; } .header .lang + .btn { margin-left: 10px; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: rgba(224,49,43,0.6); box-shadow: 0 0 0 1px rgba(224,49,43,0.25), 0 30px 60px rgba(224,49,43,0.10); }
.plan .tag { position: absolute; top: -11px; left: 22px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 19px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price strong { font-size: 30px; letter-spacing: -0.01em; }
.plan .price span { color: var(--muted); font-size: 13px; }
.plan-sub { margin: 0; color: var(--muted); font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.price-table td { padding: 6px 0; border-top: 1px solid var(--line); color: #c9ced6; }
.price-table td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 8px; }
.price-table tr.best td { color: var(--text); font-weight: 600; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: #c9ced6; display: grid; gap: 7px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price-note { color: var(--dim); font-size: 13px; margin-top: 22px; max-width: 900px; }
@media (max-width: 1100px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }
