/* ===== Custom Properties ===== */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F7F5;
  --color-bg-accent: #EFF7F9;
  --color-text: #1A1A1A;
  --color-text-muted: #6B7280;
  --color-accent: #2D7A8C;
  --color-accent-hover: #245F6D;
  --color-border: #E5E7EB;
  --color-footer-bg: #1A1A1A;
  --color-footer-text: #D1D5DB;
  --nav-height: 72px;
  --section-padding: clamp(4rem, 8vw, 8rem);
  --content-max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--accent {
  background: var(--color-bg-accent);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--color-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-wordmark {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  background: var(--color-bg-alt);
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 0.8s ease both;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  background: #E5E7EB;
  aspect-ratio: 16/9;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  animation: bounce 2s infinite;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ===== Product Overview ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.product-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #E5E7EB;
  aspect-ratio: 1;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-bg-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.product-tagline {
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.food-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.food-pill {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--color-bg-accent);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.step-image {
  border-radius: 12px;
  overflow: hidden;
  background: #E5E7EB;
  aspect-ratio: 3/2;
  margin-bottom: 1.25rem;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Fleet Learning Callout */
.callout {
  background: var(--color-bg-accent);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  margin: 0 auto;
}

.callout-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.callout-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.callout-text:last-child {
  margin-bottom: 0;
}

/* Fleet Learning Diagram */
.fleet-diagram {
  margin: 2rem auto 1.5rem;
  max-width: 520px;
}

.fleet-diagram-svg {
  width: 100%;
  height: auto;
}

.callout-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 1rem;
}

.callout-privacy svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Signup ===== */
.signup-section {
  text-align: center;
}

.signup-form-container {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.signup-form-container iframe {
  border: none;
  width: 100%;
  min-height: 400px;
}

.signup-fallback {
  margin-top: 1rem;
}

.signup-fallback a {
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-wordmark {
  font-size: 1.1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-footer-text);
}

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

.footer-links a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact-label {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-contact a {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-disclaimer {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .food-items {
    gap: 0.4rem;
  }

  .food-pill {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }
}
