/* ====================================================
   ascentX — brand tokens
   ==================================================== */
:root {
  --black: #000000;
  --white: #ffffff;
  --charcoal: #0d0d0d;
  --gray-bg: #f2f2f2;

  --text: #0d0d0d;
  --text-muted: #666666;
  --text-faint: #999999;
  --border: #e0e0e0;

  --font: "Avenir", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--black);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 999;
}

/* ====================================================
   Buttons
   ==================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--black);
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ====================================================
   Nav
   ==================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 12px;
  flex: 1;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-cta {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 32px 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
  text-align: center;
}
.nav-mobile.open {
  display: flex;
}

/* ====================================================
   Reveal animation
   ==================================================== */
/* Hidden-until-revealed state only applies once JS confirms it can
   animate it back in — keeps content visible with no-JS / slow JS. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero is above the fold — animate on load via plain CSS, no JS/observer
   dependency, so it never has a chance to render hidden. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  animation: heroIn 0.7s var(--ease) both;
}
.hero-anim-1 { animation-delay: 0s; }
.hero-anim-2 { animation-delay: 0.08s; }
.hero-anim-3 { animation-delay: 0.16s; }
.hero-anim-4 { animation-delay: 0.24s; }
.hero-anim-5 { animation-delay: 0.32s; }

/* ====================================================
   Hero
   ==================================================== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-split {
  text-align: left;
  padding: 110px 0 86px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-grid {
  max-width: 900px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.5);
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 900px;
}

.text-muted {
  color: var(--text-faint);
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 700px;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-inner .hero-actions,
.cta-inner .hero-actions {
  justify-content: center;
}

/* ====================================================
   Logos strip
   ==================================================== */
.logos-strip {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.logos-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

.logos-track span {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.logos-track span:hover {
  color: var(--black);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====================================================
   Section shared
   ==================================================== */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
  max-width: 720px;
}

.section-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
}

.text-white {
  color: var(--white);
}

/* product showcase */
.showcase {
  padding-top: 75px;
}

.platform-showcase {
  margin-top: 80px;
  padding: 80px 0;
  background: var(--gray-bg);
}

.showcase-copy {
  max-width: 760px;
}

.showcase-frame {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--gray-bg);
}

.showcase-frame img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* problem visual */
.problem-visual {
  margin-top: 48px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: center;
}

.problem-visual img {
  width: 100%;
  max-width: 720px;
}

/* card grid */
.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--black);
  transform: translateY(-4px);
}

.card-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* stats band */
.stats-band {
  margin-top: 80px;
  padding: 64px 0;
  background: var(--gray-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-num {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: 0;
}

.stat-label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  min-height: 42px;
}

.stat-source {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-footnote {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* steps */
.steps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  border-top: 2px solid var(--black);
  padding-top: 20px;
}

.step-index {
  font-size: 22px;
  font-weight: 700;
}

.step-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

/* architecture */
.architecture {
  margin-top: 80px;
  padding: 64px 0;
  background: var(--charcoal);
  color: var(--white);
}

section.architecture {
  margin-top: 0;
  padding: 100px 0;
}

.arch-title {
  font-size: 26px;
  font-weight: 600;
}

.arch-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
}

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

.arch-col-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.arch-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.arch-list li strong {
  font-size: 15px;
  font-weight: 600;
}

.arch-list li span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.arch-visual-wide {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.product-band {
  background: var(--white);
}

.use-case {
  background: var(--gray-bg);
}

.case-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.case-summary {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.case-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.case-summary h3 {
  margin-top: 14px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.case-summary p:last-child {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.case-badges {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 600;
}

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

.case-flow > div {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.case-flow span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
}

.case-flow h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
}

.case-flow p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
}

.feature-row h3 {
  font-size: 19px;
  font-weight: 600;
}

.feature-row p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.text-soft {
  color: rgba(255, 255, 255, 0.65);
}

.mcp-video-frame {
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.mcp-video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px;
  background: var(--charcoal);
  object-fit: cover;
}

.mcp-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mcp-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
}

.mcp-card h3 {
  margin-top: 14px;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.mcp-card p:last-child {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.arch-visual-wide img {
  width: 100%;
  max-width: 640px;
}

.arch-connects-label {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-connects {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* templates */
.templates-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.template-card {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.template-card:hover {
  background: var(--black);
  transform: translateY(-4px);
}
.template-card:hover * {
  color: var(--white) !important;
}

.template-card h3 {
  font-size: 18px;
  font-weight: 600;
}

.template-flow {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.template-stack {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* dark section / category creation */
.section-dark {
  background: var(--black);
}

.compare-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-col {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 32px;
}

.compare-col-active {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.compare-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.compare-headline {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
}

.compare-body {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.flow-strip {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 600;
  color: var(--white);
}

.flow-arrow {
  color: rgba(255, 255, 255, 0.35);
}

/* footer */
.footer {
  background: var(--charcoal);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-logo img {
  height: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ====================================================
   Responsive
   ==================================================== */
@media (max-width: 920px) {
  .card-grid,
  .steps-grid,
  .arch-grid,
  .templates-grid,
  .compare-grid,
  .case-flow,
  .mcp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid,
  .case-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .nav-links {
    gap: 18px;
  }
  .nav-links a {
    font-size: 13.5px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 88px 0 56px;
  }
  .hero-split {
    text-align: left;
  }
  .hero-title {
    font-size: clamp(36px, 11vw, 54px);
  }
  .hd-systems {
    flex-wrap: wrap;
  }
  .hd-node {
    flex: 1 1 40%;
  }
  .hd-lines {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid,
  .steps-grid,
  .arch-grid,
  .templates-grid,
  .compare-grid,
  .case-flow,
  .mcp-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .flow-strip {
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    gap: 14px 20px;
  }
}
