/* Altafid 2026 — single-page scroll homepage */

:root {
  --bg: #0B1220;
  --bg-elevated: #0F1A2D;
  --bg-deep: #050912;
  --card: rgba(99, 131, 255, 0.04);
  --card-hover: rgba(99, 131, 255, 0.08);
  --card-border: rgba(99, 131, 255, 0.25);
  --card-border-strong: rgba(99, 131, 255, 0.5);
  --accent: #4A7BFF;
  --accent-hover: #6B95FF;
  --accent-soft: rgba(74, 123, 255, 0.15);
  --accent-faint: rgba(74, 123, 255, 0.08);
  --text: #FFFFFF;
  --text-muted: #A8B2C7;
  --text-dim: #6E7896;
  --legacy-card: #C8CDDB;
  --legacy-text: #1A1F2E;
  --success-bg: rgba(31, 78, 46, 0.4);
  --success-border: rgba(72, 168, 108, 0.5);
  --success-text: #5DC078;
  --max: 1200px;
  --r: 12px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button { font: inherit; cursor: pointer; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 131, 255, 0.1);
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header__logo { height: 26px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lang-toggle {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-toggle.active {
  color: var(--text);
  background: rgba(99, 131, 255, 0.15);
}
.lang-toggle:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn--sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Sections ---------- */
.section {
  padding: 96px 24px;
  position: relative;
}
.section__inner { max-width: var(--max); margin: 0 auto; }
.section--alt { background: var(--bg-elevated); }

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(74, 123, 255, 0.12);
  border: 1px solid rgba(74, 123, 255, 0.35);
  color: #8FB0FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 20px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 24px; }
.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 56px;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(circle at 20% 25%, rgba(74, 123, 255, 0.20), transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(74, 123, 255, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 131, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 131, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__logo { height: 70px; width: auto; margin-bottom: 36px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { background: var(--card-hover); border-color: var(--card-border-strong); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 18px;
  color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }

/* Trend column (Section 3) — compact icon + heading + body */
.trend { padding: 0; background: transparent; border: 0; }
.trend:hover { background: transparent; border: 0; }
.trend__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74, 123, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 14px;
  color: var(--accent);
}
.trend__icon svg { width: 22px; height: 22px; }
.trend h3 { font-size: 18px; margin-bottom: 8px; }
.trend p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Compare (legacy vs altafid) ---------- */
.compare {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; gap: 28px; }
}
.compare__legacy {
  background: rgba(110, 120, 150, 0.05);
  border: 1px solid rgba(110, 120, 150, 0.22);
  padding: 28px;
  border-radius: var(--r);
  position: relative;
}
.compare__legacy::before {
  content: 'LEGACY';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(110, 120, 150, 0.22);
}
.compare__altafid {
  padding: 28px;
  background: rgba(74, 123, 255, 0.05);
  border: 1px solid rgba(74, 123, 255, 0.28);
  border-radius: var(--r);
  position: relative;
}
.compare__altafid::before {
  content: 'ALTAFID';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(74, 123, 255, 0.4);
}
.compare h3 { font-size: 22px; margin-bottom: 18px; }
.compare__legacy h3 { color: var(--text-dim); }
.compare__altafid h3 { color: var(--text); }
.compare ul { list-style: none; padding: 0; }
.compare li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.compare__legacy li {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(110, 120, 150, 0.4);
  text-decoration-thickness: 1px;
}
.compare__legacy li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  text-decoration: none;
}
.compare__altafid li { color: var(--text-muted); }
.compare__altafid li::before {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(74, 123, 255, 0.6);
}

/* ---------- Callout ---------- */
.callout {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(74, 123, 255, 0.12);
  border: 1px solid rgba(74, 123, 255, 0.35);
  border-radius: var(--r);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.callout--success {
  background: var(--success-bg);
  border-color: var(--success-border);
}
.callout svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}
.callout--success svg { color: var(--success-text); }

/* ---------- Module cards (left blue accent bar) ---------- */
.modules { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .modules { grid-template-columns: 1fr 1fr; } }
.module-card {
  position: relative;
  padding: 22px 22px 22px 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.module-card h3 { font-size: 19px; margin-bottom: 8px; }
.module-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- Lifecycle (Section 6) ---------- */
.lifecycle {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 720px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lifecycle { grid-template-columns: repeat(4, 1fr); } }
.lifecycle__step {
  text-align: center;
  padding: 32px 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  position: relative;
}
.lifecycle__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(74, 123, 255, 0.3);
}
.lifecycle__icon svg { width: 28px; height: 28px; }
.lifecycle__step h3 { font-size: 18px; margin-bottom: 8px; }
.lifecycle__step p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.lifecycle-footer {
  margin-top: 36px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.6;
}

/* ---------- Numbered list (deployment models) ---------- */
.numbered { display: grid; gap: 16px; }
.numbered__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
}
.numbered__num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
}
.numbered__item h3 { font-size: 19px; margin-bottom: 6px; }
.numbered__item p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Wealth Relationship Graph ---------- */
.wrg-wrap {
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 123, 255, 0.08), transparent 60%),
    rgba(74, 123, 255, 0.03);
  border: 1px solid rgba(74, 123, 255, 0.18);
  border-radius: var(--r-lg);
  padding: 32px 24px;
}
.wrg-svg {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}
.wrg-svg__lines line {
  stroke: rgba(74, 123, 255, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}
.wrg-svg__node-bg {
  fill: rgba(15, 26, 45, 0.95);
  stroke: rgba(74, 123, 255, 0.45);
  stroke-width: 2;
}
.wrg-svg__hub-bg {
  fill: rgba(74, 123, 255, 0.18);
  stroke: var(--accent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 16px rgba(74, 123, 255, 0.4));
}
.wrg-svg__node-text {
  fill: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 28px;
  text-anchor: middle;
  dominant-baseline: central;
}
.wrg-svg__hub-text {
  fill: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.06em;
  text-anchor: middle;
  dominant-baseline: central;
}

/* ---------- Execution Advantage (Section 15) ---------- */
.execution {
  background: rgba(74, 123, 255, 0.04);
  border: 1px solid rgba(74, 123, 255, 0.2);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .execution { grid-template-columns: 1fr 1fr; gap: 0; }
  .execution__col + .execution__col {
    border-left: 2px solid rgba(99, 131, 255, 0.2);
    padding-left: 36px;
  }
  .execution__col { padding-right: 36px; }
  .execution__col:last-child { padding-right: 0; }
}
.execution__col + .execution__col {
  border-top: 2px solid rgba(99, 131, 255, 0.18);
  padding-top: 28px;
}
@media (min-width: 768px) {
  .execution__col + .execution__col {
    border-top: 0;
    padding-top: 0;
  }
}
.execution h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(99, 131, 255, 0.18);
}
.execution__col--legacy h3 { color: var(--text-dim); }
.execution__col--altafid h3 { color: var(--accent); border-bottom-color: rgba(74, 123, 255, 0.4); }
.execution__sub { margin-top: 28px; }
.execution ul {
  list-style: none;
  padding: 0;
}
.execution li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600;
  line-height: 1.45;
}
.execution__col--legacy li {
  color: var(--text-dim);
}
.execution__col--legacy li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.execution__col--altafid li {
  color: var(--text);
}
.execution__col--altafid li::before {
  content: '';
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(74, 123, 255, 0.6);
}

/* ---------- Ladder (Section 16) ---------- */
.ladder { display: grid; gap: 14px; }
.ladder__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  width: 100%;
}
@media (min-width: 768px) {
  .ladder__step--0 { width: 40%; }
  .ladder__step--1 { width: 60%; }
  .ladder__step--2 { width: 80%; }
  .ladder__step--3 { width: 100%; }
}
.ladder__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ladder__icon svg { width: 24px; height: 24px; }
.ladder__step h3 { font-size: 17px; margin-bottom: 4px; }
.ladder__step p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.ladder-footer {
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.6;
}

/* ---------- Pricing (Section 14) ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .pricing { grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
}
.pricing__principle {
  background: rgba(74, 123, 255, 0.06);
  border: 1px solid rgba(74, 123, 255, 0.28);
  padding: 28px;
  border-radius: var(--r);
  position: relative;
}
.pricing__principle h3 {
  color: var(--text);
  font-size: 22px;
  margin-bottom: 14px;
}
.pricing__principle p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.pricing__how h3 { font-size: 22px; margin-bottom: 18px; }
.pricing__how ul { list-style: disc; padding-left: 24px; }
.pricing__how li {
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}
.pricing__how strong { color: var(--text); font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 24px 96px;
  background:
    radial-gradient(circle at 50% 0%, rgba(74, 123, 255, 0.18), transparent 50%),
    var(--bg);
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 131, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 131, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at top, black 20%, transparent 70%);
}
.final-cta__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.final-cta__logo { height: 70px; width: auto; margin: 0 auto 28px; }
.final-cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}
.final-cta__lede {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}
.final-cta__cards { margin-bottom: 40px; text-align: left; }
.final-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(99, 131, 255, 0.1);
  background: var(--bg);
}
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .section { padding: 64px 20px; }
  .hero { padding: 96px 20px 56px; min-height: auto; }
  .hero__logo { height: 56px; margin-bottom: 24px; }
  .lede { margin-bottom: 36px; }
  .h2 { margin-bottom: 14px; }
  .card { padding: 22px; }
  .numbered__item { padding: 20px; gap: 14px; grid-template-columns: 48px 1fr; }
  .numbered__num { width: 40px; height: 40px; font-size: 18px; }
  .ladder__step { padding: 18px; gap: 14px; grid-template-columns: 44px 1fr; }
  .ladder__icon { width: 44px; height: 44px; }
  .execution { padding: 24px; }
  .wrg-wrap { padding: 24px 16px; }
  .final-cta { padding: 96px 20px 72px; }
  .final-cta__logo { height: 56px; }
  .header__inner { padding: 12px 20px; }
  .header__logo { height: 22px; }
  .lang-toggle { padding: 6px 8px; font-size: 12px; }
  .btn--sm { padding: 7px 12px; font-size: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
