:root {
  /* TODO: Replace with Yoll brand palette */
  --primary: #2f6df6;
  --accent: #ff8a3d;
  --dark: #0b0f14;
  --surface: #141a22;
  --text: #f5f7fa;
  --muted: #a8b3c4;
  --light-bg: #f5f7fb;
  --card: #111821;
  --line: rgba(255, 255, 255, 0.08);
  --max-w: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: #ffffff;
  color: #101418;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #e6e9ef;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.logo.small {
  font-size: 0.9rem;
}

.logo-fox {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  margin-left: 1rem;
}

.lang-btn {
  border: 1px solid #d7dde7;
  background: transparent;
  color: #20252b;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.nav-link {
  text-decoration: none;
  color: #20252b;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #222;
  display: block;
}

.hero {
  padding: 6rem 0 5rem;
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.8s ease both;
}

.hero-copy h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.8rem);
  line-height: 1.1;
  color: #0b0f14;
}

.subtitle {
  font-size: 1.1rem;
  color: #3b4450;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #101418;
}

.btn.ghost {
  background: transparent;
  border-color: #d7dde7;
  color: #0b0f14;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(12, 20, 32, 0.12);
}

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

.meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #5d6b7a;
}

.hero-visual {
  grid-column: span 6;
  position: relative;
  animation: fadeIn 1s ease 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.device-shell {
  background: #0d131a;
  border-radius: 30px;
  padding: 1.2rem;
  box-shadow: 0 24px 60px rgba(12, 20, 32, 0.3);
}

.device-screen {
  background: #0f1722;
  border-radius: 22px;
  padding: 1.5rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.map {
  position: relative;
}

.map-svg {
  width: 100%;
}

.map-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw 2.4s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.fox-hero {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  animation: heroFloat 5s ease-in-out infinite;
}

.ui-cards {
  display: grid;
  gap: 0.6rem;
}

.ui-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.section {
  padding: 5rem 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
}

.section-head p {
  max-width: 720px;
  color: #4b5563;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.04);
}

.card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.6rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.split-text {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.split-visual {
  grid-column: span 6;
}

.pill-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pill-list li {
  list-style: none;
  background: #f1f4f9;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.diagram {
  width: 100%;
}

.diagram rect {
  fill: #f6f7fb;
  stroke: #d8dee8;
}

.diagram text {
  font-family: "Space Grotesk", sans-serif;
  fill: #1e2530;
  font-size: 0.95rem;
  text-anchor: middle;
  dominant-baseline: middle;
}

.diagram-line {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}

.diagram.draw .diagram-line {
  animation: draw 1.8s ease forwards;
}

.architecture {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.architecture-diagram {
  display: grid;
  gap: 1.2rem;
}

.layer {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e6e9ef;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.layer span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.layer p {
  color: #4b5563;
  margin-top: 0.4rem;
}

.layer.active {
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.traveler {
  background: #ffffff;
}

.traveler-ui {
  display: grid;
  gap: 1rem;
}

.route-card,
.recommend-card {
  background: #f6f7fb;
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid #e6e9ef;
}

.route-header {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 1rem;
}

.route-path {
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.route-path::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.4s ease;
}

.route-card.active .route-path::after {
  width: 100%;
}

.route-stops {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.label {
  color: #627084;
  font-size: 0.85rem;
}

.chip {
  background: #ffffff;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.6rem;
}

.flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid #e6e9ef;
  font-family: "Space Grotesk", sans-serif;
}

.flow-arrow {
  width: 40px;
  height: 2px;
  background: var(--primary);
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  border: 6px solid transparent;
  border-left-color: var(--primary);
}

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

.module {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px dashed #d7dde7;
  text-align: center;
  transition: border 0.3s ease, transform 0.3s ease;
}

.module:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.technology {
  background: var(--dark);
  color: var(--text);
}

.section-head.inverted h2,
.section-head.inverted p {
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.metric {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.metric-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  display: block;
}

.metric-label {
  color: var(--muted);
}

.tag-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.growth-card {
  background: #ffffff;
  padding: 1.6rem;
  border-radius: 20px;
  border: 1px solid #e6e9ef;
}

.brand {
  background: linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.brand-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  align-items: center;
}

.brand-copy {
  grid-column: span 5;
}

.brand-visual {
  grid-column: span 7;
  position: relative;
  height: 220px;
}

.fox-svg {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 0;
  left: 0;
  offset-path: path("M20 180 C160 40, 360 240, 500 60");
  offset-distance: 0%;
  offset-rotate: auto;
  animation: foxTravel 6s linear infinite;
}

.path-svg {
  width: 100%;
  height: 100%;
}

.path-line {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 400;
  animation: pathMove 6s linear infinite;
}

@keyframes pathMove {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 400; }
}

@keyframes foxTravel {
  to { offset-distance: 100%; }
}

@keyframes heroFloat {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -8px); }
  100% { transform: translate(0, 0); }
}

.cta {
  background: #0d1117;
  color: #fff;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
}

.site-footer {
  background: #0b0f14;
  color: #cdd5e1;
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    right: 1rem;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
    gap: 0.8rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .hero-grid,
  .split,
  .brand-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .split-text,
  .split-visual,
  .brand-copy,
  .brand-visual {
    grid-column: auto;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-visual {
    order: -1;
  }

  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-arrow {
    width: 2px;
    height: 24px;
  }

  .flow-arrow::after {
    right: -4px;
    top: auto;
    bottom: -4px;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }
}
