/*
 * Pyragonics — public homepage styles
 *
 * Visual language follows Pyragonics Hub's established Product Horizon
 * system (see pyragonics-hub/UI-STYLE-GUIDE.md and its live token block
 * in src/index.ts): deep ink-navy surfaces, cool white text, restrained
 * indigo/violet accents, thin low-contrast borders, Geist typography.
 * This is a marketing site, not an application shell, so spacing and
 * type scale run more spacious than the dense Hub interface.
 */

/* ---------------------------------------------------------------------
   Fonts — self-hosted Geist / Geist Mono, same files Hub ships, so the
   public site and the authenticated product render with the same face.
   ------------------------------------------------------------------- */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  /* Surfaces */
  --color-bg: #0a0e18;
  --color-bg-deep: #05070d;
  --color-surface: #0e1422;
  --color-surface-raised: #121a2c;
  --color-surface-hover: #162037;
  --color-input: #0c1220;

  /* Borders */
  --color-border: rgba(174, 194, 229, 0.14);
  --color-border-strong: rgba(174, 194, 229, 0.26);
  --color-divider: rgba(174, 194, 229, 0.1);

  /* Text */
  --color-text: #f3f6ff;
  --color-text-secondary: #a6b0c8;
  --color-text-muted: #7c869f;

  /* Brand / interaction */
  --color-primary: #6466dc;
  --color-primary-hover: #7476e8;
  --color-primary-active: #5457c4;
  --color-primary-soft: rgba(100, 102, 220, 0.16);
  --color-primary-text: #ffffff;
  --color-focus: #8589ff;

  /* Semantic (used sparingly — status badges only) */
  --color-success: #6fd8ba;
  --color-success-soft: rgba(111, 216, 186, 0.14);
  --color-warning: #f1bd67;
  --color-warning-soft: rgba(241, 189, 103, 0.14);
  --color-info: #71b7ff;
  --color-info-soft: rgba(113, 183, 255, 0.14);

  /* Effects */
  --shadow-panel: 0 12px 32px rgba(2, 3, 8, 0.4);
  --shadow-panel-lg: 0 28px 70px rgba(2, 3, 8, 0.5);
  --focus-ring: 0 0 0 3px rgba(133, 137, 255, 0.34);

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 96px;

  /* Type */
  --font-body: "Geist", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Geist", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --content-width: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --motion-fast: 140ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

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

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

svg {
  display: block;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--motion-base) var(--ease-standard);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

@media (max-width: 1199px) {
  .wrap {
    padding-inline: var(--space-6);
  }
}

@media (max-width: 767px) {
  .wrap {
    padding-inline: var(--space-4);
  }
}

section {
  position: relative;
}

.section-pad {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-pad-tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-focus);
  margin-bottom: var(--space-4);
}

.h1-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.4vw + 1rem, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.h2-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.h3-card {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-text);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 54ch;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 62ch;
}

.center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}

/* ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard),
    color var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-secondary:hover {
  background: var(--color-surface-raised);
  border-color: rgba(174, 194, 229, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding-inline: var(--space-4);
}
.btn-ghost:hover {
  color: var(--color-text);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 52px;
  padding-inline: var(--space-7);
  font-size: 1rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-focus);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--motion-base) var(--ease-standard);
}
.link-arrow:hover {
  gap: var(--space-3);
  color: var(--color-text);
}
.link-arrow:hover svg {
  transform: translateX(2px);
}

/* ---------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(10, 14, 24, 0.82);
  border-bottom: 1px solid var(--color-divider);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: blur(10px);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.brand svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.brand-word {
  text-transform: uppercase;
}
.brand-logo {
  height: 36px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--motion-base) var(--ease-standard);
  padding-block: var(--space-2);
}
.primary-nav a:hover {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-actions .btn {
  min-height: 40px;
  padding-inline: var(--space-5);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.nav-toggle:hover {
  background: var(--color-surface-raised);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 90;
  background: var(--color-bg);
  overflow-y: auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard),
    visibility 0s linear var(--motion-base);
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-7);
}
.mobile-nav a.mobile-nav-link {
  display: block;
  padding: var(--space-4) var(--space-3);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 1023px) {
  .primary-nav {
    display: none;
  }
  /* Both CTAs already live in the mobile drawer — keep the collapsed
     header to brand + menu toggle so it can't crowd/overflow on narrow
     phones. */
  .header-actions .btn-secondary,
  .header-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */

.hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(64px, 8vw, 104px);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy .lead {
  margin-top: var(--space-5);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-7);
  flex-wrap: wrap;
}

.hero-microcopy {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-microcopy svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* Visual composition — restrained Product Horizon motif */

.horizon-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-panel-lg);
  aspect-ratio: 5 / 4.6;
  background: var(--color-bg-deep) url("../img/product-horizon.webp") center 78% / cover no-repeat;
}

.horizon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 82% 0%, rgba(100, 102, 220, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.15) 0%, rgba(5, 7, 13, 0.55) 78%, rgba(5, 7, 13, 0.82) 100%);
}

.horizon-panel-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3.4vw, 32px);
}

.surface-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.surface-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(18, 26, 44, 0.92), rgba(14, 20, 34, 0.92));
  border: 1px solid var(--color-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px rgba(2, 3, 8, 0.35);
  backdrop-filter: blur(6px);
}

.surface-card.is-primary {
  border-color: rgba(133, 137, 255, 0.5);
  transform: translateX(0) scale(1);
}
.surface-card.is-secondary {
  transform: translateX(14px) scale(0.96);
  opacity: 0.92;
}
.surface-card.is-tertiary {
  transform: translateX(28px) scale(0.92);
  opacity: 0.8;
}

.surface-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, rgba(133, 137, 255, 0.24), rgba(100, 102, 220, 0.12));
  border: 1px solid rgba(133, 137, 255, 0.32);
  color: var(--color-focus);
}
.surface-card-icon svg {
  width: 20px;
  height: 20px;
}

.surface-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.surface-card-name {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--color-text);
}
.surface-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.surface-card-status {
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: none;
  }
  .horizon-panel {
    aspect-ratio: 16 / 9;
    order: 2;
  }
}

@media (max-width: 639px) {
  .horizon-panel {
    aspect-ratio: 4 / 3.4;
  }
  .surface-card.is-secondary,
  .surface-card.is-tertiary {
    display: none;
  }
  /* Not enough width for icon + name + description + badge in one row —
     drop the description and let the badge wrap under the name instead
     of colliding with it. */
  .surface-card {
    flex-wrap: wrap;
    row-gap: var(--space-2);
  }
  .surface-card-desc {
    display: none;
  }
  .surface-card-status {
    margin-left: 56px;
  }
}

/* ---------------------------------------------------------------------
   Status badges
   ------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-live {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.badge-soon {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}
.badge-free {
  background: var(--color-info-soft);
  color: var(--color-info);
}
.badge-neutral {
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.badge-neutral::before {
  display: none;
}

/* ---------------------------------------------------------------------
   Cards (shared)
   ------------------------------------------------------------------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

/* ---------------------------------------------------------------------
   Ecosystem section
   ------------------------------------------------------------------- */

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

.eco-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--motion-base) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
}
.eco-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.eco-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-focus);
}
.eco-card-icon svg {
  width: 22px;
  height: 22px;
}

.eco-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 639px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Products section
   ------------------------------------------------------------------- */

.product-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: var(--space-8);
}
.product-block + .product-block {
  border-top: 1px solid var(--color-divider);
}

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.product-eyebrow-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-focus);
}
.product-eyebrow-mark svg {
  width: 18px;
  height: 18px;
}
.product-eyebrow-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.product-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.6vw + 0.8rem, 1.875rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  max-width: 22ch;
}

.product-block .body-copy {
  margin-bottom: var(--space-6);
}

.product-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(160deg, var(--color-surface-raised), var(--color-surface));
  box-shadow: var(--shadow-panel);
  aspect-ratio: 4 / 3;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 100% 0%, rgba(100, 102, 220, 0.16), transparent 60%);
  pointer-events: none;
}

.mock-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.mock-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-focus);
  flex-shrink: 0;
}
.mock-row-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product visual variant for a real interface screenshot (Document Forge)
   instead of the mock-row composition — reuses the .hub-mock-bar /
   .hub-mock-dots / .hub-mock-url browser-chrome classes from the Hub
   section for visual consistency. */
.product-visual.has-shot {
  padding: 0;
  aspect-ratio: 16 / 10;
}
.product-visual.has-shot img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 1023px) {
  .product-block {
    grid-template-columns: 1fr;
  }
  .product-visual {
    order: -1;
    aspect-ratio: 16 / 9;
    max-width: 480px;
  }
}

/* Free resources strip */

.resource-strip {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.resource-strip-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-info-soft);
  color: var(--color-info);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resource-strip-icon svg {
  width: 22px;
  height: 22px;
}
.resource-strip-body {
  flex: 1 1 320px;
}
.resource-strip-body h4 {
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--color-text);
  margin-bottom: 4px;
}
.resource-strip-body p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}
.resource-strip-body strong {
  color: var(--color-text);
  font-weight: 650;
}

/* ---------------------------------------------------------------------
   Philosophy section
   ------------------------------------------------------------------- */

.philosophy {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(1100px, 140%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(133, 137, 255, 0.55), transparent);
}

.philosophy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: min(1400px, 160%);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(100, 102, 220, 0.16), transparent 62%);
  pointer-events: none;
}

.philosophy .wrap {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.philosophy .overline {
  display: none;
}

.philosophy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}

.philosophy p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-inline: auto;
}
.philosophy p + p {
  margin-top: var(--space-4);
}
.philosophy p strong {
  color: var(--color-text);
  font-weight: 650;
}

/* ---------------------------------------------------------------------
   How it works
   ------------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}

.step-card {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-focus);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 639px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Hub / account section
   ------------------------------------------------------------------- */

.hub-section .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hub-copy .payoff {
  display: inline-block;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  border: 1px solid rgba(133, 137, 255, 0.32);
  color: var(--color-text);
  font-weight: 650;
  font-size: 0.9375rem;
}

.hub-mock {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel-lg);
  overflow: hidden;
}

.hub-mock-bar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--space-4);
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border);
}
.hub-mock-dots {
  display: flex;
  gap: 6px;
}
.hub-mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.hub-mock-url {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: var(--color-input);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 14px;
}

.hub-mock-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hub-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.hub-mock-head-id {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hub-mock-head-id svg {
  width: 22px;
  height: 22px;
}
.hub-mock-head-id span {
  font-weight: 650;
  font-size: 0.9375rem;
}
.hub-mock-account-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.hub-mock-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hub-mock-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
}
.hub-mock-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-soft);
  color: var(--color-focus);
}
.hub-mock-item-icon svg {
  width: 17px;
  height: 17px;
}
.hub-mock-item-body {
  flex: 1;
  min-width: 0;
}
.hub-mock-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
.hub-mock-item-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

@media (max-width: 1023px) {
  .hub-section .wrap {
    grid-template-columns: 1fr;
  }
  .hub-mock {
    max-width: 480px;
  }
}

/* ---------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(155deg, var(--color-surface-raised) 0%, var(--color-bg-deep) 100%);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 72px);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -30%;
  width: min(900px, 130%);
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(100, 102, 220, 0.2), transparent 65%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band p.lead {
  margin-inline: auto;
  margin-top: var(--space-4);
  text-align: center;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-top: var(--space-7);
}

.cta-band .hero-microcopy {
  justify-content: center;
}

.cta-band-secondary {
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}
.cta-band-secondary a {
  color: var(--color-focus);
  font-weight: 600;
}
.cta-band-secondary a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--color-surface-hover);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--motion-base) var(--ease-standard);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-focus);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 68ch;
}

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

.site-footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg-deep);
  padding-block: var(--space-9) var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-divider);
}

.footer-brand .brand {
  margin-bottom: var(--space-4);
}
.footer-brand p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a,
.footer-col span.muted-item {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-col span.muted-item {
  color: var(--color-text-muted);
  cursor: default;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Reveal-on-load (hero only; pure CSS, content visible without it)
   ------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-up 620ms var(--ease-standard) both;
  }
  .reveal-1 {
    animation-delay: 60ms;
  }
  .reveal-2 {
    animation-delay: 140ms;
  }
  .reveal-3 {
    animation-delay: 220ms;
  }
  @keyframes reveal-up {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
