/* Design System & Custom Properties */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  
  --secondary: #a855f7; /* Purple */
  --secondary-hover: #9333ea;
  
  --accent: #f43f5e; /* Rose */
  --success: #10b981; /* Emerald */
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 13, 22, 0.8);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-box svg {
  color: #fff;
  transform: rotate(-15deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Footer Section */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: rgba(5, 8, 15, 0.9);
  padding: 48px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-links-group h4 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-group a {
  color: var(--text-secondary);
}

.footer-links-group a:hover {
  color: var(--text-primary);
  padding-left: 2px;
}

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

.paddle-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.4;
}

/* Hero Section (Index Page) */
.hero {
  padding: 96px 0 64px 0;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Feature Mockup Preview */
.mockup-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
              0 0 80px rgba(99, 102, 241, 0.1);
}

.mockup-header {
  height: 36px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

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

.mockup-body {
  padding: 24px;
  background: #0d1222;
  border-radius: 0 0 12px 12px;
  display: flex;
  justify-content: center;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

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

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 
              0 0 30px rgba(99, 102, 241, 0.05);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing Page & Cards */
.pricing-section {
  padding: 64px 0 96px 0;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 56px;
}

.pricing-intro h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pricing-intro p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 80px auto;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1;
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 
              0 0 50px rgba(99, 102, 241, 0.05);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  height: 40px;
}

.plan-price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 32px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  align-self: flex-start;
  margin-top: 4px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.pricing-btn {
  width: 100%;
  margin-bottom: 32px;
}

.plan-features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features-list svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.plan-features-list li.disabled svg {
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
  padding: 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

/* Legal Templates (Terms & Privacy) */
.legal-layout {
  padding: 64px 0 96px 0;
}

.legal-header {
  margin-bottom: 48px;
  text-align: center;
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.legal-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
}

.legal-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 16px;
}

.legal-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  max-width: 820px;
}

.legal-body section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-body section:last-child {
  margin-bottom: 0;
}

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-body ul, 
.legal-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-body li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.legal-body strong {
  color: var(--text-primary);
}

/* Glass card option view wrapper for interactive demo on Landing */
.options-preview-card {
  width: 100%;
  max-width: 460px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.options-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.options-preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-radius: 6px;
}

.options-preview-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.demo-input-group {
  margin-bottom: 16px;
}

.demo-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.demo-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: white;
  outline: none;
}

.demo-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-top: 16px;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .legal-content-wrap {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p.lead {
    font-size: 1.1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nav-links {
    display: none; /* simple mobile hide for static simplicity */
  }
  .legal-body {
    padding: 24px;
  }
  .pricing-intro h1 {
    font-size: 2.25rem;
  }
}
