@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap");

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

:root {
  --color-black: #000;
  --color-white: #fff;
  --color-gray: #f5f5f5;
  --color-beige: #faf8f5;
  --color-secondary-text: #666;
  --color-process-1: #6366f1;
  --color-process-2: #8b5cf6;
  --color-process-3: #ec4899;
  --color-process-4: #f59e0b;
  --max-width: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

code,
.mono {
  font-family: "Fira Code", monospace;
}

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

.page {
  min-height: 100vh;
  background-color: var(--color-white);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(250, 248, 245, 0.35) 2px,
      rgba(250, 248, 245, 0.35) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(250, 248, 245, 0.35) 2px,
      rgba(250, 248, 245, 0.35) 4px
    );
  background-size: 100px 100px;
}

.container {
  width: min(var(--max-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-secondary-text);
  font-weight: 400;
}

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

.nav a {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--color-black);
  color: var(--color-white) !important;
  border-radius: 999px;
  font-weight: 500;
}

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

/* Hero */
.hero {
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(99, 102, 241, 0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(139, 92, 246, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(236, 72, 153, 0.1), transparent),
    linear-gradient(180deg, var(--color-beige) 0%, var(--color-white) 100%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-process-1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.5rem;
}

.hero h1 .gradient {
  background: linear-gradient(
    135deg,
    var(--color-process-1),
    var(--color-process-2),
    var(--color-process-3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-secondary-text);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-black);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-secondary-text);
  margin-top: 0.25rem;
}

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

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

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-process-1);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-secondary-text);
  max-width: 60ch;
  font-size: 1.0625rem;
}

/* Pipeline */
.pipeline-section {
  background: var(--color-black);
  color: var(--color-white);
}

.pipeline-section .section-label {
  color: var(--color-process-4);
}

.pipeline-section .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-process-1),
    var(--color-process-2),
    var(--color-process-3),
    var(--color-process-4)
  );
  opacity: 0.4;
  z-index: 0;
}

.pipeline-step {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.3s ease, background 0.3s ease;
}

.pipeline-step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.pipeline-step:nth-child(1) {
  --accent: var(--color-process-1);
}
.pipeline-step:nth-child(2) {
  --accent: var(--color-process-2);
}
.pipeline-step:nth-child(3) {
  --accent: var(--color-process-3);
}
.pipeline-step:nth-child(4) {
  --accent: var(--color-process-4);
}

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

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

.step-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.step-tag {
  font-family: "Fira Code", monospace;
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}

/* SDK */
.sdk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sdk-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--color-gray);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.sdk-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.sdk-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.sdk-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.sdk-card p {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  margin-bottom: 1rem;
}

.sdk-runtime {
  font-family: "Fira Code", monospace;
  font-size: 0.6875rem;
  color: var(--color-process-1);
}

.sdk-banner {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.08)
  );
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sdk-banner code {
  font-size: 0.8125rem;
  color: var(--color-secondary-text);
}

.sdk-banner strong {
  display: block;
  margin-bottom: 0.35rem;
}

/* Models catalogue */
.models-section {
  background: var(--color-beige);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.model-card {
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.model-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.model-card.hidden {
  display: none;
}

.model-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.model-name {
  font-weight: 600;
  font-size: 1rem;
}

.model-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-vision {
  background: rgba(99, 102, 241, 0.12);
  color: var(--color-process-1);
}
.badge-audio {
  background: rgba(236, 72, 153, 0.12);
  color: var(--color-process-3);
}
.badge-sensor {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.model-desc {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  margin-bottom: 1rem;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.model-meta span {
  font-family: "Fira Code", monospace;
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  background: var(--color-gray);
  border-radius: 6px;
  color: var(--color-secondary-text);
}

/* Use cases */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.usecase-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--color-white);
}

.usecase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.usecase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}

.usecase-drones::before {
  background: linear-gradient(135deg, #1e1b4b, #6366f1);
}
.usecase-wildlife::before {
  background: linear-gradient(135deg, #14532d, #22c55e);
}
.usecase-environment::before {
  background: linear-gradient(135deg, #0c4a6e, #06b6d4);
}

.usecase-content {
  position: relative;
  z-index: 2;
}

.usecase-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.usecase-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.usecase-card p {
  font-size: 0.875rem;
  opacity: 0.85;
  line-height: 1.55;
}

.usecase-models {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.usecase-models span {
  font-size: 0.6875rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* CTA */
.cta-section {
  padding-bottom: 6rem;
}

.cta-card {
  padding: 3.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2), transparent 50%);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 48ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-light {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
}

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

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

.footer-links a:hover {
  color: var(--color-black);
}

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

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

/* Responsive */
@media (max-width: 960px) {
  .hero-stats,
  .pipeline,
  .sdk-grid,
  .models-grid,
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline::before {
    display: none;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-stats,
  .pipeline,
  .sdk-grid,
  .models-grid,
  .usecases-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 7rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }
}
