:root {
  --afs-primary: #271c8c;
  --afs-secondary: #372bab;
  --afs-accent: #fa5e16;
  --afs-accent-hover: #e04e0a;
  --afs-light: #ffffff;
  --afs-dark: #212121;
  --afs-bg-subtle: #f0eef9;
  --afs-gray: #6b6b6b;
  --afs-border: #e2e0ef;
  --font-heading: 'Genos', Arial, sans-serif;
  --font-body: 'Kanit', Calibri, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1080px;
  --max-w-narrow: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--afs-dark);
  background: var(--afs-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

a { color: var(--afs-primary); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(39, 28, 140, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: var(--afs-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  opacity: 1 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--afs-accent-hover); text-decoration: none !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #271c8c 0%, #372bab 55%, #4a38c4 100%);
  color: #fff;
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(250,94,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero .subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--afs-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--afs-accent-hover); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--afs-primary);
  border: 1px solid var(--afs-border);
}
.btn-outline:hover { border-color: var(--afs-primary); text-decoration: none; }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-subtle { background: var(--afs-bg-subtle); }
.section-navy {
  background: linear-gradient(135deg, #271c8c 0%, #372bab 55%, #4a38c4 100%);
  color: #fff;
}
.section-orange {
  background: linear-gradient(90deg, #fa5e16 0%, #e54d0d 100%);
  color: #fff;
}
.section-title {
  color: var(--afs-primary);
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--afs-gray);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 560px;
}

/* CARDS */
.card {
  background: var(--afs-light);
  border: 1px solid var(--afs-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--afs-secondary); transform: translateY(-2px); }
.card-featured { border: 2px solid var(--afs-accent); }
.card-featured:hover { border-color: var(--afs-accent); }

.card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* HERO CARDS (on dark bg) */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}
.hero-card:hover { border-color: rgba(255,255,255,0.3); }
.hero-card h3 { color: var(--afs-accent); margin-bottom: 10px; }
.hero-card p { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 300; line-height: 1.5; margin-bottom: 16px; }

/* TAGS */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.tag-firm { background: #fce8e1; color: #993C1D; }
.tag-pro { background: #e1f5ee; color: #0F6E56; }
.tag-free { background: #fef3dc; color: #854F0B; }
.tag-live { background: #e1f5ee; color: #0F6E56; }
.tag-soon { background: #fef3dc; color: #854F0B; }
.tag-prem { background: #eeedfe; color: #534AB7; }
.tag-new { background: #eeedfe; color: #534AB7; }
.tag-pop { background: #fce8e1; color: #993C1D; }

/* FEATURES */
.feat { display: flex; gap: 16px; margin-bottom: 24px; }
.feat-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--afs-bg-subtle);
  color: var(--afs-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.feat h4 { font-family: var(--font-body); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.feat p { color: var(--afs-gray); font-size: 14px; font-weight: 300; line-height: 1.5; }

/* METRICS */
.metric { text-align: center; padding: 20px 12px; }
.metric-num { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--afs-primary); }
.metric-label { font-size: 14px; color: var(--afs-gray); font-weight: 300; margin-top: 4px; }

.metric-accent .metric-num { color: var(--afs-accent); }

/* QUOTES */
.quote {
  border-left: 3px solid var(--afs-secondary);
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--afs-bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: 15px; color: var(--afs-gray); line-height: 1.6; font-weight: 300; font-style: italic; }
.quote-author { font-size: 14px; font-weight: 500; color: var(--afs-dark); margin-top: 12px; font-style: normal; }
.quote-role { font-size: 13px; color: var(--afs-gray); font-weight: 300; }

/* STEPS */
.step { display: flex; gap: 16px; margin-bottom: 28px; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--afs-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.step h4 { font-family: var(--font-body); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--afs-gray); font-size: 14px; font-weight: 300; line-height: 1.5; }

/* INCLUDES (checkmarks) */
.incl { display: flex; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.incl-check { color: #0F6E56; font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.incl p { font-size: 14px; font-weight: 300; line-height: 1.4; color: var(--afs-gray); }

/* PRICE */
.price { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--afs-primary); }
.price-note { font-size: 14px; color: var(--afs-gray); font-weight: 300; }

/* PAIN POINTS */
.pain { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.pain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afs-accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.pain p { font-size: 15px; line-height: 1.5; font-weight: 300; }

/* HIGHLIGHT BOX */
.highlight {
  background: #fef3dc;
  border-left: 3px solid var(--afs-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.highlight p { font-size: 15px; line-height: 1.5; color: #633806; font-weight: 400; }

/* TIMELINE */
.timeline { display: flex; gap: 16px; }
.tl-line {
  width: 3px;
  background: linear-gradient(180deg, var(--afs-primary), var(--afs-accent));
  border-radius: 2px;
  flex-shrink: 0;
}
.tl-item { padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-size: 13px; font-weight: 600; color: var(--afs-accent); margin-bottom: 2px; }
.tl-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.tl-desc { font-size: 14px; color: var(--afs-gray); font-weight: 300; line-height: 1.5; }

/* FORMS */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--afs-gray);
  margin-bottom: 4px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--afs-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--afs-dark);
  background: var(--afs-light);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--afs-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* NEWSLETTER */
.newsletter-box {
  background: linear-gradient(135deg, #271c8c 0%, #372bab 70%, #4a38c4 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}
.newsletter-box h2 { color: #fff; margin-bottom: 8px; }
.newsletter-box p { color: rgba(255,255,255,0.7); font-weight: 300; margin-bottom: 20px; }
.nl-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
}
.nl-form .btn { white-space: nowrap; }
.nl-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 12px; }

/* FAQ */
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--afs-border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 500; color: var(--afs-primary); margin-bottom: 6px; }
.faq-a { font-size: 15px; color: var(--afs-gray); font-weight: 300; line-height: 1.6; }

/* CONTACT */
.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--afs-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--afs-bg-subtle);
  color: var(--afs-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.contact-label { font-size: 13px; color: var(--afs-gray); font-weight: 300; }
.contact-value { font-size: 15px; font-weight: 500; }

/* SHORTCUT CARDS */
.shortcut {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--afs-border);
  border-radius: var(--radius-lg);
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--afs-dark);
}
.shortcut:hover { border-color: var(--afs-secondary); transform: translateY(-2px); text-decoration: none; }
.shortcut-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.shortcut h4 { font-family: var(--font-body); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.shortcut p { font-size: 13px; color: var(--afs-gray); font-weight: 300; }

/* PHOTO PLACEHOLDERS */
.photo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  overflow: hidden;
}
.photo-rect {
  width: 100%;
  height: 240px;
  background: var(--afs-bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--afs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--afs-gray);
  overflow: hidden;
}

/* FOOTER */
.footer {
  background: var(--afs-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  font-size: 14px;
  font-weight: 300;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}
.footer-links { margin: 16px 0; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  margin: 0 12px;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-legal a { color: rgba(255,255,255,0.4); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* QUIZ BAR */
.quiz-bar {
  background: linear-gradient(90deg, #fa5e16 0%, #e54d0d 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.quiz-bar h2 { color: #fff; margin-bottom: 8px; }
.quiz-bar p { color: rgba(255,255,255,0.85); font-weight: 300; max-width: 500px; margin: 0 auto 20px; }

/* TOPIC CARDS */
.topic-card {
  border: 1px solid var(--afs-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.topic-card:hover { border-color: var(--afs-secondary); }
.topic-card-featured { border: 2px solid var(--afs-accent); }
.topic-card h3 { margin-bottom: 6px; }
.topic-card p { font-size: 14px; color: var(--afs-gray); font-weight: 300; line-height: 1.5; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(39, 28, 140, 0.98);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-hamburger { display: block; }
  .nav-cta-mobile {
    display: inline-flex;
    background: var(--afs-accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    margin-left: auto;
    margin-right: 12px;
    text-decoration: none;
  }

  .hero { padding: 48px 0 56px; }
  .section { padding: 48px 0; }

  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .nl-form { flex-direction: column; }

  .hero-about { flex-direction: column; text-align: center; }
  .story-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .card { padding: 20px; }
  .newsletter-box { padding: 32px 20px; }
}
