:root {
  --bg: #030712;
  --surface: #0b0f1a;
  --surface-hover: #161c2d;
  --text: #f9fafb;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.15);
  --accent: #059669;
  --accent-glow: rgba(5, 150, 105, 0.1);
  --border: rgba(0, 0, 0, 0.06);
  --glass: rgba(0, 0, 0, 0.01);
  --glass-border: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Typography --- */
.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Layout --- */
.section {
  padding: 8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
  background-color: var(--surface);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* --- Mobile Menu --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--surface);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem;
  gap: 2rem;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

/* --- Buttons --- */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px var(--primary-glow);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background-color: var(--surface-hover);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -2;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background-color: var(--primary);
  top: -100px;
  left: -100px;
  animation: move-1 20s infinite alternate;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background-color: var(--accent);
  bottom: -50px;
  right: -50px;
  animation: move-2 25s infinite alternate;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background-color: #8b5cf6;
  top: 40%;
  right: 10%;
  animation: move-3 15s infinite alternate;
}

@keyframes move-1 { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 100px); } }
@keyframes move-2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-100px, -50px); } }
@keyframes move-3 { 0% { transform: translate(0, 0); } 100% { transform: translate(-50px, 100px); } }

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 3.5rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-div {
  width: 1px;
  height: 40px;
  background-color: var(--border);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-top: 4rem;
}

.browser-mockup {
  background-color: #1e1e1e;
  border-radius: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.browser-bar {
  padding: 0.75rem 1.25rem;
  background-color: #2d2d2d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background-color: #ff5f57; }
.dot.y { background-color: #febc2e; }
.dot.g { background-color: #28c840; }

.browser-url {
  background-color: #1e1e1e;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #888;
  flex: 1;
  margin: 0 2rem;
  text-align: center;
}

.browser-mockup img {
  width: 100%;
  display: block;
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.fc-icon {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fc-1 { top: 20%; left: -5%; animation: float 6s infinite ease-in-out; }
.fc-2 { bottom: 10%; left: -2%; animation: float 6s infinite ease-in-out 1s; }
.fc-3 { top: 30%; right: -5%; animation: float 6s infinite ease-in-out 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
}

.feat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: var(--surface-hover);
}

.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.feat-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feat-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* --- Module Row --- */
.module-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.module-row.reverse {
  flex-direction: row-reverse;
}

.module-info {
  flex: 1;
}

.module-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.module-info h3 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.module-info p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.module-points {
  list-style: none;
}

.module-points li {
  margin-bottom: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.module-screen {
  flex: 1.2;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.4);
}

.module-screen img {
  width: 100%;
  display: block;
}

/* --- Theme Showcase --- */
.theme-compare {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 4rem;
}

.theme-side {
  flex: 1;
  text-align: center;
}

.theme-label {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.theme-preview {
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 500px;
  display: flex;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
}

.mock-sidebar {
  width: 100px;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-sidebar.dark { background: #0f172a; border-right: 1px solid rgba(255,255,255,0.05); }
.mock-sidebar.light { background: #ffffff; border-right: 1px solid rgba(0,0,0,0.05); }

.mock-logo { font-size: 0.75rem; font-weight: 900; color: #fff; margin-bottom: 2rem; text-align: center; }

.mock-nav-item {
  height: 12px; width: 60%; margin: 0 auto; border-radius: 2px; background: rgba(255,255,255,0.1);
}
.mock-nav-item.active { background: #4f46e5; }
.light-active { background: #4f46e5 !important; }
.light-item { background: rgba(0,0,0,0.05) !important; }

.mock-main { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.mock-main.dark { background: #030712; }
.mock-main.light { background: #f8fafc; }

.mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-header span { font-size: 0.75rem; font-weight: 600; }
.mock-avatar { width: 24px; height: 24px; border-radius: 50%; background: #4f46e5; }

.mock-stats { display: flex; gap: 1rem; }
.mock-stat { flex: 1; padding: 1rem; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.05); text-align: left; }
.mock-stat.dark { background: #111827; }
.mock-stat.light { background: #fff; border-color: rgba(0,0,0,0.05); }
.mock-stat small { font-size: 0.5rem; color: #888; display: block; margin-bottom: 0.25rem; }
.mock-stat strong { font-size: 0.75rem; }

.mock-chart { flex: 1; border-radius: 0.75rem; background: linear-gradient(0deg, rgba(79,70,229,0.1) 0%, transparent 100%); border: 1px dashed rgba(255,255,255,0.1); }
.mock-chart.light { border-color: rgba(0,0,0,0.1); }

.theme-vs {
  font-size: 1.5rem; font-weight: 900; color: var(--text-muted); opacity: 0.5;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
  border-radius: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.price-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(99, 102, 241, 0.05) 100%);
  transform: scale(1.05);
  box-shadow: 0 30px 60px -10px rgba(99, 102, 241, 0.2);
}

.popular-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.price-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.price-amount span {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.price-features li {
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-wrap {
  display: flex;
  gap: 5rem;
  margin-top: 4rem;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ci-icon {
  font-size: 1.5rem;
}

.contact-item strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-form {
  flex: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
}

/* --- Theme Toggles --- */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin: 1.5rem 0;
}

.footer-social a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 800;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.theme-btn-footer {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .module-row { flex-direction: column; text-align: center; gap: 2.5rem; }
  .module-row.reverse { flex-direction: column; }
  .module-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .theme-compare { flex-direction: column; }
}

/* --- Detailed Features --- */
.feat-details {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feat-details li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.8;
}

/* --- Growth Grid --- */
.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.growth-item {
  text-align: center;
  padding: 2rem;
  background: var(--glass);
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.growth-item:hover {
  transform: translateY(-5px);
}

.growth-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.growth-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.growth-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- FAQ Grid --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.faq-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-btns { flex-direction: column; width: 100%; }
  .contact-wrap {
    flex-direction: column;
    gap: 3rem;
  }
  .module-row, .module-row.reverse {
    flex-direction: column;
    text-align: center;
  }
  .module-points li {
    justify-content: center;
  }
  .theme-compare {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
  }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}
