:root {
  --navy: #14251E;
  --navy-2: #213A2F;
  --blue: #286B53;
  --blue-dark: #1A513D;
  --green: #C7E879;
  --green-dark: #A9CD5C;
  --ink: #1B2921;
  --muted: #65736A;
  --border: #DDE5DC;
  --bg: #FCFCF8;
  --bg-alt: #F1F5EF;
  --danger: #C96F54;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 18px 46px rgba(20, 37, 30, 0.12);
  --shadow-sm: 0 5px 18px rgba(20, 37, 30, 0.07);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { margin: 0; font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 700; letter-spacing: 0; }

h2 { font-size: 2.2rem; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0; color: var(--muted); }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.eyebrow-light { color: var(--green); }

.text-accent { color: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(199, 232, 121, 0.2);
}
.btn-primary:hover { background: #D4F394; }

.btn-accent {
  background: #E9A77D;
  color: #271B14;
  box-shadow: 0 8px 22px rgba(233, 167, 125, 0.24);
}
.btn-accent:hover { background: #F2B992; color: #271B14; }

.btn-ghost {
  background: transparent;
  color: #F8F8F1;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.main-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  color: #F7F8F0;
  background-color: var(--navy);
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 4px solid var(--green);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 15ch;
  color: #FBFCF7;
  font-size: 3.35rem;
  line-height: 1.08;
  margin-top: 8px;
}

.hero .eyebrow { color: var(--green); }
.hero-sub { color: #C8D4CA; }

.hero-sub {
  margin-top: 20px;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-fineprint {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #A8B7AA;
}
.hero-fineprint a { text-decoration: underline; }

.hero-visual { position: relative; }

.mock-card {
  background: #20382D;
  border: 1px solid rgba(228, 241, 218, 0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  box-shadow: 0 24px 58px rgba(0,0,0,0.24);
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #B9C6E4;
}

.mock-badge {
  background: rgba(199, 232, 121, 0.14);
  color: #D4EF99;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.mock-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 10px 0 16px;
}

.mock-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #D5DEF2;
}
.mock-row:last-child { border-bottom: none; padding-bottom: 0; }
.mock-row .up { color: var(--green); font-weight: 700; }
.mock-row .down { color: #F0A889; font-weight: 700; }

/* Trust strip */
.trust-strip {
  background: #EAF0E7;
  border-bottom: 1px solid #D8E2D6;
  padding: 18px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.trust-item {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 4px 0 4px 14px;
  border-left: 2px solid #B6D578;
}
.trust-item strong { color: var(--ink); }

/* Section head */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 42px;
}
.section-sub { margin-top: 12px; font-size: 1.02rem; }

section { padding: 84px 0; }

.features .section-head,
.how-it-works .section-head,
.account-records .section-head { text-align: left; margin-left: 0; }
.features .section-head { max-width: 740px; }
.how-it-works .section-head,
.account-records .section-head { max-width: 760px; }
/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(20, 37, 30, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: #B9CCAF; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #EAF0E7 !important;
}
.feature-icon svg { filter: saturate(0.75); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; }

.how-it-works { background: #EAF0E7; border-top: 1px solid #DDE5DC; border-bottom: 1px solid #DDE5DC; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #CBD8C9;
  border-bottom: 1px solid #CBD8C9;
}
.step { position: relative; text-align: left; padding: 28px 30px 30px 0; }
.step + .step { border-left: 1px solid #CBD8C9; padding-left: 30px; }
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #D5E4CB;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 0 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; }
.how-cta { text-align: center; margin-top: 48px; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: var(--bg-alt);
}
.testimonial-card p {
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 20px;
}
.testimonial-card footer { display: flex; flex-direction: column; font-size: 0.85rem; }
.testimonial-card strong { font-size: 0.9rem; }
.testimonial-card span { color: var(--muted); margin-top: 2px; }
/* Myfxbook account comparison */
.account-records { background: #F8F9F4; }
.balance-chart-card {
  border: 1px solid #D9E2D7;
  border-radius: 8px;
  padding: 30px;
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(20, 37, 30, 0.06);
}
.balance-chart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.balance-chart-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}
.balance-chart-header strong { display: block; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; }
.balance-chart-period { display: block; color: var(--muted); font-size: 0.82rem; }
.balance-chart-scroll { max-width: 100%; overflow-x: auto; }
.balance-chart { display: block; width: 100%; height: auto; }
.balance-chart-grid line { stroke: #E0E7DD; stroke-width: 1; }
.balance-chart-y-labels text,
.balance-chart-x-labels text {
  fill: var(--muted);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
}
.balance-chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: balance-line-draw 1.25s ease-out forwards;
}
.balance-chart-area { fill: rgba(40, 107, 83, 0.1); }
.balance-point {
  cursor: pointer;
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 3;
  transition: r 0.15s ease, fill 0.15s ease, stroke-width 0.15s ease;
}
.balance-point:last-child { fill: var(--green); }
.balance-point:hover,
.balance-point:focus,
.balance-point.is-active {
  fill: var(--green);
  r: 8px;
  stroke: #D58C62;
  stroke-width: 2;
}
.balance-point:focus { outline: none; }
.balance-chart-value-labels text {
  fill: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.balance-chart-caption { margin-top: 12px; font-size: 0.82rem; }
.balance-chart-caption a { color: var(--blue); text-decoration: underline; }
.account-link { color: var(--blue); font-size: 0.88rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.account-link:hover { color: var(--blue-dark); }
.balance-chart-caption { max-width: 90ch; line-height: 1.65; }
@keyframes balance-line-draw { to { stroke-dashoffset: 0; } }

/* Offer */
.offer { padding: 0; }
.offer-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 58px;
  margin: 76px 0;
  color: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  background-image: radial-gradient(circle at 100% 0%, rgba(199,232,121,0.10), transparent 45%);
}
.offer-copy { max-width: 640px; }
.offer-copy h2 { color: #fff; margin-bottom: 16px; }
.offer-copy > p { color: #C9D6CC; font-size: 1.02rem; margin-bottom: 24px; }
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer-list li {
  font-weight: 600;
  font-size: 0.98rem;
  padding-left: 28px;
  position: relative;
}
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #D4EF99;
  font-weight: 800;
}
.offer-fine { margin-top: 16px; font-size: 0.8rem; color: #93A397; }
.offer-fine a { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}
.faq-icon {
  font-size: 1.3rem;
  color: var(--blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 22px; font-size: 0.94rem; }

/* Final CTA */
.final-cta {
  background: #EAF0E7;
  text-align: center;
  border-top: 1px solid #DDE5DC;
}
.final-cta-inner { max-width: 560px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 14px; }
.final-cta > .container > p { margin-bottom: 30px; font-size: 1.02rem; }
.final-cta .btn { margin-bottom: 14px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #C5D0C7;
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: #A8B8AA; max-width: 34ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-links h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: #A8B8AA;
  margin-bottom: 10px;
}
.footer-links a:hover, .footer-bottom a:hover { color: var(--green); }
.footer-disclosure {
  padding: 28px 0;
  font-size: 0.78rem;
  line-height: 1.65;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-disclosure p { color: #8FA093; margin-bottom: 10px; font-size: inherit; max-width: 110ch; }
.footer-disclosure p:last-child { margin-bottom: 0; }
.footer-disclosure strong { color: #C5D0C7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { color: #8FA093; font-size: 0.8rem; }
.footer-bottom a { color: #A8B8AA; }

/* Misc polish */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--green); color: var(--navy); padding: 10px 16px; border-radius: 5px; font-weight: 700; }
.skip-link:focus { left: 12px; }
.mock-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.75rem; color: #8FA093; }
.feature-icon { background: #E8F0E4 !important; }
.final-fine { font-size: 0.85rem; color: var(--muted); }
.final-fine a, .offer-fine a { text-decoration: underline; text-underline-offset: 2px; }
.balance-chart-compact { display: none; }
.balance-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.balance-dot:last-child { fill: var(--green); stroke: var(--blue); }
.balance-chart-compact .balance-chart-y-labels text, .balance-chart-compact .balance-chart-x-labels text { font-size: 11px; }
.balance-chart-compact .balance-chart-value-labels text { font-size: 11px; }
.balance-chart-compact .balance-chart-line { stroke-width: 3; }

/* Legal pages */
.legal-hero { background: var(--navy); color: #fff; padding: 72px 0 56px; }
.legal-hero h1 { color: #fff; font-size: 2.6rem; line-height: 1.1; }
.legal-hero p { color: #A8B8AA; margin-top: 12px; }
.legal-body { padding: 64px 0 88px; }
.legal-body .container { max-width: 780px; }
.legal-body h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #3F4D44; font-size: 1rem; line-height: 1.75; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { padding-left: 22px; margin: 0 0 14px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-callout { background: #F1F5EF; border-left: 3px solid var(--blue); padding: 18px 22px; border-radius: 6px; margin-bottom: 28px; }
.legal-callout p { margin: 0; color: var(--ink); }
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 3rem; margin-bottom: 12px; }
.notfound p { margin-bottom: 28px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step + .step { border-top: 1px solid #CBD8C9; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .offer-card { padding: 40px 28px; margin: 56px 0; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 8px 24px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; }
  .balance-chart-card { padding: 18px; }
  .balance-chart-header { align-items: flex-start; flex-direction: column; }
  .balance-chart { min-width: 0; }
  .hero h1 { font-size: 2.35rem; }
  h2 { font-size: 1.85rem; }
  .balance-chart-card { padding: 16px; }
  .balance-chart-wide { display: none; }
  .balance-chart-compact { display: block; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .legal-hero h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
