/* ForgeX Finance static site. No build step, no framework. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/lora-italic-latin-variable.woff2") format("woff2");
}

:root {
  --navy: #0b1a3e;
  --navy-deep: #06101e;
  --blue: #1a45c0;
  --blue-mid: #3b82f6;
  --blue-light: #93c5fd;
  --ink: #111827;
  --slate: #475569;
  --slate-soft: #64748b;
  --page-tint: #f6f9ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 48rem; }
.container.medium { max-width: 64rem; }

/* Shared heading styles */
.h-sans { display: block; font-weight: 600; letter-spacing: -0.02em; }
.h-serif { display: block; font-family: Lora, serif; font-style: italic; font-weight: 400; }
.h-sans.dark { color: var(--ink); }
.h-serif.blue { color: var(--blue-mid); }
.h2-big { line-height: 1.12; font-size: clamp(2.4rem, 5vw, 3.75rem); }
.h2-big.nowrap { white-space: nowrap; }
.h2-big.nowrap .h-sans, .h2-big.nowrap .h-serif { display: inline; }
.section-head { margin-bottom: 3.5rem; text-align: center; }
.lede { color: var(--slate-soft); line-height: 1.7; font-size: 1rem; margin: 1.1rem auto 0; }
.h2-plain { font-weight: 600; font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.9rem; transition: opacity 0.2s, background-color 0.2s; }
.btn-primary { background: var(--blue); color: #fff; padding: 0.8rem 1.6rem; border-radius: 0.5rem; }
.btn-primary:hover { opacity: 0.9; }
.btn-lg { padding: 0.875rem 1.75rem; border-radius: 0.75rem; }
.btn-cta { padding: 0.85rem 1.75rem; border-radius: 0.5rem; }
.btn-ghost { color: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-cta.btn-ghost { color: rgba(255, 255, 255, 0.65); font-weight: 400; border-color: rgba(255, 255, 255, 0.15); }
.btn-cta.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.btn-row.center { justify-content: center; gap: 0.75rem; margin-top: 0; align-items: center; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 #e2e8f4; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.brand-name { display: block; color: var(--navy); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; }
.brand-name b { font-weight: inherit; color: var(--blue); }
.brand-sub { display: block; color: #64748b; font-size: 0.58rem; letter-spacing: 0.2em; font-weight: 300; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--slate-soft); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: #1d4ed8; }
.nav .btn-nav { background: var(--blue); color: #fff; padding: 0.625rem 1.25rem; border-radius: 0.25rem; }
.nav .btn-nav:hover { color: #fff; opacity: 0.9; }
.menu-btn { display: none; background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; background: #050d1f; display: flex; align-items: center; }
.hero-photos { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11, 26, 62, 0.92) 0%, rgba(29, 78, 216, 0.4) 55%, rgba(11, 26, 62, 0.85) 100%); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(at 100% 100%, rgba(5, 13, 31, 0.75) 0%, transparent 55%); }
.hero-inner { position: relative; padding-top: 7rem; padding-bottom: 6rem; }
.eyebrow { display: block; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-size: 0.7rem; letter-spacing: 0.22em; font-weight: 600; }
.hero h1 { margin-top: 1.25rem; line-height: 1.15; font-size: clamp(2.6rem, 7vw, 5.2rem); }
.hero h1 .h-sans { color: #fff; }
.hero h1 .h-serif { color: var(--blue-light); }
.hero-copy { color: rgba(255, 255, 255, 0.65); line-height: 1.8; margin-top: 1.75rem; max-width: 500px; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.3); animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Story */
.story { background: #fff; padding: 7rem 0; }
.story p { color: var(--slate); line-height: 1.8; font-size: 0.97rem; margin-top: 1rem; }
.story h2 + p { margin-top: 1.25rem; }

/* About */
.about { padding: 4rem 0 6rem; overflow: hidden; background: linear-gradient(#f5f8ff 0%, #dfe9ff 60%, #ccdeff 100%); border-top: 1px solid #e4ecff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3.5rem; }
.card { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 1rem; padding: 1.5rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card-icon { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; display: flex; align-items: center; justify-content: center; color: var(--blue); margin-bottom: 1rem; }
.card h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.card .num { color: #cbd5e1; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; }
.card p { color: var(--slate-soft); line-height: 1.7; font-size: 0.88rem; }

.browser { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 1.25rem; box-shadow: 0 20px 50px -10px rgba(11, 26, 62, 0.15); overflow: hidden; border: 1px solid #e8eeff; }
.browser-bar { background: #f1f5f9; padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid #e2e8f0; }
.dots { display: flex; gap: 0.35rem; }
.dots i { width: 9px; height: 9px; border-radius: 50%; }
.url { flex: 1; background: #e2e8f0; border-radius: 0.3rem; padding: 0.2rem 0.75rem; font-size: 0.65rem; color: #94a3b8; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { padding: 1.4rem 1.5rem; }
.reg-head { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #f1f5f9; }
.reg-logo { width: 28px; height: 28px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 0.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.reg-title { color: #0f172a; font-weight: 600; font-size: 0.78rem; }
.reg-sub { color: #94a3b8; font-size: 0.6rem; }
.reg-label { color: var(--slate-soft); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.reg-search { display: flex; gap: 0.5rem; margin-bottom: 1.1rem; }
.reg-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--blue); border-radius: 0.5rem; padding: 0.55rem 0.875rem; background: #fff; color: var(--blue); }
.reg-input > span { color: #0f172a; font-size: 0.88rem; white-space: nowrap; overflow: hidden; display: inline-flex; align-items: center; min-height: 1.4em; }
.caret { display: none; width: 1.5px; height: 0.95em; margin-left: 1px; background: var(--blue); }
.reg-btn { transition: transform 0.15s, background-color 0.15s; }

/* Registration demo animation (classes are added by the script at the bottom of index.html) */
.browser.anim .reg-results { opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s; }
.browser.anim.done .reg-results { opacity: 1; transform: none; }
.browser.anim.typing .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
.browser.anim.pressed .reg-btn { transform: scale(0.93); background: #24573f; }
@keyframes blink { 50% { opacity: 0; } }
.reg-btn { background: #2d6a4f; color: #fff; font-weight: 600; font-size: 0.78rem; padding: 0 1rem; border-radius: 0.5rem; display: flex; align-items: center; flex-shrink: 0; }
.reg-count { color: #94a3b8; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.reg-result { border: 1px solid #e0eaff; border-radius: 0.75rem; padding: 0.9rem 1rem; background: #f6f9ff; display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.reg-result-title { color: #0f172a; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.25rem; }
.reg-result-meta { color: var(--slate-soft); font-size: 0.75rem; line-height: 1.6; }
.pill-free { background: #dcfce7; color: #15803d; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 9999px; white-space: nowrap; flex-shrink: 0; }

/* Courses */
.courses { padding: 5rem 0 7rem; overflow: hidden; background: var(--page-tint); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3.5rem; }
.tab { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1.1rem; border-radius: 9999px; font-size: 0.875rem; color: var(--slate-soft); border: 1px solid #d1d5db; }
.tab em { font-style: normal; font-size: 0.6rem; font-weight: 600; background: #dbeafe; color: var(--blue); padding: 0.1rem 0.45rem; border-radius: 9999px; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }

.course-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: center; }
.course-copy { display: flex; flex-direction: column; align-items: flex-start; }
.course-title { font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1rem; }
.course-title .h-serif { letter-spacing: 0; }
.course-copy > p { color: var(--slate-soft); line-height: 1.8; font-size: 0.95rem; margin-bottom: 1.75rem; }
.checks { margin-bottom: 2rem; }
.checks li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; color: var(--blue); }
.checks span { color: #374151; font-size: 0.95rem; }

.schedule-wrap { padding-left: 1.5rem; }
.schedule { background: var(--navy); border-radius: 1.5rem; padding: 2rem; position: relative; overflow: hidden; box-shadow: 0 32px 64px -12px rgba(11, 26, 62, 0.3); }
.schedule-glow { position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%); pointer-events: none; }
.schedule-photo { position: relative; height: 110px; overflow: hidden; margin: -2rem -2rem 1rem; }
.schedule-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.shade-1, .shade-2 { position: absolute; inset: 0; }
.shade-1 { background: rgba(15, 40, 110, 0.4); }
.shade-2 { background: linear-gradient(to top, var(--navy) 0%, rgba(11, 26, 62, 0.2) 60%, transparent 100%); }
.schedule-place { position: absolute; bottom: 1.1rem; left: 1.5rem; }
.schedule-place .k { color: rgba(255, 255, 255, 0.7); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.schedule-place .v { color: #fff; font-weight: 600; font-size: 0.95rem; margin-top: 0.15rem; }
.schedule-head { position: relative; margin-bottom: 0.75rem; }
.session { color: var(--blue-light); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.3rem; }
.schedule-head .title { color: #fff; font-weight: 600; font-size: 1.1rem; }
.rows { position: relative; }
.row { position: relative; padding: 0.65rem 0 0.65rem 46px; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.row:last-child { border-bottom: 0; }
.row-icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 0.5rem; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(99, 153, 255, 0.22); display: flex; align-items: center; justify-content: center; color: var(--blue-light); }
.row dt { color: rgba(255, 255, 255, 0.62); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.row dd { color: #fff; font-weight: 600; font-size: 0.88rem; }
.cost { position: relative; margin-top: 0.875rem; background: linear-gradient(135deg, rgba(26, 69, 192, 0.6), rgba(37, 99, 235, 0.6)); border: 1px solid rgba(99, 153, 255, 0.25); border-radius: 0.75rem; padding: 0.75rem 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.cost span { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; font-weight: 500; }
.cost strong { color: var(--blue-light); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.soon { position: relative; margin-top: 0.75rem; background: rgba(59, 130, 246, 0.06); border: 1px solid rgba(99, 153, 255, 0.15); border-radius: 0.75rem; padding: 0.65rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.soon span { color: rgba(255, 255, 255, 0.62); font-size: 0.82rem; }
.soon b { color: var(--blue-light); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

/* Contact + CTA */
.contact { background: var(--navy-deep); position: relative; overflow: hidden; }
.contact-glow { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 700px; max-width: 100%; height: 400px; background: radial-gradient(rgba(26, 69, 192, 0.18) 0%, transparent 70%); pointer-events: none; }
.contact-links { position: relative; padding: 3.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.kicker { color: rgba(255, 255, 255, 0.6); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; text-align: center; margin-bottom: 2rem; }
.pills { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.pill { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.5rem; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.pill:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.pill .icon { color: var(--blue-light); }
.pill span { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; }
.sep { color: rgba(255, 255, 255, 0.15); font-size: 1.2rem; }
.cta { position: relative; padding: 4rem 0 6rem; text-align: center; }
.cta-inner { max-width: 56rem; }
.brand-dark { display: inline-flex; margin-bottom: 2rem; opacity: 0.85; text-align: left; }
.brand-dark .brand-name { color: #fff; font-size: 0.9rem; }
.brand-dark .brand-name b { color: var(--blue-light); }
.brand-dark .brand-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.55rem; }
.cta-title { line-height: 1.15; margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.cta-title .h-sans { color: #fff; }
.cta-title .h-serif { color: var(--blue-light); }
.cta-copy { color: rgba(255, 255, 255, 0.6); line-height: 1.75; max-width: 480px; margin: 0 auto 2.5rem; }

/* Footer */
.footer { background: var(--navy-deep); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding-top: 4rem; padding-bottom: 4rem; }
.footer .brand-dark { display: flex; margin-bottom: 0; opacity: 1; }
.footer .brand-name { font-size: 0.88rem; }
.footer .brand-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.55rem; letter-spacing: 0.18em; }
.f-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.82rem; line-height: 1.7; margin-top: 1rem; max-width: 200px; }
.footer h3 { color: #fff; font-weight: 600; font-size: 0.85rem; margin-bottom: 1.25rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.85rem; }
.footer li a { color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 1.5rem 0; }
.copyright p { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; text-align: center; }

/* Hero entrance: same fade-up as before, but runs from first paint with no script dependency */
.js .hero-inner > * { animation: rise 0.7s var(--ease) both; }
.js .hero-inner > :nth-child(2) { animation-delay: 0.1s; }
.js .hero-inner > :nth-child(3) { animation-delay: 0.2s; }
.js .hero-inner > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: var(--navy); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem; box-shadow: 0 4px 16px rgba(11, 26, 62, 0.25); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--blue-mid); outline-offset: 3px; border-radius: 4px; }

/* Scroll reveal (classes added by the script at the bottom of index.html) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Narrow tablets and below: stack the multi-column layouts */
@media (max-width: 899px) {
  .cards { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .course-copy { align-items: center; text-align: center; }
  .checks li { text-align: left; }
  .schedule-wrap { padding-left: 0; max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .f-brand { grid-column: span 2; }
}

/* Phones (md breakpoint = 768px, as in the original) */
@media (max-width: 767px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 0.5rem 1.5rem 1.25rem; box-shadow: 0 12px 24px -12px rgba(11, 26, 62, 0.2); }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; }
  .nav .btn-nav { margin-top: 0.5rem; text-align: center; padding: 0.75rem 1.25rem; }
  .eyebrow { line-height: 1.6; }
  .h2-big.nowrap { white-space: normal; }
  .pills { flex-direction: column; gap: 0.75rem; }
  .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
  .caret { animation: none !important; }
  .js .hero-inner > * { animation: none; }
}

/* 404 page */
.nf { min-height: 100vh; background: var(--navy-deep); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.nf-box { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.nf-box img { margin-bottom: 1rem; }
.nf-box .kicker { margin-bottom: 0.5rem; }
.nf-title { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.nf-title .h-sans, .nf-title .h-serif { display: inline; }
.nf-title .h-sans { color: #fff; }
.nf-title .h-serif { color: var(--blue-light); }
.nf-box .cta-copy { margin: 0 auto 1.5rem; }
