/*
 * =========================================================
 * OLYTIC SOLUTIONS - Platform Page Styles
 * platform.css  /  Route: /platform
 *
 * Components:
 *   - Hero (dark, problem-led, no brand mark)
 *   - Stakes section (rhythmic three-statement block)
 *   - Solution intro (naming the platform)
 *   - Three capability tiles (Remembers / Enforces / Compounds)
 *   - Not-software section (strategic disqualifier)
 *   - Outcome framing (client-perspective statements)
 *   - CTA (professional, non-SaaS)
 *
 * Layout intentionally differs from other pages:
 *   - Uses asymmetric grids and full-bleed rhythm blocks
 *   - No evidence cards, no product cards
 *   - Reads more like a positioning document than a feature page
 *
 * Load order:
 *   tokens -> typography -> buttons -> nav -> footer -> layout -> platform
 * =========================================================
 */


/* ------------------------------------------------------------- */
/* SECTION 1: HERO                                               */
/* ------------------------------------------------------------- */

/*
 * Two-column layout. Left: strategic argument (margin/moat/amnesia).
 * Right: amnesia loop diagram — a visual that is unique to this page.
 * Dark Obsidian bg. No brand mark. No single-column eyebrow+headline
 * pattern used on every other page.
 */

.platform-hero {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Subtle grain texture */
.platform-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
}

/* Two-column grid: argument (wider) + diagram (narrower) */
.platform-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

/* ── Left column: the argument ── */

.platform-hero__content {
  /* text column */
}

.platform-hero__label {
  /* .label already handles mono/gold/uppercase — just add spacing */
  display: block;
  margin-bottom: var(--space-7);
  color: var(--color-gold);
  opacity: 0.85;
}

.platform-hero__headline {
  font-size: clamp(var(--text-3xl), 3.8vw, 52px);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-8);
}

.platform-hero__sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--leading-body);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.platform-hero__sub:last-of-type {
  margin-bottom: 0;
}

.platform-hero__cta {
  margin-top: var(--space-10);
}

/* ── Right column: platform icon SVG ── */

.platform-hero__diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
 * Single self-contained inline SVG. All visual properties live inside
 * SVG attributes. CSS just controls sizing and layout.
 */
.platform-icon-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .platform-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-14);
  }
}

@media (max-width: 900px) {
  .platform-hero {
    padding-top: calc(var(--nav-height-mobile) + var(--space-16));
    padding-bottom: var(--space-16);
    min-height: auto;
  }

  .platform-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .platform-hero__headline {
    font-size: var(--text-4xl);
  }

  .platform-hero__diagram {
    justify-content: flex-start;
  }

  .platform-icon-svg {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .platform-hero__headline {
    font-size: var(--text-3xl);
  }

  .platform-hero__sub {
    font-size: var(--text-base);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 2: STAKES                                             */
/* ------------------------------------------------------------- */

/*
 * Three rhythmic statements. Not a list. Not cards.
 * Reads like a cadence: consequence, consequence, reframe.
 * Surface bg, vertically stacked with breathing room.
 */

.stakes-section {
  /* .section--surface handles bg */
}

.stakes__inner {
  max-width: 680px;
  margin: 0 auto;
}

.stakes__statement {
  font-size: var(--text-lg);
  color: var(--color-navy);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-8);
  padding-left: var(--space-8);
  border-left: 2px solid var(--color-gold);
}

.stakes__statement:last-of-type {
  margin-bottom: 0;
}

.stakes__pivot {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: var(--border-default);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-obsidian);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .stakes__statement {
    font-size: var(--text-base);
    padding-left: var(--space-5);
  }
  .stakes__pivot {
    font-size: var(--text-lg);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 3: THE SOLUTION                                       */
/* ------------------------------------------------------------- */

/*
 * Names the platform. One solid paragraph. White bg.
 * Wider container but still constrained for readability.
 * Distinct from stakes via a centered layout.
 */

.solution-section {
  /* .section--white handles bg */
}

.solution__inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.solution__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-teal);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-6);
}

.solution__headline {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-8);
}

.solution__headline::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background-color: var(--color-gold);
  margin: var(--space-6) auto 0;
}

.solution__body {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  max-width: 64ch;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 640px) {
  .solution__headline {
    font-size: var(--text-2xl);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 4: THREE CAPABILITIES                                 */
/* ------------------------------------------------------------- */

/*
 * Three tiles, navy bg. Each tile: keyword heading + description.
 * Grid layout. Not cards with borders. Tiles with subtle glass bg.
 * This is the controlled reveal.
 */

.capabilities-section {
  /* .section--navy handles bg */
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.capability-tile {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast);
}

.capability-tile:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 169, 110, 0.30);
}

.capability-tile__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: var(--tracking-label);
  display: block;
  margin-bottom: var(--space-5);
}

.capability-tile__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.capability-tile__desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.70);
  line-height: var(--leading-body);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 5: NOT SOFTWARE                                       */
/* ------------------------------------------------------------- */

/*
 * The strategic disqualifier. Surface bg.
 * Two-column asymmetric: statement left, closer right.
 * Reads like a positioning document section.
 */

.not-software-section {
  /* .section--surface handles bg */
}

.not-software__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.not-software__main {
  /* left column */
}

.not-software__headline {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--weight-bold);
  color: var(--color-obsidian);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-4);
}

.not-software__headline::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 1px;
  background-color: var(--color-gold);
}

.not-software__body {
  font-size: var(--text-md);
  color: var(--color-body-steel);
  line-height: var(--leading-body);
  max-width: 58ch;
}

.not-software__aside {
  background-color: var(--color-obsidian);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.not-software__aside::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-teal);
}

.not-software__aside p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-body);
  font-weight: var(--weight-medium);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .not-software__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 6: OUTCOMES                                           */
/* ------------------------------------------------------------- */

/*
 * Three client-perspective statements. White bg.
 * Uses numbered large-format statements, not cards.
 * Each reads like something a managing partner would say.
 */

.outcomes-section {
  /* .section--white handles bg */
}

.outcomes__header {
  margin-bottom: var(--space-12);
}

.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 780px;
}

.outcome-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-8);
  border-bottom: var(--border-default);
}

.outcome-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.outcome-item__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-gold);
  letter-spacing: var(--tracking-label);
  padding-top: 0.35em;
}

.outcome-item__text {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-navy);
  line-height: var(--leading-body);
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .outcome-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .outcome-item__text {
    font-size: var(--text-base);
  }
}


/* ------------------------------------------------------------- */
/* SECTION 7: CTA                                                */
/* ------------------------------------------------------------- */

/*
 * Dark Obsidian bg. Professional-tone CTA.
 * Single column centered. One button. No dual CTA.
 */

.platform-cta-section {
  /* .section--dark handles bg */
}

.platform-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.platform-cta__inner h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--weight-bold);
  color: #FFFFFF;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-8);
}

.platform-cta__inner p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: var(--leading-body);
  max-width: 52ch;
  margin: 0 auto var(--space-10);
}

@media (max-width: 640px) {
  .platform-cta__inner h2 {
    font-size: var(--text-2xl);
  }
  .platform-cta__inner .btn {
    width: 100%;
    justify-content: center;
  }
}
