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

:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f5;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
}

:root[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #141414;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --border: #1a1a1a;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --card-bg: #0a0a0a;
  --card-border: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo svg {
  color: var(--text-primary);
}

.logo-text {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: rgba(239, 240, 240, 0.25);
  border: 0.5px solid rgba(239, 240, 240, 0.8);
  border-radius: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: rgba(239, 240, 240, 0.35);
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="light"] .sun-icon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
}

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero .gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.cta-button.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.cta-button.secondary:hover {
  background: var(--bg-tertiary);
  box-shadow: none;
}

/* Products Grid */
.products-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.product-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.product-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Product Detail Page */
.product-detail {
  padding: 80px 0;
}

.product-hero {
  text-align: center;
  margin-bottom: 80px;
}

.product-hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.product-hero .lead {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.product-screenshot {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 40px;
}

.product-screenshot svg {
  width: 100%;
  height: auto;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 80px;
}

.feature-item {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Pricing */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.billing-option {
  padding: 12px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-option:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.billing-option.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.discount-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 4px;
  font-weight: 700;
}

.billing-option.active .discount-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pricing-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card-new {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card-new.featured {
  border-color: var(--accent);
  border-width: 2px;
}

.pricing-card-new.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card-new:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.pricing-card-new h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-wrapper {
  margin-bottom: 32px;
}

.price {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text-primary);
}

.price-currency {
  font-size: 24px;
}

.price-amount {
  font-size: 24px;
  line-height: 1;
}

.price-period {
  font-size: 24px;
  font-weight: 700;
}

.price-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 8px;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

.savings {
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.pricing-card-new .features {
  flex-grow: 1;
  margin-bottom: 32px;
}

.pricing-card-new .cta-button {
  width: 100%;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  border-width: 2px;
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.features {
  list-style: none;
  margin: 32px 0;
  text-align: left;
}

.features li {
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* Lookup Form */
.lookup-section {
  max-width: 540px;
  margin: 80px auto;
  padding: 48px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-primary);
}

.result-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.result-box.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.result-box.error {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.result-box h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.result-box p {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 120px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Responsive */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 80px 0 60px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid-new {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-new.featured {
    transform: scale(1);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-content {
    height: 64px;
  }
  
  .logo {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .product-card {
    padding: 24px;
  }
  
  .lookup-section {
    padding: 32px 24px;
  }
}
