/* ============================================
   VW Design System — KuKa Prototyp
   Tokens from Figma: d5R7cPuC3l5yoGYH6VPoxN / node 1270:76970
   ============================================ */

:root {
  /* VW Official Color Palette */
  --vw-blue:    #001E50;   /* VW Blue — primary brand */
  --vw-dark:    #10181F;   /* Dark canvas background */
  --vw-dark-2:  #1C2A38;   /* Dark surface / card */
  --vw-beige:   #F4F0EB;   /* VW Beige — primary accent */
  --vw-white:   #FFFFFF;
  --vw-cream:   #F4F0EB;   /* Warm off-white, light section bg */
  --vw-silver:  #F4F4F4;
  --vw-gray:    #9B9B9B;
  --vw-gray-mid:#6A6A6A;
  --vw-gray-dark:#3C3C3C;
  --vw-black:   #1A1A1A;

  /* Semantic */
  --bg:        var(--vw-white);
  --bg-alt:    var(--vw-cream);
  --text:      var(--vw-black);
  --text-muted: var(--vw-gray);
  --accent:    var(--vw-beige);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Type — Barlow closest open-source match to VW Head / VW Text */
  --font-display: 'Barlow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 72px;
  --radius:     100px;     /* VW CTAs: pill shape */
  --radius-card: 12px;    /* VW Cards: soft rounding */
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--vw-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--vw-white);
}

.vw-logo {
  width: 36px;
  height: 36px;
  color: var(--vw-white);
}

.vw-logo--sm {
  width: 28px;
  height: 28px;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.nav-dot { opacity: 0.3; }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--vw-dark);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.speed-line {
  position: absolute;
  left: -100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(244, 240, 235, 0.18) 40%, rgba(244, 240, 235, 0.06) 100%);
  animation: speedline linear infinite;
}

.speed-line:nth-child(1)  { top: 12%;  width: 55%; animation-duration: 18s; animation-delay: 0s;    opacity: 0.7; }
.speed-line:nth-child(2)  { top: 19%;  width: 35%; animation-duration: 26s; animation-delay: -4s;   opacity: 0.4; }
.speed-line:nth-child(3)  { top: 27%;  width: 70%; animation-duration: 22s; animation-delay: -11s;  opacity: 0.9; }
.speed-line:nth-child(4)  { top: 34%;  width: 28%; animation-duration: 32s; animation-delay: -7s;   opacity: 0.35; }
.speed-line:nth-child(5)  { top: 41%;  width: 80%; animation-duration: 19s; animation-delay: -2s;   opacity: 1; }
.speed-line:nth-child(6)  { top: 48%;  width: 42%; animation-duration: 28s; animation-delay: -15s;  opacity: 0.5; }
.speed-line:nth-child(7)  { top: 55%;  width: 60%; animation-duration: 24s; animation-delay: -8s;   opacity: 0.75; }
.speed-line:nth-child(8)  { top: 61%;  width: 33%; animation-duration: 36s; animation-delay: -3s;   opacity: 0.3; }
.speed-line:nth-child(9)  { top: 68%;  width: 50%; animation-duration: 21s; animation-delay: -13s;  opacity: 0.6; }
.speed-line:nth-child(10) { top: 75%;  width: 38%; animation-duration: 30s; animation-delay: -6s;   opacity: 0.45; }
.speed-line:nth-child(11) { top: 82%;  width: 65%; animation-duration: 16s; animation-delay: -9s;   opacity: 0.55; }
.speed-line:nth-child(12) { top: 89%;  width: 25%; animation-duration: 40s; animation-delay: -20s;  opacity: 0.25; }

@keyframes speedline {
  0%   { transform: translateX(0); }
  100% { transform: translateX(200%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) 2rem var(--space-xl);
  color: var(--vw-white);
}

.hero-eyebrow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease both;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(244, 240, 235, 0.12);
  border: 1px solid rgba(244, 240, 235, 0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vw-beige);
}

.badge--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-title em {
  font-style: normal;
  color: var(--vw-beige);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--vw-beige);
  color: var(--vw-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.hero-cta:hover {
  background: #FFF8F2;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 240, 235, 0.2);
}

.hero-cta:hover svg {
  transform: translateY(3px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

/* ============================================
   Context Section
   ============================================ */

.context {
  padding: var(--space-xl) 2rem;
  background: var(--vw-cream);
}

.context-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.context-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vw-beige);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E8E8E8;
}

.context-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: 5rem;
  align-items: start;
}

.context-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--vw-dark);
  margin-bottom: 1.5rem;
}

.context-body {
  font-size: 1rem;
  color: var(--vw-gray-mid);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 1rem;
}

.context-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 3rem;
  border-left: 2px solid var(--vw-beige);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--vw-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vw-gray);
}

/* ============================================
   How It Works
   ============================================ */

.how {
  padding: var(--space-xl) 2rem;
  background: var(--vw-dark);
  color: var(--vw-white);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how .context-label {
  color: var(--vw-beige);
  border-color: rgba(255, 255, 255, 0.08);
}

.how-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4rem;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.step-divider {
  width: 1px;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
  margin-top: 1rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(244, 240, 235, 0.15);
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--vw-white);
}

.step-content p {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
}

.how-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 3.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--vw-beige);
  color: var(--vw-dark);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.how-cta:hover { opacity: 0.85; }

.how-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.how-cta:hover svg { transform: translateX(3px); }

/* ============================================
   Benefits Section
   ============================================ */

.benefits {
  padding: var(--space-xl) 2rem;
  background: var(--vw-white);
  color: var(--vw-black);
}

.benefits-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.benefits .context-label {
  color: var(--vw-blue);
  border-color: rgba(0,30,80,0.12);
}

.benefits-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vw-black);
  margin-bottom: 3.5rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.benefit-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.benefit-body {
  font-size: 0.95rem;
  color: var(--vw-gray-mid);
  line-height: 1.7;
}

.benefit-body strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vw-black);
  margin-bottom: 0.3rem;
}

/* ============================================
   Prototypes Section
   ============================================ */

.prototypes {
  padding: var(--space-xl) 2rem var(--space-2xl);
  background: var(--vw-cream);
}

.prototypes-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.prototypes-header {
  margin-bottom: 3rem;
}

.prototypes .context-label,
.context .context-label {
  color: var(--vw-blue);
  border-color: rgba(0,0,0,0.08);
}

.prototypes-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vw-dark);
}

.prototype-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---- Card Base ---- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--vw-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.card-bg {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card--mobile .card-bg {
  background: var(--vw-dark);
}

.card--desktop .card-bg {
  background: var(--vw-dark-2);
}

/* Yellow accent stripe at top of card bg */
.card-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--vw-beige);
}

/* ---- Device Mockups ---- */

.card-device--phone {
  width: 100px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 12px 8px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: perspective(600px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

.card:hover .card-device--phone {
  transform: perspective(600px) rotateY(-4deg) rotateX(2deg) translateY(-8px);
}

.card-device--desktop {
  width: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.5);
  transform: perspective(800px) rotateX(6deg);
  transition: transform 0.4s ease;
}

.card:hover .card-device--desktop {
  transform: perspective(800px) rotateX(3deg) translateY(-8px);
}

.device-bar {
  height: 24px;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.device-dots {
  display: flex;
  gap: 5px;
}

.device-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.device-screen {
  background: rgba(255,255,255,0.03);
  flex: 1;
  padding: 10px 8px;
  min-height: 120px;
}

.device-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.device-content--wide { gap: 8px; }

.device-line {
  height: 5px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}

.device-line--short  { width: 60%; }
.device-line--medium { width: 80%; }

.device-chip {
  height: 22px;
  width: 70%;
  background: rgba(244, 240, 235, 0.18);
  border-radius: 2px;
  margin-top: 4px;
}

.device-chip--wide { width: 85%; }

.device-banner {
  height: 36px;
  background: linear-gradient(90deg, rgba(255,209,0,0.2), rgba(255,209,0,0.08));
  border-radius: 2px;
  margin-bottom: 4px;
}

/* ---- Card Body ---- */

.card-body {
  padding: 2rem 2rem 2.25rem;
  flex: 1;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vw-gray);
  margin-bottom: 0.6rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vw-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.card-description {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--vw-gray-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vw-dark);
  padding: 0.7rem 1.25rem;
  background: var(--vw-beige);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.card:hover .card-cta {
  background: #FFF8F2;
}

.card:hover .card-cta svg {
  transform: translateX(4px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--vw-dark);
  padding: 3rem 2rem;
  border-top: 3px solid var(--vw-beige);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-logo {
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 0.5rem;
}

.footer-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-text strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .context-grid {
    grid-template-columns: 1fr;
  }

  .context-stats {
    flex-direction: row;
    border-left: none;
    border-top: 2px solid var(--vw-beige);
    padding-left: 0;
    padding-top: 2rem;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .step-divider {
    width: 100%;
    height: 1px;
    min-height: unset;
  }

  .prototype-cards {
    grid-template-columns: 1fr;
  }
}

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

  .hero-content {
    padding: var(--space-xl) 1.25rem var(--space-lg);
  }

  .context, .how, .prototypes {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
