/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a2b4a;
  --color-primary-light: #2c4170;
  --color-accent: #3b6cf5;
  --color-accent-hover: #2a56d4;
  --color-accent-light: #e8eefb;
  --color-text: #2d3748;
  --color-text-light: #64748b;
  --color-heading: #0f172a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;
  --color-success: #059669;
  --color-warning: #d97706;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --transition: 150ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}

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

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

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

.nav-links a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 96px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-accent-light) 100%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(59,108,245,0.15);
}

.hero h1 {
  font-size: 48px;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p {
  font-size: 20px;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 36px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-light);
}

/* ===== PROBLEM SECTION ===== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.problem-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.problem-content p {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.7;
}

.problem-content a {
  font-weight: 600;
}

.problem-visual {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.problem-example {
  font-family: var(--font-mono);
  font-size: 14px;
}

.problem-example .label {
  color: var(--color-text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.problem-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.problem-row:last-child {
  border-bottom: none;
}

.problem-row .val-wrong {
  color: #dc2626;
  font-weight: 600;
}

.problem-row .val-right {
  color: var(--color-success);
  font-weight: 600;
}

.problem-divider {
  height: 1px;
  background: var(--color-border);
  margin: 20px 0;
}

/* ===== SOLUTION SECTION ===== */
.solution-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.solution-step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.solution-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.solution-step p {
  color: var(--color-text-light);
  font-size: 15px;
}

.step-connector {
  display: none;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-light);
}

.pricing-orders {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text);
}

.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== REQUIREMENTS CALLOUT ===== */
.callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-top: 48px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.callout h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.callout p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: var(--color-bg-dark);
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  color: #94a3b8;
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

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

.footer-brand .nav-logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

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

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-page strong {
  color: var(--color-heading);
}

.legal-page a {
  font-weight: 500;
}

/* ===== SUPPORT PAGE ===== */
.support-hero {
  background: var(--color-bg-alt);
  padding: 56px 0;
  text-align: center;
}

.support-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.support-hero p {
  color: var(--color-text-light);
  font-size: 18px;
}

.support-contact {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 56px;
}

.support-contact h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.support-contact p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.support-email {
  font-size: 20px;
  font-weight: 600;
}

.faq-section h2 {
  font-size: 28px;
  margin-bottom: 32px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--color-bg);
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-alt);
}

.faq-question::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .solution-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    gap: 40px;
    flex-wrap: wrap;
  }

  .callout {
    flex-direction: column;
  }
}
