/* ===== FRAXOR.AI DESIGN SYSTEM ===== */
:root {
  /* Colors - Light Mode */
  --primary: #1a365d;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-light: #e0f2fe;
  --bg-primary: #ffffff;
  --bg-alt: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --navbar-bg: #ffffff;
  --footer-bg: #1a365d;
  --footer-text: rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;
  --card-padding: 32px;
  --element-gap: 24px;
  --section-gap: 48px;

  /* Effects */
  --radius-lg: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --transition: 200ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
  --primary: #e2e8f0;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-light: rgba(56, 189, 248, 0.15);
  --bg-primary: #0f172a;
  --bg-alt: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --card-bg: #1e293b;
  --navbar-bg: rgba(15, 23, 42, 0.95);
  --footer-bg: #020617;
  --footer-text: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: var(--element-gap);
}

h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding) 0;
}

.bg-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--section-gap);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--navbar-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition), background var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-light);
}

.btn-white {
  background: white;
  color: var(--primary);
  border-color: white;
}

.btn-white:hover {
  background: var(--bg-alt);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--element-gap);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: var(--section-gap);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== PROBLEM SECTION ===== */
.problem-intro {
  font-size: 20px;
  margin-bottom: var(--section-gap);
}

.problem-list {
  list-style: none;
  margin-bottom: var(--section-gap);
}

.problem-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
  border-bottom: none;
}

.problem-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--accent);
  font-size: 20px;
}

.problem-list strong {
  color: var(--text-primary);
}

.problem-closing {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
}

/* ===== SOLUTION SECTION ===== */
.solution-intro {
  font-size: 20px;
  max-width: 700px;
  margin-bottom: var(--section-gap);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
  margin-bottom: var(--section-gap);
}

.step-card {
  text-align: center;
  padding: var(--card-padding);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto 20px;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  margin: 0;
  font-size: 16px;
}

.solution-closing {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
}

/* ===== MODULES SECTION ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--element-gap);
}

.module-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.module-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.module-card h3 {
  margin-bottom: 16px;
}

.module-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
}

.module-list {
  list-style: none;
  margin-bottom: 0;
}

.module-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
}

.module-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.module-card>p:last-child {
  margin: 0;
  font-size: 16px;
}

/* ===== WHY NOW SECTION ===== */
.why-now-content {
  max-width: 800px;
}

.why-now-intro {
  font-size: 20px;
  margin-bottom: var(--element-gap);
}

.why-now-list {
  list-style: none;
  margin-bottom: var(--section-gap);
}

.why-now-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}

.why-now-list strong {
  color: var(--text-primary);
}

.why-now-closing {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  font-style: italic;
}

/* ===== PROCESS SECTION ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--element-gap);
}

.process-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.process-step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.process-card h3 {
  margin-bottom: 16px;
}

.process-card p {
  margin: 0;
  font-size: 16px;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
}

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--accent);
  text-align: center;
}

.final-cta h2 {
  color: white;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto var(--section-gap);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.footer p {
  color: var(--footer-text);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 14px;
  color: var(--footer-text);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .steps-grid,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --card-padding: 24px;
  }

  body {
    font-size: 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px 0;
  }
}