/* CSS Variables - Vercel Design System */
:root {
  --geist-background: #fafafa;
  --geist-foreground: #171717;
  --geist-text: #ededed;
  --geist-text-secondary: #888;
  --geist-border: #eaeaea;
  --geist-border-secondary: #d4d4d4;
  --geist-link: #0070f3;
  --geist-focus: #0070f3;
  --geist-success: #0ea5e9;
  --geist-danger: #ee0000;
  --geist-warning: #f5a623;
  --geist-radius: 12px;
  --geist-radius-sm: 8px;
  --geist-radius-lg: 16px;
  --geist-page-margin: 24px;
  --header-height: 64px;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --geist-max-width: 1200px;
}

/* Dark theme variables */
.dark-theme {
  --geist-background: #000000;
  --geist-foreground: #ededed;
  --geist-text: #ededed;
  --geist-text-secondary: #888;
  --geist-border: #333;
  --geist-border-secondary: #444;
}

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

html {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--geist-background);
  color: var(--geist-foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Header */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  width: 100%;
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}

#header.scrolled {
  background: var(--geist-background);
  box-shadow: 0 1px 0 0 var(--geist-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--geist-max-width);
  margin: 0 auto;
  padding: 0 var(--geist-page-margin);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  padding: 8px;
  margin-left: -8px;
}

.logo svg {
  width: 21px;
  height: 18px;
  color: var(--geist-foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 1;
}

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

.nav-link {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--geist-text-secondary);
  transition: color 0.2s;
  border-radius: var(--geist-radius-sm);
}

.nav-link:hover {
  color: var(--geist-foreground);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--geist-foreground);
  color: var(--geist-background);
  border: none;
  border-radius: var(--geist-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: transparent;
  color: var(--geist-foreground);
  border: 1px solid var(--geist-border);
  border-radius: var(--geist-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--geist-border);
  border-color: var(--geist-border-secondary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: transparent;
  color: var(--geist-text-secondary);
  border: none;
  border-radius: var(--geist-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--geist-foreground);
}

.btn-large {
  padding: 12px 24px;
  font-size: 16px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--geist-foreground);
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px var(--geist-page-margin);
  background: var(--geist-background);
  border-bottom: 1px solid var(--geist-border);
}

.nav-mobile.open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--geist-foreground);
  border-bottom: 1px solid var(--geist-border);
}

.mobile-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

/* Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--geist-foreground);
  border-bottom: 1px solid var(--geist-border);
  flex-wrap: wrap;
}

.banner a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--geist-text-secondary);
  transition: color 0.2s;
}

.banner a:hover {
  color: var(--geist-foreground);
}

.banner a svg {
  transition: transform 0.2s;
}

.banner a:hover svg {
  transform: translateX(2px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px var(--geist-page-margin) 60px;
}

@media (min-width: 768px) {
  .hero {
    padding: 120px var(--geist-page-margin) 80px;
  }
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--geist-foreground) 0%, rgba(23,23,23,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme .hero-title {
  background: linear-gradient(180deg, var(--geist-foreground) 0%, rgba(237,237,237,0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--geist-text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: left;
}

.hero-feature {
  font-size: 14px;
  color: var(--geist-text-secondary);
  line-height: 1.6;
}

.hero-feature strong {
  color: var(--geist-foreground);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Customer Logos Section */
.logos-section {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--geist-border);
  border-bottom: 1px solid var(--geist-border);
}

.logos-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  color: var(--geist-text-secondary);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Features Section */
.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--geist-max-width);
  margin: 0 auto;
  padding: 80px var(--geist-page-margin);
}

.feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
  border: 1px solid var(--geist-border);
  border-radius: var(--geist-radius-lg);
  overflow: hidden;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card-inner {
  padding: 48px;
}

@media (max-width: 768px) {
  .feature-card-inner {
    padding: 32px 24px;
  }
}

.feature-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--geist-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.feature-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-company {
  font-size: 15px;
  color: var(--geist-text-secondary);
  margin-bottom: 24px;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--geist-text-secondary);
  background: var(--geist-background);
  border: 1px solid var(--geist-border);
  border-radius: 9999px;
  white-space: nowrap;
}

.feature-visual {
  border-radius: var(--geist-radius);
  overflow: hidden;
  border: 1px solid var(--geist-border);
  background: var(--geist-background);
}

.feature-visual-placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

/* Code Block Visual */
.code-block {
  background: #1a1a1a;
  border-radius: var(--geist-radius);
  padding: 24px 32px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #ededed;
  width: 100%;
  max-width: 480px;
}

.code-kw { color: #c678dd; }
.code-var { color: #e06c75; }
.code-class { color: #e5c07b; }
.code-str { color: #98c379; }
.code-prop { color: #61afef; }
.code-method { color: #61afef; }

/* Deploy Graph Visual */
.deploy-graph {
  display: flex;
  align-items: center;
  gap: 16px;
}

.deploy-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--geist-background);
  border: 1px solid var(--geist-border);
  border-radius: var(--geist-radius);
  font-size: 14px;
  font-weight: 500;
}

.deploy-node.active {
  border-color: var(--geist-foreground);
  box-shadow: 0 0 0 1px var(--geist-foreground);
}

.deploy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--geist-text-secondary);
}

.deploy-node.active .deploy-dot {
  background: var(--geist-success);
}

.deploy-line {
  width: 40px;
  height: 1px;
  background: var(--geist-border);
}

/* Platform Grid Visual */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 320px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--geist-background);
  border: 1px solid var(--geist-border);
  border-radius: var(--geist-radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--geist-text-secondary);
  transition: border-color 0.2s;
}

.platform-card:hover {
  border-color: var(--geist-border-secondary);
}

.platform-icon {
  font-size: 24px;
}

/* Recently Shipped */
.shipped-section {
  max-width: var(--geist-max-width);
  margin: 0 auto;
  padding: 40px var(--geist-page-margin) 80px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.shipped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.shipped-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--geist-border);
  border-radius: var(--geist-radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateY(20px);
}

.shipped-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s, border-color 0.2s, box-shadow 0.2s;
}

.shipped-card:hover {
  border-color: var(--geist-border-secondary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.shipped-icon {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--geist-foreground);
}

.shipped-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.shipped-card p {
  font-size: 14px;
  color: var(--geist-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.shipped-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--geist-foreground);
  transition: opacity 0.2s;
}

.shipped-card:hover .shipped-link {
  opacity: 0.7;
}

.shipped-link svg {
  transition: transform 0.2s;
}

.shipped-card:hover .shipped-link svg {
  transform: translateX(2px);
}

/* CTA Section */
.cta-section {
  padding: 80px var(--geist-page-margin);
  text-align: center;
  border-top: 1px solid var(--geist-border);
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.cta-inner.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s;
}

.cta-inner h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-inner p {
  font-size: 16px;
  color: var(--geist-text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  border-top: 1px solid var(--geist-border);
  padding: 64px var(--geist-page-margin) 32px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--geist-text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--geist-foreground);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--geist-border);
}

.footer-logo svg {
  width: 18px;
  height: 16px;
  color: var(--geist-foreground);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--geist-text-secondary);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 60px 16px 40px;
  }
  
  .hero-features {
    text-align: left;
  }
  
  .feature-visual-placeholder {
    min-height: 180px;
  }
  
  .deploy-graph {
    flex-direction: column;
    gap: 8px;
  }
  
  .deploy-line {
    width: 1px;
    height: 20px;
  }
  
  .code-block {
    font-size: 12px;
    padding: 16px;
  }
  
  .platform-grid {
    max-width: 240px;
  }
}

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