@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Colors - Stripe inspired with teal brand */
  --primary: #0891b2;
  --primary-light: #22d3ee;
  --primary-dark: #0e7490;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
  --gradient-mesh: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(8, 145, 178, 0.3), transparent),
                   radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 211, 238, 0.2), transparent),
                   radial-gradient(ellipse 50% 30% at 0% 100%, rgba(6, 182, 212, 0.15), transparent);
  --gradient-mesh-dark: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 211, 238, 0.15), transparent),
                        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(8, 145, 178, 0.12), transparent),
                        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(6, 182, 212, 0.1), transparent);
  
  --bg-light: #ffffff;
  --bg-dark: #0a0a0f;
  --bg-secondary-light: #f8fafc;
  --bg-secondary-dark: #111118;
  
  --fg-light: #0f172a;
  --fg-dark: #f8fafc;
  --fg-muted-light: #64748b;
  --fg-muted-dark: #94a3b8;
  
  --card-light: #ffffff;
  --card-dark: rgba(255, 255, 255, 0.03);
  --card-border-light: rgba(0, 0, 0, 0.06);
  --card-border-dark: rgba(255, 255, 255, 0.08);
  
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);
  
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  --spacing-4xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--fg-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--fg-dark);
}

/* Typography - Stripe-like bold headlines */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

body.dark a {
  color: var(--primary-light);
}

body.dark a:hover {
  color: var(--primary);
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

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

/* Buttons - Stripe style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.5);
}

body.dark .btn-primary {
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--fg-light);
  border: 1.5px solid var(--border-light);
}

body.dark .btn-secondary {
  color: var(--fg-dark);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary-light);
  border-color: var(--primary);
  color: var(--primary);
}

body.dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: rgba(8, 145, 178, 0.08);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Cards - Glass morphism Stripe style */
.card {
  background-color: var(--card-light);
  border: 1px solid var(--card-border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.dark .card {
  background-color: var(--card-dark);
  border-color: var(--card-border-dark);
  backdrop-filter: blur(20px);
}

body.dark .card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glass card variant */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.dark .card-glass {
  background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: rgba(8, 145, 178, 0.1);
  color: var(--primary);
  border: 1px solid rgba(8, 145, 178, 0.2);
}

body.dark .badge {
  background-color: rgba(34, 211, 238, 0.1);
  color: var(--primary-light);
  border-color: rgba(34, 211, 238, 0.2);
}

.badge-amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-glow {
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(8, 145, 178, 0.2); }
}

/* Navigation - Clean Stripe nav */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border-light);
}

body.dark nav {
  background-color: rgba(10, 10, 15, 0.8);
  border-bottom-color: var(--border-dark);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.price-was {
  font-size: 0.85rem;
  text-decoration: line-through;
  opacity: 0.5;
  margin: 0.25rem 0;
  color: var(--fg-light);
}

body.dark .price-was {
  color: var(--fg-dark);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--fg-muted-light);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg-light);
}

body.dark .nav-links a {
  color: var(--fg-muted-dark);
}

body.dark .nav-links a:hover {
  color: var(--fg-dark);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  width: 38px;
  height: 38px;
}

.nav-hamburger:hover {
  background-color: rgba(8, 145, 178, 0.1);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--fg-light);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

body.dark .nav-hamburger span {
  background-color: var(--fg-dark);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: var(--bg-light);
  flex-direction: column;
  padding: var(--spacing-xl) var(--spacing-lg);
  gap: var(--spacing-lg);
  overflow-y: auto;
}

body.dark .nav-mobile-menu {
  background-color: var(--bg-dark);
}

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

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
}

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile-links li {
  border-bottom: 1px solid var(--border-light);
}

body.dark .nav-mobile-links li {
  border-bottom-color: var(--border-dark);
}

.nav-mobile-links a {
  display: block;
  padding: var(--spacing-md) 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-light);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile-links a:hover {
  color: var(--primary);
  padding-left: var(--spacing-sm);
}

body.dark .nav-mobile-links a {
  color: var(--fg-dark);
}

body.dark .nav-mobile-links a:hover {
  color: var(--primary-light);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.nav-mobile-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
}

body.dark .nav-mobile-footer {
  border-top-color: var(--border-dark);
}

.nav-mobile-footer span {
  font-size: 0.875rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-desktop-only {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Footer - Clean minimal */
footer {
  background-color: var(--bg-secondary-light);
  border-top: 1px solid var(--card-border-light);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-4xl);
}

body.dark footer {
  background-color: var(--bg-secondary-dark);
  border-top-color: var(--border-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted-light);
  font-weight: 600;
}

body.dark .footer-section h4 {
  color: var(--fg-muted-dark);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  font-size: 0.9375rem;
  color: var(--fg-light);
  opacity: 0.8;
}

body.dark .footer-section a {
  color: var(--fg-dark);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--primary);
}

body.dark .footer-section a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--card-border-light);
  padding-top: var(--spacing-xl);
  text-align: center;
  color: var(--fg-muted-light);
  font-size: 0.875rem;
}

body.dark .footer-bottom {
  border-top-color: var(--border-dark);
  color: var(--fg-muted-dark);
}

/* Sections */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-alt {
  background-color: var(--bg-secondary-light);
}

body.dark .section-alt {
  background-color: var(--bg-secondary-dark);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Flex */
.flex {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.flex-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-center {
  justify-content: center;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-muted {
  color: var(--fg-muted-light);
}

body.dark .text-muted {
  color: var(--fg-muted-dark);
}

.text-balance {
  text-wrap: balance;
}

.max-w-prose {
  max-width: 65ch;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Dark mode toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--card-border-light);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary-light);
  border-color: var(--primary);
}

body.dark .theme-toggle {
  border-color: var(--border-dark);
}

body.dark .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-light);
}
