:root {
  --primary-bg: #0b1020;
  --secondary-bg: #0f1630;
  --tertiary-bg: #1b2340;
  --accent-bg: #2a3450;
  --primary-color: #5661f6;
  --primary-hover: #4c56e6;
  --accent-cyan: #00d4ff;
  --text-primary: #e7eaf1;
  --text-secondary: #8aa2ff;
  --text-muted: #6b7280;
  --border-color: #1b2340;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --premium-color: #fbbf24;
  --premium-hover: #fcd34d;
  --premium-dark: #d97706;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #0d1425 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowDriftBlue {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(60px, 40px) scale(1.06); opacity: 1; }
  100% { transform: translate(30px, 80px) scale(0.96); opacity: 0.9; }
}

@keyframes glowDriftPurple {
  0% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  50% { transform: translate(-50px, -40px) scale(1.08); opacity: 0.95; }
  100% { transform: translate(-80px, -20px) scale(0.94); opacity: 0.82; }
}

@keyframes premiumShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow,
  .card,
  .feature-card,
  .plan-card {
    animation: none !important;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 22, 48, 0.92);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.site-header:hover {
  background: rgba(15, 22, 48, 0.98);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-link img {
  width: 32px;
  height: 32px;
}

.logo-link strong {
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active {
  color: var(--text-primary);
  background: var(--tertiary-bg);
}

.site-nav .btn-primary {
  color: #fff;
  margin-left: 4px;
}

.site-nav .btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-premium {
  background: linear-gradient(135deg, var(--premium-color), var(--premium-dark));
  color: #1c1408;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.25);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.35);
  color: #1c1408;
}

/* Layout */
main {
  flex: 1;
}

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

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

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 420px;
  height: 420px;
  background: rgba(86, 97, 246, 0.28);
  top: -120px;
  left: 10%;
  animation: glowDriftBlue 18s ease-in-out infinite alternate;
}

.hero-glow--2 {
  width: 320px;
  height: 320px;
  background: rgba(139, 92, 246, 0.2);
  bottom: -60px;
  right: 10%;
  animation: glowDriftPurple 22s ease-in-out infinite alternate;
}

.hero .container {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.25));
}

.hero-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-badge--free {
  background: rgba(86, 97, 246, 0.12);
  border: 1px solid rgba(86, 97, 246, 0.35);
  color: var(--text-secondary);
}

.hero-badge--premium {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--premium-color);
}

.hero-badge-logo {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.35));
}

.hero-badge--premium i {
  font-size: 0.72rem;
  color: var(--premium-color);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-capabilities {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  max-width: 480px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.hero-capabilities li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a5b4fc;
  font-size: 0.95rem;
}

.hero-capabilities i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.hero-capabilities i.fa-crown {
  color: var(--premium-color);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6, var(--primary-color));
  opacity: 0;
  transition: var(--transition-normal);
}

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

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(86, 97, 246, 0.12);
  color: var(--text-secondary);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.features-footnote {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.features-footnote a {
  color: var(--primary-color);
}

.feature-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 24px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  opacity: 0.6;
}

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

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-card-header i {
  font-size: 1.1rem;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 97, 246, 0.1);
  border-radius: 8px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Plan badges */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-badge--free {
  background: rgba(86, 97, 246, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(86, 97, 246, 0.3);
}

.plan-badge--premium {
  background: rgba(251, 191, 36, 0.12);
  color: var(--premium-color);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Premium section */
.premium-section {
  position: relative;
}

.premium-intro {
  background: var(--secondary-bg);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.premium-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-color), var(--premium-dark), var(--premium-color));
}

.premium-intro h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--premium-color);
  font-size: 1.2rem;
}

.premium-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.premium-notice {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--tertiary-bg);
  border-left: 3px solid var(--warning-color);
  color: #d1d5db;
  font-size: 0.9rem;
}

.premium-notice a {
  color: var(--text-secondary);
}

/* Comparison table */
.comparison-wrap {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th {
  background: var(--tertiary-bg);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.comparison-table thead th.premium-col {
  color: var(--premium-color);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: rgba(86, 97, 246, 0.04);
}

.comparison-table td:nth-child(2) {
  color: var(--text-muted);
}

.comparison-table td:nth-child(3) {
  color: var(--premium-color);
  font-weight: 500;
}

.comparison-table .feature-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* Plan cards */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.plan-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.plan-card--premium {
  border-color: rgba(251, 191, 36, 0.3);
}

.plan-card--premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-color), var(--premium-dark));
}

.plan-card--premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(251, 191, 36, 0.04));
  pointer-events: none;
}

.plan-card h3 {
  margin: 12px 0 8px;
  font-size: 1.4rem;
}

.plan-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 16px 0;
}

.plan-card .plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan-card--premium .plan-price {
  color: var(--premium-color);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #d1d5db;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(27, 35, 64, 0.6);
}

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

.plan-features i {
  margin-top: 3px;
  flex-shrink: 0;
}

.plan-features i.fa-check {
  color: var(--success-color);
}

.plan-features i.fa-crown {
  color: var(--premium-color);
}

/* Section headings */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, #0d1228 0%, #121a38 40%, var(--secondary-bg) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(86, 97, 246, 0.15);
  border-radius: 50%;
  filter: blur(80px);
  top: -100px;
  left: 20%;
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Legal pages */
.legal-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  margin: 48px 0 72px;
  box-shadow: var(--shadow-lg);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 32px;
}

.legal-card h2 {
  margin: 36px 0 16px;
  font-size: 1.4rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.legal-card h3 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.legal-card p,
.legal-card li {
  color: #d1d5db;
}

.legal-card ul,
.legal-card ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-card li {
  margin-bottom: 8px;
}

.highlight {
  background: var(--tertiary-bg);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin: 20px 0;
}

.highlight--warning {
  border-left-color: var(--warning-color);
}

/* About page */
.about-hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 48px;
}

.about-hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.25));
}

.about-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.about-hero-lead {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: about-step;
}

.about-step {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
}

.about-step::before {
  counter-increment: about-step;
  content: counter(about-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.about-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.about-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-steps {
    grid-template-columns: 1fr;
  }

  .site-nav .nav-hide-mobile {
    display: none;
  }

  .legal-card {
    padding: 24px;
  }

  .comparison-wrap {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 520px;
  }

  .hero-capabilities {
    max-width: 100%;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 24px;
  background: rgba(11, 16, 32, 0.6);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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