/* Gaston landing — brand tokens from playstore-assets/README.md */
:root {
  --bg-deep: #1a0f2e;
  --bg: #2d1b4e;
  --bg-elevated: #3d2a66;
  --violet: #7c4dff;
  --violet-bright: #9d7aff;
  --lavender: #b388ff;
  --mist: #d1c4e9;
  --gold: #ffd228;
  --ev: #40c482;
  --text: #f5f0ff;
  --text-muted: rgba(209, 196, 233, 0.75);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--lavender);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Background mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 77, 255, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(64, 196, 130, 0.12), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(255, 210, 40, 0.08), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, var(--bg-deep) 100%);
  pointer-events: none;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(26, 15, 46, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.4);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--mist);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: rgba(26, 15, 46, 0.97);
  backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .nav-mobile {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #5e35d8 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(124, 77, 255, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(124, 77, 255, 0.55);
  color: #fff;
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mist);
  margin-bottom: 1.25rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ev);
  box-shadow: 0 0 12px var(--ev);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero h1 .highlight-fuel {
  background: linear-gradient(135deg, var(--gold), #ffb300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight-ev {
  background: linear-gradient(135deg, var(--ev), #2dd4a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 60%;
  top: 20%;
  left: 15%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.5), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* PNG exports already include the rounded device chassis (MarketingScreenshotFrame). */
.hero-device-shot {
  display: block;
  width: min(300px, 78vw);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}

.phone-wrap:hover .hero-device-shot {
  transform: rotateY(-4deg) rotateX(2deg);
}

.phone-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.phone-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.phone-dots button.is-active {
  background: var(--violet);
  transform: scale(1.25);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.section-desc {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 3rem;
}

/* Features grid */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 77, 255, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-card.is-wide {
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .feature-card.is-wide {
    grid-column: span 2;
  }
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-icon.fuel {
  background: rgba(255, 210, 40, 0.15);
}

.feature-icon.ev {
  background: rgba(64, 196, 130, 0.15);
}

.feature-icon.route {
  background: rgba(124, 77, 255, 0.2);
}

.feature-icon.auto {
  background: rgba(179, 136, 255, 0.15);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Showcase */
.showcase {
  background: linear-gradient(180deg, transparent, rgba(124, 77, 255, 0.06), transparent);
}

.showcase-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar {
  display: none;
}

.showcase-item {
  flex: 0 0 auto;
  width: min(220px, 42vw);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: visible;
  transition: transform 0.3s var(--ease);
}

.showcase-item:hover {
  transform: scale(1.03);
}

.showcase-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.showcase-caption {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--mist);
}

/* Android Auto band */
.auto-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.2) 0%, rgba(45, 27, 78, 0.8) 100%);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .auto-band {
    grid-template-columns: 1fr 1fr;
    padding: 3rem;
  }
}

.auto-band img {
  border-radius: var(--radius);
  max-height: 420px;
  width: auto;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.auto-band ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.auto-band li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.auto-band li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(160deg, rgba(124, 77, 255, 0.25), rgba(45, 27, 78, 0.9));
  border: 1px solid rgba(179, 136, 255, 0.25);
  border-radius: 32px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 210, 40, 0.12), transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 auto 1.75rem;
  position: relative;
}

.cta-box .btn {
  position: relative;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.store-badge img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 24rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-copy a {
  color: var(--lavender);
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  max-width: 42rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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