:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #b9cbd8;
  --faint: #7f97a8;
  --deep: #031424;
  --navy: #08243a;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --sea: #3399bf;
  --sea-bright: #4fc3ea;
  --red: #e5323b;
  --gold: #ffc23d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 17px; color: #fff; background: var(--sea);
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--red), #b3121c);
  box-shadow: 0 10px 30px rgba(229, 50, 59, 0.35);
}
.button.primary:hover { box-shadow: 0 14px 36px rgba(229, 50, 59, 0.5); }
.button.ghost { background: rgba(255, 255, 255, 0.10); border-color: var(--line); backdrop-filter: blur(10px); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* App Store badge, drawn in CSS (no Apple artwork until the game is live) */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none; color: #fff; text-align: left;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: block; font-size: 11px; line-height: 1.2; opacity: .8; }
.store strong { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.2px; }
.store.soon { cursor: default; }

/* ---------- Home ---------- */

.home {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px; text-align: center; overflow: hidden;
}
.home::before {
  content: ""; position: absolute; inset: -20px;
  background: url("img/rialto.jpg") center 40% / cover no-repeat;
  filter: blur(6px) saturate(1.1);
  transform: scale(1.05);
  animation: drift 30s ease-in-out infinite alternate;
}
.home::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(3, 20, 36, 0.35), rgba(3, 20, 36, 0.92) 70%),
    linear-gradient(180deg, rgba(3, 20, 36, 0.2), var(--deep));
}
.home > * { position: relative; z-index: 1; }

@keyframes drift { from { transform: scale(1.05) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }

.app-icon {
  width: 148px; height: 148px; border-radius: 33px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-1deg); } }

.home h1 { font-size: clamp(36px, 7vw, 60px); letter-spacing: -1.5px; margin: 28px 0 6px; line-height: 1.05; }
.home .tagline { font-size: clamp(18px, 3vw, 22px); color: var(--sea-bright); font-weight: 600; margin: 0 0 14px; }
.home .lead { max-width: 520px; color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 0 30px; }

.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.actions .button { width: 100%; }
.home .store { margin-bottom: 26px; }

.contacts { margin-top: 26px; color: var(--faint); font-size: 15px; }
.contacts a { color: var(--muted); }

footer { color: var(--faint); font-size: 13px; text-align: center; padding: 30px 16px 40px; line-height: 1.7; }
footer a { color: var(--muted); }
.home footer { padding-bottom: 0; }

/* ---------- Game page ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(3, 20, 36, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar .button { padding: 9px 16px; font-size: 15px; }

.hero {
  position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end;
  padding: 0 16px 56px; overflow: hidden;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 20, 36, 0.1) 30%, rgba(3, 20, 36, 0.75) 70%, var(--deep));
}
.hero .inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 700; color: var(--sea-bright); }
.hero h1 { font-size: clamp(38px, 7vw, 76px); letter-spacing: -2px; line-height: 1; margin: 12px 0 16px; max-width: 800px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: #dbe7ef; max-width: 620px; line-height: 1.5; margin: 0; }

section { max-width: 1100px; margin: 0 auto; padding: 64px 16px; }
section h2 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -1px; margin: 10px 0 14px; line-height: 1.1; }
section > p.intro { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 700px; margin: 0 0 36px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(79, 195, 234, 0.45); }
.feature .emoji {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(79, 195, 234, 0.25), rgba(51, 153, 191, 0.08));
  margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.reverse .shot { order: 2; }
.shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.shot img { display: block; width: 100%; height: auto; }
.split h2 { margin-top: 6px; }
.split p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.split ul { color: var(--muted); font-size: 17px; line-height: 1.8; padding-left: 20px; margin: 0; }
.split li::marker { color: var(--sea-bright); }

.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 20px; margin: 0 -16px; scrollbar-width: thin;
}
.gallery figure { flex: 0 0 min(82%, 560px); margin: 0; scroll-snap-align: center; }
.gallery img { width: 100%; display: block; border-radius: 18px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; text-align: center; }

.cta {
  text-align: center; border-radius: 30px; padding: 56px 20px; margin: 0 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 50, 59, 0.35), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(79, 195, 234, 0.35), transparent 55%),
    var(--navy);
  border: 1px solid var(--line);
}
.cta-wrap { max-width: 1100px; margin: 0 auto 20px; }
.cta img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.cta h2 { margin: 20px 0 10px; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -1px; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .shot { order: 0; }
  .hero { min-height: 70vh; padding-bottom: 40px; }
  section { padding: 48px 16px; }
  .topbar .button span { display: none; }
}

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

/* ---------- BarcaVeloxMT, the real-life app ---------- */

.mt-card {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 560px;
  margin-top: 28px; padding: 16px; border-radius: 22px; text-align: left; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .15s ease, border-color .15s ease;
}
.mt-card:hover { transform: translateY(-2px); border-color: rgba(79, 195, 234, 0.45); }
.mt-card img { width: 72px; height: 72px; border-radius: 17px; flex: none; background: #fff; }
.mt-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.mt-card span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mt-card em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 15px; color: var(--sea-bright); }
.mt-section .mt-card { margin-top: 8px; }
