/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --flux-50: #ECFEFF;
  --flux-100: #CFFAFE;
  --flux-200: #A5F3FC;
  --flux-300: #67E8F9;
  --flux-400: #22D3EE;
  --flux-500: #06B6D4;
  --flux-600: #0891B2;
  --flux-700: #0E7490;
  --flux-800: #155E75;
  --flux-900: #164E63;
  --flux-950: #083344;

  --ai-300: #D8B4FE;
  --ai-400: #C084FC;
  --ai-500: #A855F7;
  --ai-600: #9333EA;
  --ai-700: #7C3AED;
  --ai-800: #6B21A8;
  --ai-900: #581C87;
  --ai-950: #2E1065;

  --surface: #0A0A0B;
  --elevated: #141416;
  --muted: #1C1C1F;
  --border: #27272A;
  --border-light: #3F3F46;

  --text-primary: #F8FAFC;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--muted);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--flux-300) 0%, var(--flux-400) 30%, var(--flux-500) 60%, var(--flux-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ai {
  background: linear-gradient(135deg, var(--ai-400) 0%, var(--ai-500) 50%, var(--ai-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-flux {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.glow-ai {
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-10px) translateX(-50%); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out 2s infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo span {
  font-size: 20px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  margin-right: 12px;
  transition: color 0.2s;
}

.nav-hamburger:hover {
  color: var(--flux-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--flux-600);
  color: white;
}

.btn-primary:hover {
  background: var(--flux-500);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(46, 16, 101, 0.5);
  border: 1px solid rgba(107, 33, 168, 0.5);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ai-500);
}

.hero-badge span {
  font-size: 14px;
  color: var(--ai-300);
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-cta .btn-primary {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.hero-cta .btn-primary:hover {
  transform: scale(1.05);
}

/* Hero Preview */
.hero-preview {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-preview-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 20px;
  filter: blur(24px);
}

.hero-preview-window {
  position: relative;
  background: var(--elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dot-red { background: rgba(239, 68, 68, 0.8); }
.browser-dot-yellow { background: rgba(234, 179, 8, 0.8); }
.browser-dot-green { background: rgba(34, 197, 94, 0.8); }

.browser-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.browser-url span {
  padding: 4px 16px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-tertiary);
}

.preview-content {
  padding: 16px;
}

.preview-columns {
  display: flex;
  gap: 12px;
}

.preview-column {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  min-height: 140px;
}

.preview-column-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 8px;
}

.preview-column-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.preview-card {
  background: var(--elevated);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.preview-card-ai {
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.preview-card-title {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.preview-card-agent {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.preview-card-agent svg {
  width: 12px;
  height: 12px;
  color: var(--ai-400);
}

.preview-card-agent span {
  font-size: 10px;
  color: var(--ai-400);
}

.col-backlog { background: rgba(24, 24, 27, 0.5); }
.col-ai { background: rgba(46, 16, 101, 0.3); }
.col-env { background: rgba(5, 46, 22, 0.3); }
.col-merged { background: rgba(30, 27, 75, 0.3); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-tertiary);
}

/* Logos Section */
.logos {
  padding: 64px 0;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
  background: rgba(20, 20, 22, 0.3);
}

.logos-title {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0.5;
}

.logos-grid span {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Features Section */
.features {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 24px;
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon-ai { background: var(--ai-950); }
.feature-icon-ai svg { color: var(--ai-400); }

.feature-icon-flux { background: var(--flux-950); }
.feature-icon-flux svg { color: var(--flux-400); }

.feature-icon-emerald { background: #052E16; }
.feature-icon-emerald svg { color: #34D399; }

.feature-icon-indigo { background: #1E1B4B; }
.feature-icon-indigo svg { color: #818CF8; }

.feature-icon-amber { background: #451A03; }
.feature-icon-amber svg { color: #FBBF24; }

.feature-icon-rose { background: #4C0519; }
.feature-icon-rose svg { color: #FB7185; }

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 15px;
}

/* How it Works */
.how-it-works {
  padding: 96px 0;
  background: rgba(20, 20, 22, 0.3);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding-left: 32px;
  padding-top: 32px;
}

.step-number {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.step-number-1 {
  background: var(--flux-600);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}
.step-number-2 {
  background: var(--ai-600);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}
.step-number-3 {
  background: #059669;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.3);
}

.step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.step-preview {
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 16px;
}

.step-preview-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.step-preview-text {
  font-size: 12px;
  color: var(--text-tertiary);
}

.step-preview-ai {
  border-color: rgba(168, 85, 247, 0.3);
}

.step-preview-ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-preview-ai-status svg {
  width: 16px;
  height: 16px;
  color: var(--ai-400);
}

.step-preview-ai-status span {
  font-size: 14px;
  color: var(--ai-300);
}

.step-preview-env {
  border-color: rgba(16, 185, 129, 0.3);
}

.step-preview-env-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-preview-env-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.step-preview-env-status span {
  font-size: 14px;
  color: #34D399;
}

/* Pricing */
.pricing {
  padding: 96px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 32px;
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.pricing-card-featured {
  position: relative;
  background: linear-gradient(to bottom, rgba(8, 51, 68, 0.5), var(--elevated));
  border-color: rgba(14, 116, 144, 0.5);
  box-shadow: 0 0 80px rgba(6, 182, 212, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--flux-600);
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
}

.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 24px;
}

.pricing-price-value {
  font-size: 40px;
  font-weight: 700;
}

.pricing-price-period {
  color: var(--text-tertiary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--flux-500);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  padding: 12px;
}

/* CTA Section */
.cta-section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-buttons .btn-primary {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.cta-link {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.cta-link:hover {
  color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand span {
  font-size: 18px;
  font-weight: 700;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 280px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--text-primary);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
  }

  .nav-links.nav-links-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .preview-columns {
    flex-wrap: wrap;
  }

  .preview-column {
    min-width: calc(50% - 6px);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
