/* ==============================================
   BEM.css — Structural building blocks
   ================================================
   Layout, spacing, sizing, and structural rules only.
   All colors, fonts, and visual "look" live in theme.css
   and are pulled in here via CSS custom properties (var(--...)).
   Load order does not matter (no overlapping properties between
   the two files), but BEM.css, then theme.css is standard.
   ============================================== */

/* ---------- Global box sizing ---------- */

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

/* ---------- RESET ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.55;
  overflow-x: hidden;
}

/* Grain texture, used as atmosphere */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  line-height: 1.08;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

/* ---------- Top ribbon ---------- */

.ribbon {
  padding: 0.55rem 0;
  text-align: center;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid;
}

.ribbon span {
  margin: 0 0.75rem;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ----------Screen-reader only utility — hides labels visually ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  max-width: var(--container);
  margin: 0 auto;
}

/* --------- Brand / logo --------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 2px;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

/* ----------- Nav links ----------- */

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: underline 0px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  text-decoration: underline 0px;
}

.nav-cta {
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid;
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }
}

/* ------- Social icons (in nav) ------- */

.social-links {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid;
  transition: background 0.15s, border-color 0.15s;
}

.social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

@media (max-width: 700px) {
  .social-link {
    display: none;
  }
}

/* ---------- Section 1: Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
}

.hero h1 {
  line-height: 0.98;
  margin-bottom: 1.5rem;
}

.hero h1 .block {
  display: block;
}

.hero-lede {
  max-width: 56ch;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.btn .arrow {
  transition: transform 0.25s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* --- Section 2: Hero right column: the "ticker card" --- */

.hero-card {
  padding: 2.2rem 2rem 2rem;
  border-top: 3px solid;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 40%;
  height: 3px;
}

.hero-card-label {
  margin-bottom: 1rem;
}

.hero-card-title {
  margin-bottom: 1.75rem;
  line-height: 1.15;
}

.hero-stack {
  display: grid;
  gap: 1rem;
}

.hero-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 1px solid;
}

.hero-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-stat-num {
  line-height: 1;
}

.hero-stat-label {
  line-height: 1.35;
}

/* --- Section 3: Metrics strip --- */

.metrics {
  padding: 2.5rem 0;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 820px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric {
  padding: 1.25rem 1.5rem;
  border-left: 1px solid;
  position: relative;
}

.metric:first-child {
  border-left: none;
}

@media (max-width: 820px) {
  .metric {
    border-left: none;
    border-top: 1px solid;
    padding-top: 1.5rem;
  }

  .metric:nth-child(-n+2) {
    border-top: none;
    padding-top: 0;
  }

  .metric:nth-child(2) {
    border-left: 1px solid;
  }

  .metric:nth-child(4) {
    border-left: 1px solid;
  }
}

.metric-num {
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* --- Section 4: Generic section --- */

section.block {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

.section-head p {
  max-width: 58ch;
}

/* ---- Section 5: Math proof ---- */

.math {
  border: 1px solid;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 820px) {
  .math {
    grid-template-columns: 1fr;
  }
}

.math-col {
  padding: 0 1.75rem;
  border-left: 1px solid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.math-col:first-child {
  border-left: none;
  padding-left: 0;
}

@media (max-width: 820px) {
  .math-col {
    border-left: none;
    border-top: 1px solid;
    padding: 1.5rem 0;
  }

  .math-col:first-child {
    border-top: none;
    padding-top: 0;
  }
}

.math-label {
  margin-bottom: 0.75rem;
}

.math-main {
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

/* --- Section 6: The Problem (Two cards) --- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card {
  border-top: 4px solid;
  padding: 2.25rem 2rem;
  position: relative;
}

.problem-card h3 {
  margin-bottom: 0.4rem;
}

.problem-card .sub {
  margin-bottom: 1.75rem;
}

.problem-card .result-label {
  margin-bottom: 0.5rem;
}

.problem-card .result {
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* --- Section 8: Competitors table --- */

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table thead th {
  text-align: left;
  padding: 1rem 1.25rem;
}

.comp-table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid;
  vertical-align: top;
}

.comp-table tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 760px) {
  .comp-table thead th, .comp-table tbody td {
    padding: 0.75rem 0.8rem;
  }
}

/* ----- Section 9: Products Grid ----- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

@media (max-width: 560px) {
  .markets-grid {
    grid-template-columns: 1fr;
  }
}

.products {
  border-left: 3px solid;
  padding: 1.5rem 1.5rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products:hover {
  transform: translateY(-2px);
}

.products h4 {
  margin-bottom: 0.35rem;
}

.products .coc {
  line-height: 1;
  margin: 0.4rem 0 0.8rem;
}

.products-note {
  margin-top: 2rem;
  text-align: center;
}

/* ---- Section 10: Secondary Grid ---- */

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

@media (max-width: 560px) {
  .secondary-grid {
    grid-template-columns: 1fr;
  }
}

.grid-card {
  padding: 1.75rem 1.5rem;
  border-top: 2px solid;
}

.grid-card-num {
  line-height: 1;
  margin-bottom: 0.5rem;
}

.grid-card-label {
  line-height: 1.35;
}

/* ---- Section 11: Donut Chart ---- */

.chart {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 820px) {
  .chart {
    grid-template-columns: 1fr;
  }
}

.donut-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.donut {
  width: 100%;
  max-width: 340px;
  height: auto;
}

.chart-list {
  display: grid;
  gap: 0.9rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 1.25rem;
  border-left: 3px solid;
}

.chart-pct {
  line-height: 1.1;
}

.chart-title {
  margin-bottom: 0.2rem;
}

/* ---- Section 12: Waterfall ---- */

.waterfall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
  .waterfall {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wf-step {
  padding: 1.5rem 1.25rem;
  text-align: left;
  border-top: 3px solid;
  position: relative;
}

.wf-num {
  line-height: 1;
  margin-bottom: 0.75rem;
}

.wf-title {
  margin-bottom: 0.4rem;
}

.wf-split {
  margin-bottom: 0.6rem;
}

.wf-desc {
  line-height: 1.4;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
}

.tier-table thead th {
  text-align: left;
  padding: 0.95rem 1.25rem;
}

.tier-table tbody td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid;
}

.tier-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Section 13: Packages --- */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.packages-card {
  padding: 0;
  overflow: hidden;
}

.packages-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.packages-body {
  padding: 0.5rem 1.5rem 1.5rem;
}

.packages-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid;
}

.packages-row:last-child {
  border-bottom: none;
}

/* --- Section 14: Carousel strip --- */

.carousel {
  overflow: hidden;
  padding: 2.5rem 0;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: scroll 60s linear infinite;
  width: max-content;
}

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

.logo-item {
  flex-shrink: 0;
  margin: 0 20px;
  transition: transform 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-10px);
}

.logo-item img {
  height: 100px;
  width: auto;
  display: block;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------- Section 15: Team ------- */

.team-list {
  display: grid;
  gap: 1rem;
}

.team-card {
  border-left: 3px solid;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .team-card {
    grid-template-columns: 1fr;
  }
}

.team-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.team-bio {
  line-height: 1.6;
}

.team-equity {
  white-space: nowrap;
  padding-top: 0.3rem;
}

.entity-note {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  text-align: center;
}

.entity-note .sep {
  margin: 0 0.6rem;
}

/* ---- Section 16: CTA block ---- */

.cta-block {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 820px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

.cta-inner h2 {
  margin-bottom: 1rem;
}

.cta-inner p {
  max-width: 52ch;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-actions .btn {
  width: 100%;
  justify-content: center;
}

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

footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid;
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-brand {
  margin-bottom: 0.5rem;
}

.foot-tag {
  max-width: 40ch;
}

.foot-contact {
  display: grid;
  gap: 0.5rem;
}

.foot-contact strong {
  display: block;
  margin-bottom: 0.25rem;
}

.foot-contact a {
  text-decoration: none;
}

.disclaimer {
  padding-top: 2rem;
  line-height: 1.65;
  text-align: center;
}

.disclaimer .pipe {
  margin: 0 0.5rem;
}

/* --- Footer Social links --- */

.foot-social {
  height: 1rem;
  text-align: center;
}

.foot-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid;
  transition: background 0.15s, border-color 0.15s;
}

.foot-social-link svg {
  width: 15px;
  height: 15px;
  display: block;
}

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

.footer_copyright {
  padding-top: 2rem;
  line-height: 1.65;
  text-align: center;
}

@keyframes rain-fall {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(110vh);
    }
}

@media (prefers-reduced-motion: reduce) {
  .rain,
    .drop {
    animation: none !important;
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ----- Section divider ----- */

.rule {
  width: 60px;
  height: 3px;
  margin-bottom: 1.5rem;
}
