/*
 * Infraproof Nautical Theme
 * A professional nautical-inspired design system
 * Colors inspired by the deep sea, navigation, and trust
 */

/* ============================================
   CSS Custom Properties (Nautical Palette)
   ============================================ */
:root {
  /* Primary Nautical Colors */
  --navy-900: #0a1628;      /* Deep ocean - darkest */
  --navy-800: #0a2540;      /* Primary brand */
  --navy-700: #0d3251;
  --navy-600: #1e4d6b;      /* Secondary */
  --navy-500: #2d6a8a;
  --navy-400: #4a90b5;
  --navy-300: #7eb8d8;
  --navy-200: #a8d4ed;
  --navy-100: #d4ebf7;
  --navy-50: #f0f7ff;       /* Surface light */

  /* Accent Colors - Sea Foam & Horizon */
  --seafoam-500: #00d4aa;   /* Primary accent */
  --seafoam-400: #20e3bc;
  --seafoam-300: #5eecd0;
  --seafoam-200: #9cf5e4;
  --seafoam-100: #d1fbf1;

  --horizon-500: #4da6ff;   /* Highlight */
  --horizon-400: #70b8ff;
  --horizon-300: #99ccff;
  --horizon-200: #c2e0ff;
  --horizon-100: #e6f2ff;

  /* Warning & Status Colors */
  --coral-500: #ff6b6b;     /* Danger/Error */
  --coral-400: #ff8585;
  --gold-500: #ffc107;      /* Warning */
  --gold-400: #ffcd38;
  --kelp-500: #38a169;      /* Success */
  --kelp-400: #48bb78;

  /* Neutral Colors */
  --slate-900: #1a202c;
  --slate-800: #2d3748;
  --slate-700: #4a5568;
  --slate-600: #718096;
  --slate-500: #a0aec0;
  --slate-400: #cbd5e0;
  --slate-300: #e2e8f0;
  --slate-200: #edf2f7;
  --slate-100: #f7fafc;
  --white: #ffffff;

  /* Semantic Variables */
  --color-primary: var(--navy-800);
  --color-secondary: var(--navy-600);
  --color-accent: var(--seafoam-500);
  --color-highlight: var(--horizon-500);
  --color-surface: var(--navy-50);
  --color-background: var(--white);
  --color-text: var(--navy-800);
  --color-text-light: var(--slate-600);
  --color-text-inverse: var(--white);
  --color-border: var(--slate-300);
  --color-success: var(--kelp-500);
  --color-warning: var(--gold-500);
  --color-error: var(--coral-500);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(10, 37, 64, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 37, 64, 0.1), 0 2px 4px -1px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 64, 0.1), 0 4px 6px -2px rgba(10, 37, 64, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 64, 0.1), 0 10px 10px -5px rgba(10, 37, 64, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(10, 37, 64, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-light);
}

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

a:hover {
  color: var(--color-accent);
}

/* ============================================
   Layout Components
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-lg {
  max-width: 1400px;
}

.container-sm {
  max-width: 800px;
}

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--color-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-links.open {
    transform: translateX(0);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--seafoam-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 212, 170, 0.4);
  color: var(--navy-900);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--slate-100);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 166, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-24) var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--seafoam-300);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--seafoam-400), var(--horizon-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--slate-300);
  margin-bottom: var(--space-10);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Wave decoration */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ============================================
   Feature Cards
   ============================================ */
.features {
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-100), var(--horizon-100));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-description {
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  background: var(--color-primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item {
  padding: var(--space-6);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--slate-300);
}

/* ============================================
   How It Works
   ============================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
}

.process-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.process-description {
  color: var(--color-text-light);
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
  transition: all var(--transition-base);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: var(--navy-900);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.pricing-name {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-primary);
}

.pricing-price .currency {
  font-size: var(--text-2xl);
  vertical-align: super;
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--slate-200);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features .check {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--color-surface);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--navy-200);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  text-align: center;
}

.cta-title {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-xl);
  color: var(--slate-300);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  color: var(--slate-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  color: var(--slate-400);
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--slate-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--navy-900);
}

.footer-column h4 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--slate-400);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

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

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 40px rgba(0, 212, 170, 0.3); }
  50% { box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 212, 170, 0.5); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Pricing Grid Responsive
   ============================================ */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-card.featured {
    order: -1;
  }

  .billing-toggle {
    flex-wrap: wrap;
    gap: var(--space-2) !important;
  }

  .save-badge {
    order: 1;
    width: 100%;
    text-align: center;
    margin-top: var(--space-2);
  }
}

/* Toggle Switch Styling */
.toggle-switch input:checked + .toggle-slider {
  background: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider span {
  transform: translateX(28px);
}

.toggle-slider span {
  transition: transform 0.3s ease;
}
