/* ============================================================
   Landing page — professional / corporate / red accent
   ============================================================ */

body.landing { background: var(--bg); color: var(--ink); }

/* ---------- nav ---------- */
.nav-glass {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-glyph {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  letter-spacing: -.02em;
}
.brand-name {
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.brand-dot { display: none; }
.brand-sub  { font-weight: 500; color: var(--ink-mute); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

.nav-glass nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav-glass nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  transition: color .15s;
}
.nav-glass nav a:not(.cta-small):hover { color: var(--ink); }
.nav-glass nav a:not(.cta-small):hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red);
}

.nav-search, .nav-flag {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
}
.nav-search { font-size: 14px; }
.nav-flag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}
.nav-flag .flag {
  display: inline-block;
  width: 18px; height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6b6b 33%, #f1f1f1 33% 66%, #5b8aff 66%);
  vertical-align: middle;
}
.cta-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--red);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .15s, transform .15s;
}
.cta-small:hover { background: var(--red-deep); transform: translateY(-1px); }

/* ---------- main ---------- */
main {
  position: relative;
  padding: 0 56px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* removed mesh-bg variables (still present in markup but invisible on white) */
.mesh-bg { display: none; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 70px 0 80px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  border-radius: 0;
}
.hero-eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--ink-soft);
  display: inline-block;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 22px 0 26px;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}
.hero-ctas {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(209,31,42,.22);
  transition: background .15s, transform .15s;
}
.cta-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.cta-primary.big { padding: 17px 30px; font-size: 16px; }
.cta-ghost {
  padding: 15px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 500;
  font-size: 14.5px;
  transition: border-color .15s, color .15s;
}
.cta-ghost:hover { border-color: var(--red); color: var(--red); }

.hero-marquee {
  margin-top: 40px;
  height: 22px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  letter-spacing: .14em;
}
.hero-marquee span {
  display: inline-block;
  padding-right: 60px;
  white-space: nowrap;
  animation: marq 38s linear infinite;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero right panel ---------- */
.card-stack {
  position: relative;
  height: 520px;
}

.card-tree {
  position: absolute;
  inset: 0 0 0 0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.card-tree::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(209,31,42,.22), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(47,90,255,.18), transparent 60%);
  pointer-events: none;
}
.card-tree-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.card-tree-head .green {
  display: inline-flex; align-items: center; gap: 6px;
  color: #5edc8f;
}
.card-tree-head .green::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #5edc8f; box-shadow: 0 0 0 4px rgba(94,220,143,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(94,220,143,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(94,220,143,.06); }
}

.mini-tree {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: space-around;
  padding: 24px 0 0;
}
.mini-tree .row { display: flex; justify-content: center; gap: 26px; position: relative; z-index: 1; }
.mini-tree .node {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  letter-spacing: 0;
  color: #fff;
}
.mini-tree .node.m { border-left: 3px solid #6bb1ff; }
.mini-tree .node.f { border-left: 3px solid #ff85b0; }
.couple { display: inline-flex; align-items: center; gap: 14px; }
.marriage {
  width: 22px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.tree-links { position: absolute; inset: 24px 0 0; pointer-events: none; }

.card-foot {
  position: relative;
  display: flex; gap: 10px; align-items: center;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 18px;
  margin-top: 14px;
}
.badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(209,31,42,.18);
  border: 1px solid rgba(209,31,42,.4);
  font-size: 11px;
  color: #ff7a82;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--f-mono);
}
.badge.subtle {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  font-weight: 500;
}

.card-stat, .card-meta { display: none; }   /* simplified hero — one main card */

/* ---------- sections ---------- */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 32px;
  color: var(--ink);
  line-height: 1.05;
}
.section-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}

.features {
  padding: 90px 0 60px;
  border-bottom: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}
.feature {
  padding: 32px 30px 36px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .2s;
  min-height: 210px;
}
.feature-grid > .feature:nth-child(3n) { border-right: none; }
.feature-grid > .feature:nth-last-child(-n+3) { border-bottom: none; }
.feature:hover { background: var(--bg-soft); }
.f-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--red);
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
}
.feature h3 {
  font-family: var(--f-display);
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 14.5px;
}
.feature code {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--red-tint);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--red-deep);
  font-weight: 600;
}

/* ---------- pipeline ---------- */
.pipeline {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.pipeline-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pipeline-row li {
  position: relative;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.pipeline-row li:last-child { border-right: none; }
.pipeline-row li::after { display: none; }
.p-step {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 700;
}
.pipeline-row b {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.pipeline-row p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- data section ---------- */
.data-panel { padding: 80px 0 40px; }
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.d-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.d-card:hover { border-color: var(--red); transform: translateY(-2px); }
.d-card h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  font-weight: 700;
}
.d-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 14.5px;
}
.d-card code {
  font-family: var(--f-mono);
  font-size: 12px;
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 5px;
  color: var(--ink);
  border: 1px solid var(--line);
}

.launch-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 48px;
  border-radius: 18px;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.launch-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(209,31,42,.30), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(47,90,255,.18), transparent 60%);
  pointer-events: none;
}
.launch-rail > * { position: relative; z-index: 1; }
.launch-rail h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
  color: #fff;
}
.launch-rail p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.7); }
.launch-rail .cta-primary {
  background: var(--red);
  box-shadow: 0 12px 30px rgba(209,31,42,.4);
}
.launch-rail .cta-primary:hover { background: var(--red-deep); }

/* ---------- footer ---------- */
.foot {
  margin-top: 80px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-glass { padding: 16px 24px; }
  main { padding: 0 24px 60px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 50px 0 60px; }
  .card-stack { height: 440px; max-width: 580px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid > .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-grid > .feature:nth-child(2n) { border-right: none; }
  .pipeline-row { grid-template-columns: repeat(3, 1fr); }
  .pipeline-row li:nth-child(3n) { border-right: none; }
  .pipeline-row li { border-bottom: 1px solid var(--line); }
  .data-grid { grid-template-columns: 1fr; }
  .launch-rail { flex-direction: column; gap: 24px; text-align: center; padding: 36px; }
}
@media (max-width: 720px) {
  .nav-glass nav { gap: 14px; font-size: 13px; }
  .feature-grid { grid-template-columns: 1fr; }
  .pipeline-row { grid-template-columns: 1fr; }
}
