/* WealthGoal palette is taken from the logo: deep navy, electric blue, warm orange and teal.
   Layout and type system follow the Aaftaj website (aaftaj-website). */
:root {
  /* brand */
  --navy: #0c1736;
  --navy-2: #142350;
  --blue: #2f6bff;
  --blue-deep: #2456d9;
  --blue-soft: #8fb0ff;
  --orange: #ffad54;
  --teal: #14d9d0;
  /* surfaces and text on light */
  --paper: #f6f8fc;
  --paper-2: #edf1f9;
  --white: #fff;
  --ink: #0c1736;
  --muted: #56627e;
  --line: #dbe3f1;
  /* text on navy */
  --on-navy: #e4eaf8;
  --muted-navy: #aebbdb;
  --faint-navy: #8190b8;
  --line-navy: #ffffff29;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', Avenir, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
.container { width: min(100% - 80px, 1200px); margin: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 1000; background: white; color: #111; padding: 12px; }
.skip-link:focus { top: 10px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 4px; }

/* Beta notice */
.beta-bar { background: var(--navy-2); color: var(--on-navy); display: flex; justify-content: center; align-items: center; gap: 12px; padding: 9px 20px; font-size: 12px; line-height: 1.4; text-align: center; border-bottom: 1px solid #ffffff1f; }
.beta-pill { background: var(--orange); color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; }

/* Header */
.site-header { background: var(--navy); color: white; position: relative; z-index: 20; border-bottom: 1px solid #ffffff1f; }
.header-inner { height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 196px; height: auto; }
.nav { display: flex; align-items: center; gap: 38px; font-size: 13px; font-weight: 600; letter-spacing: .015em; }
.nav > a:not(.nav-contact) { color: var(--muted-navy); transition: color .2s; }
.nav > a:hover { color: white; }
.nav-contact { background: var(--blue); color: white; padding: 13px 18px; transition: background .2s; }
.nav-contact:hover { background: var(--blue-deep); }
.nav-contact span { margin-left: 18px; }
.menu-toggle { display: none; }

/* Hero */
.hero { background: radial-gradient(circle at 75% 55%, #1d3270 0, #111f4a 35%, var(--navy) 72%); color: white; position: relative; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(#7f9bea55 1px, transparent 1px), linear-gradient(90deg, #7f9bea55 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(90deg, transparent 35%, black); }
.hero-inner { min-height: 630px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; position: relative; }
.hero-copy { padding: 74px 0 75px; z-index: 2; }
.eyebrow, .section-label { font-size: 11px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.eyebrow { color: var(--muted-navy); display: flex; align-items: center; gap: 14px; }
.eyebrow-line { width: 27px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(54px, 5.6vw, 84px); line-height: 1.05; letter-spacing: -.055em; max-width: 750px; margin: 35px 0 27px; font-weight: 600; }
.hero h1 em { display: block; color: var(--blue-soft); font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
.hero-lead { max-width: 510px; font-size: 18px; line-height: 1.75; color: var(--muted-navy); margin: 0; }
.hero-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.hero-note { margin: 22px 0 0; font-size: 12px; color: var(--faint-navy); letter-spacing: .04em; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 34px; padding: 18px 22px; min-height: 55px; font-weight: 700; font-size: 13px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: #4a7fff; }
.button-light { background: #f4f7ff; color: var(--navy); }
.button-light:hover { background: #dfe8ff; }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover { background: var(--navy-2); }
.text-link { font-size: 13px; color: var(--on-navy); border-bottom: 1px solid #6f82b8; padding-bottom: 5px; }
.text-link span { margin-left: 12px; }

/* Hero art: goal progress card */
.hero-art { height: 535px; position: relative; margin-left: 15px; }
.art-orbit { position: absolute; left: 50%; top: 47%; border: 1px solid #7f9bea26; border-radius: 50%; transform: translate(-50%, -50%); }
.art-orbit-outer { width: 520px; height: 520px; }
.art-orbit-inner { width: 380px; height: 380px; }
.goal-card { position: absolute; left: 50%; top: 47%; width: 380px; max-width: 100%; transform: translate(-50%, -50%) rotate(-2deg); padding: 15px; background: var(--navy-2); border: 1px solid #7f9bea4d; box-shadow: 30px 36px 70px #040a1f99; }
.goal-card-top { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .16em; color: var(--faint-navy); padding: 4px 6px 14px; }
.preview-dots { letter-spacing: 5px; }
.goal-card-body { background: #f7f9fd; color: var(--ink); padding: 8px 24px; }
.gc-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.gc-row:last-child { border-bottom: 0; }
.gc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gc-head strong { font-size: 14px; font-weight: 600; }
.gc-head small { font-size: 11px; color: #6f7b99; }
.gc-track { height: 8px; border-radius: 10px; background: #e3e9f5; margin: 13px 0 9px; overflow: hidden; }
.gc-track i { display: block; height: 100%; background: var(--blue); border-radius: 10px; }
.gc-track i.attention { background: var(--orange); }
.gc-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .06em; color: #6f7b99; }
.art-caption { position: absolute; right: 0; bottom: 18px; width: 300px; display: flex; justify-content: space-between; border-top: 1px solid #7f9bea47; padding-top: 14px; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted-navy); }
.hero-bottom { height: 68px; position: relative; border-top: 1px solid #ffffff26; display: flex; align-items: center; gap: 20px; color: var(--faint-navy); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.hero-bottom-rule { height: 2px; width: 28px; background: var(--teal); }

/* Sections */
.section-pad { padding: 120px 0; }
.section-label { color: #5c6c93; white-space: nowrap; }
.section-number { font-size: 13px; letter-spacing: 0; color: var(--blue); margin-right: 9px; }
h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.13; letter-spacing: -.048em; font-weight: 600; }
h2 span { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--blue); }

.intro { background: var(--paper); }
.intro-layout { display: grid; grid-template-columns: 26% 1fr; }
.intro h2 { max-width: 800px; margin-bottom: 29px; }
.intro-content > p { font-size: 17px; line-height: 1.8; max-width: 650px; color: var(--muted); margin: 0; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; margin-top: 76px; }
.principles article { border-top: 2px solid var(--navy); padding-top: 23px; }
.principle-icon { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--blue); }
.principles h3 { font-size: 17px; margin: 26px 0 10px; }
.principles p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }

.product-section { background: var(--navy); color: white; }
.light-label, .light-label .section-number { color: var(--muted-navy); }
.light-label .section-number { color: var(--orange); }
.features-title { margin: 28px 0 64px; max-width: 760px; }
.features-title span { color: var(--blue-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature-grid article { border-top: 1px solid var(--line-navy); padding: 28px 0 40px; }
.feature-grid h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.feature-grid p { font-size: 14px; line-height: 1.7; color: var(--muted-navy); margin: 0; }
.feature-grid em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--orange); border: 1px solid #ffad5480; padding: 2px 7px; margin-left: 6px; vertical-align: 1px; text-transform: uppercase; }
.product-note { color: var(--faint-navy); font-size: 12px; line-height: 1.6; margin: 24px 0 0; }

.plans { background: var(--paper-2); }
.plans h2 { margin: 28px 0 56px; max-width: 760px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; }
.plan { position: relative; background: white; border: 1px solid var(--line); padding: 40px 38px; display: flex; flex-direction: column; }
.plan h3 { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.plan-lead { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 26px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 34px; flex: 1; }
.plan li { border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; color: #2c3a5c; }
.plan li:last-child { border-bottom: 1px solid var(--line); }
.plan li::before { content: '↗'; color: var(--blue); margin-right: 12px; }
.plan .button { align-self: flex-start; }
.plan-pro { background: var(--navy); color: white; border-color: var(--navy); }
.plan-pro .plan-lead { color: var(--muted-navy); }
.plan-pro li { border-color: var(--line-navy); color: var(--on-navy); }
.plan-pro li::before { color: var(--teal); }
.plan-badge { position: absolute; top: 40px; right: 38px; font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--orange); }

.trust { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 32% 1fr; gap: 20px; align-items: center; }
.about-symbol { width: 230px; height: 230px; border: 1px solid var(--line); display: grid; place-items: center; transform: rotate(45deg); margin: 48px; }
.about-symbol img { width: 150px; transform: rotate(-45deg); }
.about-copy .section-label { margin-bottom: 32px; }
.trust h2 { font-size: clamp(34px, 3.8vw, 52px); }
.about-copy p { max-width: 660px; color: var(--muted); line-height: 1.85; font-size: 16px; }
.inline-link { display: inline-block; color: var(--blue-deep); font-weight: 700; border-bottom: 1px solid #8fb0ff; padding: 14px 0 7px; font-size: 13px; margin-top: 12px; }
.inline-link span { margin-left: 36px; }

.closing { background: var(--blue-deep); color: #fff; padding: 62px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.closing-inner > div > span { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #d3e0ff; }
.closing h2 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; letter-spacing: -.03em; margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-navy); }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding: 65px 0; }
.footer-top div { display: flex; gap: 35px; font-size: 12px; flex-wrap: wrap; }
.footer-top div a:hover { color: white; }
.footer-bottom { border-top: 1px solid #ffffff24; display: flex; justify-content: space-between; gap: 20px; padding: 27px 0 35px; font-size: 11px; color: var(--faint-navy); }

@media (max-width: 1050px) {
  .hero-art { transform: scale(.85); transform-origin: center; }
  .intro-layout { grid-template-columns: 22% 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 38px, 560px); }
  .header-inner { height: 72px; }
  .brand img { width: 160px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid #5f73ad; background: transparent; padding: 10px; cursor: pointer; }
  .menu-toggle span { display: block; height: 1px; background: white; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy-2); padding: 16px 19px 25px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 15px 25px #0006; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 8px; border-bottom: 1px solid #ffffff1c; }
  .nav-contact { margin-top: 12px; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 70px 0 30px; }
  .hero h1 { font-size: clamp(46px, 11vw, 70px); margin-top: 26px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 24px; }
  .hero-art { height: 400px; margin: 0; transform: none; }
  .art-orbit { display: none; }
  .goal-card { width: 100%; top: 46%; transform: translate(-50%, -50%) rotate(-1.5deg); }
  .art-caption { width: 100%; bottom: 8px; }
  .hero-bottom { height: auto; padding: 18px 0; flex-wrap: wrap; gap: 8px 14px; font-size: 9px; }
  .section-pad { padding: 82px 0; }
  .intro-layout, .about-layout { grid-template-columns: 1fr; }
  .section-label { margin-bottom: 35px; }
  .principles { grid-template-columns: 1fr; gap: 24px; margin-top: 50px; }
  .principles article { padding-top: 15px; }
  .principles h3 { margin: 12px 0 5px; }
  .features-title { margin: 0 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .plans h2 { margin: 0 0 40px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 32px 26px; }
  .plan-badge { right: 26px; top: 36px; }
  .about-symbol { width: 140px; height: 140px; margin: 25px auto 35px; }
  .about-symbol img { width: 90px; }
  .about-copy .section-label { margin-bottom: 22px; }
  .closing-inner, .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-top { gap: 35px; padding: 50px 0; }
  .footer-top div { gap: 18px; }
  .footer-bottom { gap: 12px; }
  .closing { padding: 60px 0; }
}

@media (max-width: 410px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .goal-card-body { padding: 4px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
