/* ==========================================================================
   GenXChains — marketing site
   Standalone: no build step, no external dependencies, no web fonts.
   ========================================================================== */

:root {
  --ink:        #0c1424;
  --ink-soft:   #35425e;
  --muted:      #64748b;
  --line:       #e4e8ef;
  --bg:         #ffffff;
  --bg-alt:     #f7f9fc;
  --bg-dark:    #0c1424;

  --accent:     #1d6fe0;
  --accent-dk:  #1558b8;
  --accent-lt:  #e6effd;
  --green:      #0f9d76;
  --amber:      #d98413;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 1px 2px rgba(12,20,36,.04), 0 8px 24px rgba(12,20,36,.06);
  --shadow-lg:  0 2px 4px rgba(12,20,36,.05), 0 20px 50px rgba(12,20,36,.12);

  --wrap:       1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.021em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.075rem; font-weight: 700; }
p  { margin: 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--green));
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: .935rem; font-weight: 550; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: .945rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(29,111,224,.3); }
.btn-primary:hover { background: var(--accent-dk); box-shadow: 0 6px 18px rgba(29,111,224,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3e2; background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  padding: 78px 0 66px;
  background:
    radial-gradient(900px 380px at 15% -10%, var(--accent-lt), transparent 60%),
    radial-gradient(700px 340px at 92% 0%, #e4f7f1, transparent 62%);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-dk); background: #fff; border: 1px solid #cfe0fa;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: clamp(1.04rem, .97rem + .38vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 15px; font-size: .875rem; color: var(--muted); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .855rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); color: #e8edf6; }
.section-dark h2 { color: #fff; }
.section-dark .section-lede { color: #a9b6cd; }
.section-head { max-width: 68ch; margin-bottom: 42px; }
.section-lede { color: var(--ink-soft); margin-top: 14px; font-size: 1.03rem; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: .945rem; }
.card-icon {
  width: 36px; height: 36px; border-radius: 9px; margin-bottom: 14px;
  display: grid; place-items: center; background: var(--accent-lt); color: var(--accent-dk);
  font-weight: 800; font-size: .95rem;
}
.section-dark .card { background: #141e33; border-color: #24314c; box-shadow: none; }
.section-dark .card p { color: #a9b6cd; }
.section-dark .card-icon { background: #1d2b47; color: #7fb0f5; }

/* ---------- cycle ---------- */
.cycle { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cycle-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.cycle-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 13px;
  border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: .85rem;
}
.cycle-step h3 { font-size: .99rem; margin-bottom: 7px; }
.cycle-step p { font-size: .885rem; color: var(--ink-soft); }
.cycle-step .who { display: block; margin-top: 11px; font-size: .77rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-dk); }

/* ---------- model table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .925rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 700; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: 0; }
td code { font-family: var(--mono); font-size: .875em; background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; }

/* ---------- lists ---------- */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.check li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .955rem; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 15px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.section-dark .check li { color: #b7c3d8; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.price.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price.featured::after {
  content: "Most adopted"; position: absolute; top: -11px; left: 26px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 750;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; }
.price .amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.price .amount small { font-size: .88rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.price .desc { color: var(--ink-soft); font-size: .93rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 13px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- cta ---------- */
.cta { text-align: center; padding: 80px 0; background: var(--bg-dark); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #a9b6cd; max-width: 56ch; margin: 16px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: #08101d; color: #8e9db6; padding: 52px 0 34px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a { color: #8e9db6; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #17233a;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .price-grid, .cycle, .stat-row { grid-template-columns: 1fr; }
  .section { padding: 58px 0; }
  .hero { padding: 56px 0 48px; }
}

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