/* ==========================================================================
   Aftmark Trading Ltd — Design System
   Navy / Gold / Red cinematic theme
   ========================================================================== */

:root {
  /* Brand palette — sampled from logo */
  --navy-deep:   #02141F;
  --navy:        #052D4B;
  --navy-mid:    #0B3C63;
  --navy-soft:   #113F6B;
  --navy-glass:  rgba(11, 60, 99, 0.35);

  --gold:        #EFA943;
  --gold-light:  #F5C578;
  --gold-dark:   #B77318;

  --red:         #FF1101;
  --red-dark:    #C40D00;

  --ink:         #F3F1EA;      /* light text on dark bg */
  --ink-dim:     #C7D3DF;      /* secondary text on dark bg */
  --muted:       #8CA0B4;      /* tertiary / captions on dark bg */

  --paper:       #F8F5EF;      /* light section bg */
  --paper-ink:   #10202F;      /* dark text on light bg */
  --paper-muted: #55677A;

  --line:        rgba(239, 169, 67, 0.18);
  --shadow:      0 20px 60px rgba(2, 20, 31, 0.55);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  display: inline-block;
}

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 70px 0; }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .eyebrow { color: var(--gold-dark); }
.section--navy { background: var(--navy-deep); }
.section--midnight {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--ink-dim); font-size: 17px; }
.section--paper .section-head p { color: var(--paper-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 17, 1, 0.28);
}
.btn-primary:hover { box-shadow: 0 18px 40px rgba(255, 17, 1, 0.4); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
  color: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(239, 169, 67, 0.25);
}
.btn-gold:hover { box-shadow: 0 18px 40px rgba(239, 169, 67, 0.38); }
.btn-outline {
  background: transparent;
  border-color: rgba(243, 241, 234, 0.35);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.section--paper .btn-outline { border-color: rgba(16, 32, 47, 0.25); color: var(--paper-ink); }
.section--paper .btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 11.5px; }

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(2, 20, 31, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text span { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% -10%, var(--navy-mid) 0%, var(--navy) 42%, var(--navy-deep) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(239,169,67,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,169,67,0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 60% at 50% 30%, black 30%, transparent 85%);
  animation: driftGrid 40s linear infinite;
}
@keyframes driftGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 200px 400px, 200px 400px; }
}
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  top: -420px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(239,169,67,0.22) 0%, rgba(239,169,67,0) 70%);
  pointer-events: none;
}
.hero-glow--red {
  top: auto; bottom: -520px; left: 30%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,17,1,0.16) 0%, rgba(255,17,1,0) 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(243,241,234,0.14);
  padding-top: 30px;
  max-width: 620px;
}
.hero-stats .num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.hero-stats .label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* small hero for inner pages */
.page-hero {
  position: relative;
  padding: 168px 0 90px;
  background: radial-gradient(120% 140% at 50% -20%, var(--navy-mid) 0%, var(--navy) 40%, var(--navy-deep) 100%);
  overflow: hidden;
  text-align: center;
}
.page-hero .hero-grid { opacity: 0.7; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); position: relative; z-index: 2; }
.page-hero p { color: var(--ink-dim); font-size: 18px; max-width: 620px; margin: 0 auto; position: relative; z-index: 2; }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-4 .feature-card { padding: 26px 22px; }
.grid-4 .feature-card .icon { width: 38px; height: 38px; font-size: 13px; margin-bottom: 14px; }
.grid-4 .feature-card h3 { font-size: 16.5px; }
.grid-4 .feature-card p { font-size: 13.5px; }

.value-card, .feature-card {
  background: var(--navy-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.value-card:hover, .feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239,169,67,0.5);
  background: rgba(11, 60, 99, 0.55);
}
.value-card .icon, .feature-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 20px;
}
.value-card h3, .feature-card h3 { font-size: 19px; color: var(--ink); }
.value-card p, .feature-card p { color: var(--ink-dim); font-size: 15px; margin-bottom: 0; }

.section--paper .value-card, .section--paper .feature-card {
  background: #FFFFFF;
  border-color: rgba(16, 32, 47, 0.08);
  box-shadow: 0 14px 34px rgba(16, 32, 47, 0.07);
}
.section--paper .value-card:hover, .section--paper .feature-card:hover {
  border-color: rgba(239, 169, 67, 0.55);
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(16, 32, 47, 0.1);
}
.section--paper .value-card h3, .section--paper .feature-card h3 { color: var(--paper-ink); }
.section--paper .value-card p, .section--paper .feature-card p { color: var(--paper-muted); }

/* Software / review cards */
.software-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  background: linear-gradient(160deg, rgba(11,60,99,0.55), rgba(2,20,31,0.7));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.software-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(239,169,67,0.14), transparent 70%);
}
.software-card .badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.software-card .mark {
  width: 100%;
  min-height: 128px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(2, 20, 31, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}
.software-card .mark img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.software-card .mark.mark--icon img {
  max-height: 96px;
  border-radius: 12px;
}
.software-card .rating {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.software-card .rating .stars { color: var(--gold); letter-spacing: 2px; }
.software-card h3 { font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.software-card .tagline { color: var(--gold-light); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.software-card .desc { color: var(--ink-dim); font-size: 15.5px; }
.software-card .points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 22px 0 26px;
}
.software-card .points li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-dim); font-size: 14.5px;
}
.software-card .points li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.software-card .card-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.affiliate-tag { font-size: 12px; color: var(--muted); }

.disclosure-box {
  border: 1px dashed rgba(239,169,67,0.4);
  border-radius: 14px;
  padding: 26px 30px;
  color: var(--ink-dim);
  font-size: 14.5px;
  background: rgba(11,60,99,0.25);
}
.disclosure-box strong { color: var(--gold-light); }

/* ---------- Story / about ---------- */
.story-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.story-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  border: 1px solid var(--line);
  padding: 60px 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.story-visual img { width: 62%; }
.story-copy h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.section--paper .story-copy p { color: var(--paper-muted); }
.story-copy p { font-size: 16.5px; }
.pull-quote {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.section--paper .pull-quote { color: var(--paper-ink); }

.timeline { margin-top: 20px; }
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: none; }
.timeline .t { font-family: var(--font-display); color: var(--gold); font-weight: 700; }
.timeline h4 { margin-bottom: 6px; font-size: 16px; }
.timeline p { color: var(--ink-dim); font-size: 14.5px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 70px 60px;
  background: linear-gradient(120deg, var(--navy-mid), var(--navy-deep) 60%);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,17,1,0.16), transparent 55%),
              radial-gradient(circle at 75% 80%, rgba(239,169,67,0.18), transparent 55%);
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); max-width: 620px; margin: 0 auto 16px; }
.cta-banner p { color: var(--ink-dim); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info h3 { color: var(--ink); font-size: 20px; }
.contact-info p { color: var(--ink-dim); }
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:first-of-type { border-top: none; }
.contact-detail .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep); font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.contact-detail h4 { margin: 0 0 4px; font-size: 14.5px; color: var(--ink); }
.contact-detail p { margin: 0; font-size: 14.5px; color: var(--ink-dim); }

.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-family: var(--font-display); font-weight: 700;
  color: var(--ink-dim);
  transition: all 0.3s var(--ease);
}
.social-row a:hover { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

.form-card {
  background: var(--navy-glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: rgba(2,20,31,0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-status {
  font-size: 14px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(239, 169, 67, 0.12); border: 1px solid rgba(239, 169, 67, 0.35); color: var(--gold-light); }
.form-status.is-error { background: rgba(255, 17, 1, 0.1); border: 1px solid rgba(255, 17, 1, 0.3); color: #ffb3ac; }
.form-status.is-sending { background: rgba(243, 241, 234, 0.06); border: 1px solid var(--line); color: var(--ink-dim); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success h3 { font-family: var(--font-display); color: var(--gold-light); margin-bottom: 12px; }
.form-success p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

/* ---------- Legal / prose pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 {
  font-size: 22px;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal-content li { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 8px; }
.legal-content a { color: var(--gold-light); text-decoration: underline; }
.legal-content .updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }
.legal-content strong { color: var(--ink); }

/* ---------- FAQ Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 2px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.faq-question:hover { color: var(--gold-light); }
.faq-question .plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.faq-item.is-open .faq-question .plus {
  transform: rotate(135deg);
  background: var(--gold);
  color: var(--navy-deep);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 0 2px;
}
.faq-item.is-open .faq-answer { max-height: 600px; padding-bottom: 24px; }
.faq-answer p { color: var(--ink-dim); font-size: 15.5px; margin: 0; max-width: 700px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p { color: var(--ink-dim); font-size: 14.5px; display: block; margin-bottom: 12px; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a, .footer-legal a { color: var(--gold); }

/* ---------- Reveal animation ----------
   Visible by default (progressive enhancement): JS adds "pre-reveal" only
   once it's actually ready to animate elements in, so content is never
   stuck invisible if JS is slow, blocked, or errors out. */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.pre-reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .story-layout { grid-template-columns: 1fr; }
  .story-visual { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .software-card { grid-template-columns: 1fr; }
  .software-card .mark { max-width: 180px; }
}

@media (max-width: 760px) {
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    top: 76px;
    flex-direction: column;
    background: var(--navy-deep);
    padding: 40px 32px;
    gap: 28px;
    font-size: 16px;
    z-index: 199;
  }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 70px 0; }
  .form-row { grid-template-columns: 1fr; }
  .software-card .points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
