/* Trailerbook — trailerbook.cz
   Dark, calm, cinematic: burgundy and gold on near-black, the app's own
   typefaces (self-hosted, no third-party requests). */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/assets/fonts/SourceSerif4-It.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --bg: #0b0a0d;
  --bg-2: #121015;
  --panel: #17141a;
  --ink: #f3ede8;
  --muted: #a99fa6;
  --faint: #6f666d;
  --line: rgba(243, 237, 232, 0.09);
  --gold: #d8b04a;
  --gold-soft: rgba(216, 176, 74, 0.14);
  --burgundy: #7a0019;
  --wine: #3b0612;
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: #1a1408; }

.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.display { font-family: "Bebas Neue", "Inter", sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .95; }
.serif { font-family: "Source Serif", Georgia, serif; font-style: italic; }
.muted { color: var(--muted); }

/* ---------- Film grain + glow ---------- */
.glow {
  position: fixed; inset: -20vh -10vw auto; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 72% 18%, rgba(122, 0, 25, .45), transparent 70%),
    radial-gradient(40vw 40vh at 15% 30%, rgba(216, 176, 74, .10), transparent 70%);
  filter: blur(10px);
}
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 10, 13, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: .06em; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #1a1408; box-shadow: 0 10px 40px -12px rgba(216, 176, 74, .55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(216, 176, 74, .7); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(243, 237, 232, .3); }
.btn small { font-weight: 500; opacity: .7; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.4vw, 116px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--faint); }

.stage { position: relative; height: 640px; }
.phone {
  position: absolute; width: 290px; aspect-ratio: 975 / 2110;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #2a2428, #0f0d11 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 100px -30px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(122, 0, 25, .6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone.a { left: 8%; top: 40px; transform: rotate(-6deg); animation: float 9s ease-in-out infinite; }
.phone.b { right: 4%; top: 0; transform: rotate(4deg); animation: float 9s ease-in-out -4.5s infinite; z-index: 2; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; margin-top: 40px; }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 18px 0; animation: scroll 38s linear infinite; }
.marquee span { font-family: "Bebas Neue", sans-serif; font-size: 26px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.marquee span b { color: var(--gold); font-weight: 400; margin-right: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(42px, 5.4vw, 72px); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); }
.step .n { font-family: "Bebas Neue", sans-serif; font-size: 54px; line-height: 1; color: var(--gold); opacity: .9; }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 34px 30px; transition: background .4s var(--ease); }
.feature:hover { background: var(--bg-2); }
.feature svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin: 20px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Showcase */
.showcase { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; margin: 0 -20px; scrollbar-width: none; }
.showcase::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: 260px; scroll-snap-align: center; }
.shot .phone { position: relative; width: 100%; transform: none; animation: none; transition: transform .5s var(--ease); }
.shot:hover .phone { transform: translateY(-8px); }
.shot h3 { font-size: 16px; margin: 22px 4px 4px; }
.shot p { margin: 0 4px; color: var(--muted); font-size: 14px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .phone { position: relative; width: 300px; margin: 0 auto; transform: rotate(-3deg); }
.split h2 { font-size: clamp(40px, 5vw, 64px); margin: 14px 0 16px; }
.split p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.ticks li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }

/* Quote */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 860px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.3; }
.quote cite { display: block; margin-top: 22px; font-style: normal; color: var(--faint); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

/* CTA */
.cta { text-align: center; border: 1px solid var(--line); border-radius: 32px; padding: 90px 30px; position: relative; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(122, 0, 25, .45), transparent 70%), var(--bg-2); }
.cta h2 { font-size: clamp(46px, 6.4vw, 88px); margin: 14px 0 18px; }
.cta p { color: var(--muted); max-width: 540px; margin: 0 auto 34px; font-size: 18px; }

/* Footer */
footer { padding: 54px 0 70px; border-top: 1px solid var(--line); margin-top: 110px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--ink); }
footer small { color: var(--faint); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 40px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(48px, 7vw, 80px); margin: 14px 0 8px; }
.legal h2 { font-size: 20px; margin: 40px 0 8px; }
.legal p, .legal li { color: #ddd5d0; }
.legal ul, .legal ol { padding-left: 22px; }
.legal a { color: var(--gold); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.lang-switch { display: flex; gap: 8px; margin-top: 22px; }
.lang-switch a { text-decoration: none; font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .stage { height: 520px; }
  .phone { width: 230px; }
  .phone.a { left: 4%; }
  .phone.b { right: 2%; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 80px 0; }
  .split .phone { width: 250px; }
}
