/* ============================================================
   AIZTP Solutions - design system
   Modern fintech: dark hero, flemingo pink + stork teal accents,
   system fonts, light/dark aware.
   ============================================================ */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #55607a;
  --line: #e6e9f2;
  --brand: #cf3765;        /* flemingo pink */
  --brand-soft: #cf376514;
  --accent: #0e8fa3;       /* stork teal */
  --accent-soft: #0e8fa314;
  --hero-bg: #0a101e;      /* hero stays dark in both themes */
  --hero-ink: #e9edf6;
  --hero-muted: #9aa5bd;
  --hero-line: #223154;
  --shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 8px 24px rgb(15 23 42 / 6%);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a101e;
    --surface: #111a30;
    --ink: #e9edf6;
    --muted: #96a0b8;
    --line: #1f2b47;
    --brand: #ff7398;
    --brand-soft: #ff739818;
    --accent: #3fc9de;
    --accent-soft: #3fc9de16;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--hero-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hero-line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--hero-ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.logo:hover { text-decoration: none; }
.logo .mark { color: #ff7398; }
.logo .sub {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--hero-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--hero-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--hero-ink); }
.nav-links .btn { color: #fff; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(700px 320px at 12% -10%, #cf376526, transparent 65%),
    radial-gradient(700px 320px at 88% -10%, #0e8fa326, transparent 65%),
    var(--hero-bg);
  color: var(--hero-ink);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--hero-line);
}

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

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 14px 0 20px;
}

.hero .lead {
  color: var(--hero-muted);
  font-size: 1.13rem;
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero .lead strong { color: var(--hero-ink); font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--hero-line); color: var(--hero-ink); }
.btn-ghost:hover { border-color: var(--hero-muted); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* on light sections the ghost button needs body colors */
.section .btn-ghost { border-color: var(--line); color: var(--ink); }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
  max-width: 30ch;
}

.section .lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.95rem; }

.card.product { border-top: 3px solid var(--brand); }
.card.product.stork { border-top-color: var(--accent); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 12px;
}
.badge.stork { background: var(--accent-soft); color: var(--accent); }

/* ---------- flow / pipeline diagrams ---------- */

.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* keep each arrow glued to the step it points at, so line-wraps read as "→ continues" */
.flow .seg { display: flex; align-items: center; gap: 8px; }

.step {
  max-width: 10.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.step small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; white-space: normal; }

.arrow { color: var(--muted); font-weight: 600; user-select: none; }

/* the big three-column platform diagram */

.platform {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 44px;
}

.platform .col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.platform .col ul { list-style: none; display: grid; gap: 8px; }

.platform .col li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.platform .col li.hl {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}
.platform .col li.hl b { color: var(--accent); }

.platform .col li .tag {
  float: right;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.platform .big-arrow { color: var(--muted); font-size: 1.5rem; font-weight: 700; }

.engine {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.engine h4 { font-size: 1.05rem; margin-bottom: 4px; }
.engine h4 span { color: var(--brand); }
.engine > p { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }

.engine .stages { display: flex; flex-wrap: wrap; gap: 6px; }

.engine .stages span {
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.engine .rail {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- feature list (checkmarks) ---------- */

.features { list-style: none; display: grid; gap: 14px; margin-top: 28px; max-width: 68ch; }
.features li { padding-left: 30px; position: relative; color: var(--muted); }
.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}
.features li b { color: var(--ink); }

/* ---------- page hero (subpages) ---------- */

.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 16px; letter-spacing: -0.02em; }
.page-hero .lead { max-width: 60ch; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { text-align: left; }
.stat .n { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); }
.stat p { color: var(--muted); font-size: 0.95rem; }

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

.cta-band {
  background:
    radial-gradient(600px 260px at 85% 120%, #0e8fa326, transparent 65%),
    var(--hero-bg);
  color: var(--hero-ink);
  border-radius: var(--radius);
  padding: 48px;
  margin: 72px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
.cta-band p { color: var(--hero-muted); margin-top: 6px; }

/* ---------- footer ---------- */

.footer {
  background: var(--hero-bg);
  color: var(--hero-muted);
  border-top: 1px solid var(--hero-line);
  padding: 40px 0;
  font-size: 0.92rem;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--hero-muted); }
.footer a:hover { color: var(--hero-ink); }
.footer nav { display: flex; gap: 18px; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 1fr; }
  .platform .big-arrow { transform: rotate(90deg); justify-self: center; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { font-size: 0.88rem; }
  .logo .sub { display: none; }
  .cta-band { padding: 32px; }
  .step { white-space: normal; }
}
