/* ============================================================
   Swiss Alternative Financing & Investment AG
   Design system aligned with SwissChain Holding SA
   Swiss red · white · black · subtle gold
   ============================================================ */

:root {
  --red: #da291c;
  --red-deep: #b02015;
  --black: #0b0c0f;
  --dark: #101116;
  --ink: #16181d;
  --muted: #575b63;
  --bg: #ffffff;
  --bg-alt: #f6f6f7;
  --line: #e6e6e9;
  --line-dark: rgba(255, 255, 255, 0.12);
  --gold: #c9973f;
  --gold-soft: rgba(201, 151, 63, 0.35);
  --on-dark: #c6c9d0;
  --on-dark-soft: #9599a3;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }

a { color: var(--ink); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li { color: var(--on-dark); }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-dark .eyebrow { color: var(--gold); }

.lead {
  font-size: 1.17rem;
  color: var(--muted);
  max-width: 740px;
}
.section-dark .lead { color: var(--on-dark); }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.btn::after {
  content: "→";
  font-weight: 500;
  transition: transform .2s ease;
}
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { content: none; }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: #ececee; }

.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.07); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-text span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav > a:not(.btn):not(.lang) {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-nav > a:not(.btn):hover,
.site-nav > a.active:not(.btn) { color: var(--red); }

.nav-cta { padding: 11px 20px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a { text-decoration: none; color: var(--muted); padding: 2px 4px; }
.lang-switch a.active { color: var(--red); }
.lang-switch span { color: var(--line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (dark, gold-wave inspired) ---------- */

.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: 130px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 45% at 78% 78%, rgba(201, 151, 63, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 35% at 12% 92%, rgba(218, 41, 28, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 55% 105%, rgba(201, 151, 63, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.hero .container { position: relative; z-index: 1; }

.hero .eyebrow { color: var(--gold); }

.hero h1 { color: #fff; max-width: 820px; }

.hero .lead { color: var(--on-dark); margin: 24px 0 38px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-note {
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.02em;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: 96px 0 84px;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 90%, rgba(201, 151, 63, 0.22), transparent 65%),
    radial-gradient(ellipse 45% 35% at 8% 100%, rgba(218, 41, 28, 0.15), transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: var(--on-dark); margin-top: 20px; }

/* ---------- Grids & cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover { border-color: #d4d4d8; box-shadow: 0 8px 28px rgba(11, 12, 15, 0.05); }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.section-dark .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-dark);
}
.section-dark .card p, .section-dark .card li { color: var(--on-dark); }
.section-dark .card:hover { border-color: rgba(255,255,255,.25); box-shadow: none; }

.card-dark {
  background: var(--dark);
  border-color: var(--dark);
}
.card-dark h3 { color: #fff; }
.card-dark p, .card-dark li { color: var(--on-dark); }

/* ---------- Pillars (numbered, SwissChain style) ---------- */

.pillar {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---------- Problem: fragmented vs coordinated ---------- */

.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }

.list-plain { list-style: none; }
.list-plain li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}
.list-plain li:last-child { border-bottom: 0; }

.list-check { list-style: none; }
.list-check li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
}
.list-check li:last-child { border-bottom: 0; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.card-dark .list-check li { border-bottom-color: var(--line-dark); }
.card-dark .list-check li::before { border-color: var(--gold); }

/* ---------- Roadmap (the core offer) ---------- */

.roadmap { position: relative; }

.roadmap-phase {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 28px;
  padding: 0 0 56px;
}

.roadmap-phase:last-child { padding-bottom: 0; }

.roadmap-phase::before {
  content: "";
  position: absolute;
  left: 41px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red) 0%, var(--line) 100%);
}

.roadmap-phase:last-child::before { display: none; }

.phase-marker {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--red);
  z-index: 1;
}

.phase-marker small {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phase-marker strong { font-size: 1.5rem; font-weight: 750; line-height: 1; }

.phase-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
}

.phase-body h3 { font-size: 1.4rem; margin-bottom: 4px; }

.phase-tagline {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.phase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0 18px;
  font-size: 0.92rem;
}

.phase-meta div { color: var(--muted); }
.phase-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.phase-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 18px 0 6px;
}

.phase-body .list-check { margin-bottom: 6px; }
.phase-body .btn { margin-top: 16px; }

/* Compact roadmap (homepage) */

.roadmap-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: phase;
  position: relative;
}

.rc-step {
  position: relative;
  padding: 26px 18px 0 0;
  counter-increment: phase;
}

.rc-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 36px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.rc-step:last-child::before { display: none; }

.rc-step::after {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.rc-step h3 { font-size: 1.02rem; margin: 26px 0 6px; }
.rc-step p { font-size: 0.88rem; color: var(--muted); margin: 0 0 8px; }
.rc-step .rc-price { font-size: 0.8rem; font-weight: 600; color: var(--red); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background: var(--black);
  border-radius: 14px;
  padding: 68px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 100%, rgba(201, 151, 63, 0.25), transparent 65%),
    radial-gradient(ellipse 45% 45% at 15% 100%, rgba(218, 41, 28, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: var(--on-dark); max-width: 640px; margin: 0 auto 30px; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

textarea { min-height: 140px; resize: vertical; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.form-success {
  display: none;
  background: #eef6ee;
  border: 1px solid #c4dfc4;
  color: #2e5d2e;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.form-success.visible { display: block; }

.form-error {
  display: none;
  background: #fbeeee;
  border: 1px solid #e5c1c1;
  color: #7a2e2e;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.form-error.visible { display: block; }

/* ---------- Contact aside ---------- */

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

.contact-aside .card { margin-bottom: 20px; }
.contact-aside h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-aside p { font-size: 0.95rem; }

/* ---------- Fine print ---------- */

.fine-print { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--on-dark-soft);
  padding: 64px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; font-size: 0.8rem; border-radius: 7px; }

.footer-brand strong { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--on-dark-soft); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 24px;
  font-size: 0.82rem;
  color: #71757f;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Legal pages ---------- */

.legal-body h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 0.97rem; }
.legal-body ul { padding-left: 22px; margin-bottom: 1rem; }

.placeholder-box {
  background: #fdf3f2;
  border: 1px dashed var(--red);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--red-deep);
  margin: 14px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .roadmap-compact { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .rc-step::before { display: none; }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .vs-grid, .form-grid, .roadmap-compact { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .hero { padding: 96px 0 84px; }

  .roadmap-phase { grid-template-columns: 56px 1fr; gap: 18px; }
  .roadmap-phase::before { left: 27px; top: 56px; }
  .phase-marker { width: 56px; height: 56px; }
  .phase-marker strong { font-size: 1.1rem; }
  .phase-marker small { font-size: 0.5rem; }
  .phase-body { padding: 26px 22px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav > a:not(.btn):not(.lang) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; justify-content: center; }
  .lang-switch { margin-top: 12px; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
