/* ============================================================
   STORAX INVESTMENT — token system
   Navy: deep, trustworthy. Gold: earned, deliberate.
   Display: Playfair Display (echoes the wordmark's high-contrast serif)
   Body/UI: Jost (wide, geometric — echoes "I N V E S T M E N T" spacing)
   ============================================================ */

:root {
  --navy-900: #0A1930;
  --navy-800: #0F2142;
  --navy-700: #17335E;
  --navy-600: #1F4276;
  --gold-500: #B98D4C;
  --gold-400: #CBA463;
  --gold-300: #DDC08B;
  --cream-100: #FBF9F4;
  --cream-200: #F3EFE4;
  --ink-700: #2B3644;
  --ink-500: #5B6675;
  --line: #E2DBC9;
  --line-dark: rgba(219, 196, 148, 0.18);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --radius: 2px;
  --shadow-soft: 0 20px 50px -20px rgba(10, 25, 48, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-700);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy-800);
  margin: 0;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow-dark { color: var(--gold-500); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-lede { color: var(--ink-500); font-size: 1rem; margin: 0; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline:hover { background: var(--navy-800); color: var(--cream-100); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.btn-outline-light:hover { background: var(--gold-500); color: var(--navy-900); }

.btn-wide { width: 100%; padding: 16px; margin-top: 8px; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--navy-800);
  font-weight: 700;
}
.brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold-500);
  margin-top: 3px;
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.btn-login {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy-900);
  background: var(--gold-300);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn-login:hover { background: var(--gold-400); transform: translateY(-1px); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-700);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--navy-800); }

/* ============ HERO ============ */
.hero {
  background: radial-gradient(120% 100% at 50% -10%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-900) 100%);
  color: var(--cream-100);
  padding: 100px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, var(--line-dark) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 {
  color: var(--cream-100);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-lede {
  color: rgba(251, 249, 244, 0.72);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-login-hint {
  font-size: 0.85rem;
  color: rgba(251, 249, 244, 0.6);
  margin: 0 0 64px;
}
.hero-login-hint a { color: var(--gold-400); border-bottom: 1px solid var(--line-dark); padding-bottom: 1px; }
.hero-login-hint a:hover { color: var(--gold-300); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 36px;
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-num { font-family: var(--serif); font-size: 2rem; color: var(--gold-400); }
.stat-label { font-size: 0.78rem; color: rgba(251, 249, 244, 0.6); line-height: 1.4; }

/* ============ HOW IT WORKS / STAIRCASE ============ */
.how { padding: 100px 24px; max-width: 1080px; margin: 0 auto; }

.staircase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  max-width: 780px;
  margin: 0 auto 56px;
  padding: 0 12px;
}
.step { display: flex; flex-direction: column; align-items: center; flex: 1; }
.step-riser {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18px;
  box-shadow: var(--shadow-soft);
}
.step-rate {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1.6rem;
}
.step-1 .step-riser { height: 120px; background: linear-gradient(180deg, #E7D3AA, var(--navy-700)); }
.step-1 .step-rate { color: var(--cream-100); }
.step-2 .step-riser { height: 170px; }
.step-3 .step-riser { height: 220px; }
.step-label {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-700);
  font-weight: 500;
}
.step-label span { display: block; font-size: 0.72rem; color: var(--ink-500); font-weight: 400; margin-top: 4px; }

.mandatory-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ms-card {
  background: var(--cream-200);
  border: 1px solid var(--line);
  padding: 20px 26px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  text-align: center;
}
.ms-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.ms-amount { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-800); }
.ms-amount small { font-family: var(--sans); font-size: 0.7rem; color: var(--ink-500); }
.ms-divider { font-family: var(--serif); font-style: italic; color: var(--gold-500); }

/* ============ CALCULATOR ============ */
.calc { background: var(--cream-200); padding: 100px 24px; }
.calc-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--cream-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.calc-inputs { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.calc-inputs label { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--ink-700); }
.calc-inputs input[type="number"] {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream-100);
}
.calc-inputs input:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; }
.calc-check { flex-direction: row !important; align-items: center; gap: 10px !important; }
.calc-check input { width: 17px; height: 17px; accent-color: var(--gold-500); }

.calc-result {
  background: var(--navy-900);
  color: var(--cream-100);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line-dark); padding-bottom: 12px; }
.calc-result-row span { font-size: 0.78rem; color: rgba(251,249,244,0.6); }
.calc-result-row strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-400); }
.calc-note { font-size: 0.75rem; color: rgba(251,249,244,0.5); margin: 0; }

/* ============ TERMS ============ */
.terms { padding: 100px 24px; max-width: 880px; margin: 0 auto; }
.terms-list { list-style: none; counter-reset: term; margin: 0; padding: 0; }
.terms-list li {
  counter-increment: term;
  position: relative;
  padding: 28px 0 28px 64px;
  border-top: 1px solid var(--line);
}
.terms-list li:last-child { border-bottom: 1px solid var(--line); }
.terms-list li::before {
  content: counter(term, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 28px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold-500);
  font-style: italic;
}
.terms-list h3 { font-size: 1.05rem; margin-bottom: 8px; }
.terms-list p { margin: 0; color: var(--ink-500); font-size: 0.92rem; }
.terms-list strong { color: var(--navy-800); font-weight: 600; }

/* ============ FORMS ============ */
.form-section { padding: 100px 24px; max-width: 780px; margin: 0 auto; }
.form-section-dark {
  max-width: 100%;
  background: var(--navy-900);
  color: var(--cream-100);
  margin-top: 0;
}
.form-section-dark .section-head h2 { color: var(--cream-100); }
.form-section-dark .section-lede { color: rgba(251,249,244,0.65); }
.form-section-dark .app-form { max-width: 780px; margin: 0 auto; }

.app-form { display: flex; flex-direction: column; gap: 26px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-700);
}
.form-section-dark .form-grid label { color: rgba(251,249,244,0.8); }
.full-width { grid-column: 1 / -1; }
.req { color: var(--gold-500); }

.form-grid input {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--cream-100);
  color: var(--ink-700);
}
.form-section-dark .form-grid input {
  background: rgba(251,249,244,0.06);
  border-color: var(--line-dark);
  color: var(--cream-100);
}
.form-grid input:focus { outline: 2px solid var(--gold-400); outline-offset: 1px; }

.declaration {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  background: var(--cream-200);
  padding: 22px 24px 6px;
  border-radius: var(--radius);
}
.declaration h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy-800);
  margin: 0 0 6px;
  font-weight: 600;
}
.declaration p {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0 0 18px;
}
.declaration .form-grid { gap: 20px; }
.declaration-dark {
  background: rgba(251,249,244,0.05);
  border-color: var(--line-dark);
  border-left-color: var(--gold-500);
}
.declaration-dark h4 { color: var(--cream-100); }
.declaration-dark p { color: rgba(251,249,244,0.6); }

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-500);
  line-height: 1.5;
}
.form-section-dark .checkline { color: rgba(251,249,244,0.65); }
.checkline input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--gold-500); flex-shrink: 0; }

.form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
  margin: 0;
  text-align: center;
}
.form-status.success { color: #6FA37B; }
.form-status.error { color: #C56464; }
.form-status.pending { color: var(--gold-500); }

/* ============ FOOTER ============ */
.footer { background: var(--navy-900); color: rgba(251,249,244,0.7); padding: 70px 24px 30px; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-mark { width: 46px; height: 46px; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; margin: 0; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-contact, .footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a, .footer-links a { font-size: 0.88rem; }
.footer-contact a:hover, .footer-links a:hover { color: var(--gold-400); }
.footer-bottom {
  max-width: 1080px;
  margin: 24px auto 0;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(251,249,244,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-result { border-radius: 0 0 var(--radius) var(--radius); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-login { padding: 9px 14px; font-size: 0.68rem; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream-100);
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .hero-stats { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .staircase { flex-wrap: nowrap; gap: 2px; }
  .step-label { font-size: 0.68rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a::after { transition: none; }
}
