/* =========================================================================
   VARIABLES & BASE STYLES
   ========================================================================= */
:root {
  /* Color Palette */
  --bg-dark: #07090f;
  --bg-surface: #10141e;
  --bg-card: #151a26;
  --bg-card-hover: #1a2030;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  --gradient-text: linear-gradient(135deg, var(--text-primary), #a5b4fc);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --nav-height: 80px;
  
  /* Animations */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* =========================================================================
   TYPOGRAPHY UTILS
   ========================================================================= */
h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1.5rem);
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.btn-white {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-large {
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1.5rem);
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

.link-btn {
  font-weight: 600;
  color: var(--text-secondary);
}

.link-btn:hover {
  color: var(--text-primary);
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-fast), border-bottom var(--transition-fast);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

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

/* =========================================================================
   HERO SECTION
   ========================================================================= */
#hero {
  padding: calc(var(--nav-height) + 6rem) 0 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Background Gradients */
#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, var(--bg-dark) 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 100%;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(6,182,212,0.05) 0%, var(--bg-dark) 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 100%;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
  justify-content: center;
}

/* Abstract UI Card */
.abstract-ui-card {
  width: 100%;
  max-width: 720px;
  height: 380px;
  background: rgba(21, 26, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.abstract-ui-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.abstract-ui-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.abstract-ui-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.abstract-ui-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.abstract-search {
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.abstract-skeleton {
  height: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  width: 80%;
}

.abstract-skeleton.short {
  width: 60%;
}

.abstract-ui-footer {
  padding: 1.5rem;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.floating-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* =========================================================================
   TRUSTED LOGOS
   ========================================================================= */
.trusted {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.trusted-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-row span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.logo-row span:hover {
  color: var(--text-secondary);
}

/* =========================================================================
   FEATURES SECTION (CSS GRID)
   ========================================================================= */
.features {
  padding: 8rem 0;
  position: relative;
}

.features-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
}

.features-subtitle {
  max-width: 400px;
}

.features-subtitle p {
  margin: 0;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-card.solid {
  background: var(--bg-card);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.icon-wrapper.purple { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.icon-wrapper.blue { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.icon-wrapper.pink { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; }
.icon-wrapper.cyan { background: rgba(6, 182, 212, 0.15); color: #a5f3fc; }

.card-visual {
  margin-top: auto;
  min-height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.visual-bar {
  background: linear-gradient(90deg, rgba(139,92,246,0.1), rgba(139,92,246,0.8));
  height: 40px;
  width: 100%;
}

.visual-chart {
  width: 100%;
  height: 60%;
}

.bar {
  flex: 1;
  background: var(--accent-blue);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}

.h-30 { height: 30%; }
.h-60 { height: 60%; }
.h-40 { height: 40%; }
.h-90 { height: 90%; }
.h-70 { height: 70%; }

.solid-box {
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================================================
   WORKFLOW SECTION
   ========================================================================= */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.workflow {
  padding: 8rem 0;
  background: #090c14;
}

.workflow-content {
  flex: 1;
}

.workflow-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workflow-item {
  display: flex;
  gap: 1.5rem;
}

.workflow-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.workflow-item p {
  font-size: 0.95rem;
  margin: 0;
}

.workflow-visual {
  flex: 1;
}

.dashboard-mockup {
  width: 100%;
  min-width: 500px;
  aspect-ratio: 12/11;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 2fr 1fr;
  gap: 1rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dash-screen {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.dash-screen.top {
  grid-column: span 2;
}

.floating-tooltip {
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  background: #1e293b;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* =========================================================================
   PRICING SECTION
   ========================================================================= */
.pricing {
  padding: 8rem 0;
}

.pricing-cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.price-card {
  flex: 1;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: left;
  transition: transform var(--transition-fast);
  position: relative;
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card h4 {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.price {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
}

.price span {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 0.25rem;
}

.features-list {
  margin-bottom: 3rem;
}

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: '✓';
  color: var(--accent-purple);
  margin-right: 0.75rem;
  font-weight: bold;
}

.features-list li.muted {
  opacity: 0.5;
}

.features-list li.muted::before {
  color: var(--text-muted);
}

.price-card.featured {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(139,92,246,0.05) 100%);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 4rem 2.5rem;
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* =========================================================================
   TESTIMONIALS SECTION
   ========================================================================= */
.testimonials {
  padding: 8rem 0;
  background: var(--bg-surface);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: left;
}

.stars {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #334155;
}

.avatar.bg-1 { background: linear-gradient(135deg, #10b981, #047857); }
.avatar.bg-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar.bg-3 { background: linear-gradient(135deg, #f59e0b, #b45309); }

.author-info strong {
  display: block;
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================================================
   CTA SECTION
   ========================================================================= */
.cta {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, rgba(7,9,15,0) 60%);
  z-index: -1;
  pointer-events: none;
}

.cta-container p {
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.btn-text {
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  border-radius: 0;
}

.btn-text:hover {
  border-bottom-color: var(--text-primary);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
#footer {
  background: var(--bg-surface);
  padding: 6rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 250px;
}

.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.link-col h4 {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.link-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.link-col a:hover {
  color: var(--accent-purple);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* =========================================================================
   ANIMATIONS (INTERSECTION OBSERVER)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* =========================================================================
   MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1024px) {
  .hero-container, .split-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .features-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .feature-card.wide {
    grid-column: span 1;
  }

  .feature-card.tall {
    grid-row: 1;
  }

  .workflow-item {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-mockup {
    width: 60vw;
    min-width: 300px;
    aspect-ratio: 12/11;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
    gap: 1rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  
  .pricing-cards {
    flex-direction: column;
    max-width: 80vw;
    margin: 0 auto;
  }
  
  .price-card.featured {
    padding: 3rem 2rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-brand p {
    margin: 1rem auto;
  }
  
  .socials {
    justify-content: center;
  }
}

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

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
