/* / */
/* Homepage-specific */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

  /* ---- Hero bleed -------------------------------------------------------
     The screenshot leaves the page on the right instead of sitting in a boxed
     card. The ::after gradient below was already faking this — fading the
     image out at the right and bottom edges — so the bleed just makes the
     fade honest.

     `100%` here is the width of .hero, which excludes the scrollbar; `100vw`
     does not, and would overshoot by the scrollbar width and add a horizontal
     scrollbar. The left padding still resolves to exactly where every other
     section's content starts, so nothing above or below it shifts. */
  @media (min-width: 1100px) {
    .hero > .container {
      max-width: none;
      padding-left: max(var(--space-8), calc((100% - var(--container)) / 2 + var(--space-8)));
      /* Reaches past the text column but stops short of the viewport edge —
         half the outer gutter. Running it all the way out made the visual
         dominate the headline it is meant to support. */
      padding-right: max(var(--space-8), calc((100% - var(--container)) / 4));
    }
    .hero-visual {
      /* A 5/4 box would stand ~530px tall in the wider column; 16/10 keeps the
         hero to roughly the height it had before. */
      aspect-ratio: 16 / 10;
    }
  }

  .hero-visual {
    position: relative;
    aspect-ratio: 5/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
      radial-gradient(ellipse 50% 45% at 22% 26%, rgba(85, 194, 94, 0.40), transparent 65%),
      radial-gradient(ellipse 80% 80% at 50% 50%, #0c1a13 0%, #06100a 70%);
    border: 1px solid color-mix(in oklab, var(--primary) 20%, var(--border));
  }
  .hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(to right, transparent 55%, #06100a 100%),
      linear-gradient(to bottom, transparent 55%, #06100a 100%);
  }
  [data-theme="light"] .hero-visual::after {
    background:
      linear-gradient(to right, transparent 55%, var(--bg) 100%),
      linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  }
  [data-theme="light"] .hero-visual {
    background:
      radial-gradient(ellipse 50% 45% at 22% 26%, rgba(85, 194, 94, 0.30), transparent 65%),
      var(--bg);
    border-color: color-mix(in oklab, var(--primary-strong) 25%, var(--border));
  }
  .hero-visual img {
    position: absolute;
    top: 14%;
    left: 14%;
    width: 96%;
    /* The intrinsic width/height attributes reserve the box; `height: auto`
       keeps the aspect ratio while the percentage width drives the size. */
    height: auto;
    border-radius: 10px 0 0 0;
    box-shadow:
      0 0 0 1px rgba(85, 194, 94, 0.20),
      -14px -14px 50px rgba(85, 194, 94, 0.26),
      0 36px 70px rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  }
  .hero-visual img.is-active { opacity: 1; }
  .hero-visual:hover img.is-active { transform: translate(-8px, -8px); }
  [data-theme="light"] .hero-visual img {
    box-shadow:
      0 0 0 1px rgba(85, 194, 94, 0.22),
      -12px -12px 48px rgba(85, 194, 94, 0.20),
      0 28px 56px rgba(20, 40, 22, 0.22);
  }

  /* Carousel controls */
  .hero-visual .carousel-controls {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px var(--space-2);
    border-radius: var(--radius-full);
    /* The pill floats over a screenshot whose brightness changes per slide, so
       the scrim is opaque enough to keep the labels legible on all three. */
    background: rgba(6, 16, 10, 0.72);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid rgba(85, 194, 94, 0.22);
    z-index: 2;
  }
  .hero-visual .carousel-controls button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    border: 0;
    background: transparent;
    /* Was 0.55 — too faint against the lighter screenshots. */
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: var(--text-2xs);
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  }
  /* 44px touch target without inflating the pill. */
  .hero-visual .carousel-controls button::after {
    content: "";
    position: absolute;
    inset: -11px -2px;
  }
  .hero-visual .carousel-controls button:hover { color: #fff; }
  .hero-visual .carousel-controls button.is-active {
    color: #fff;
    background: rgba(85, 194, 94, 0.28);
  }
  .hero-visual .carousel-controls button.is-active i {
    opacity: 1;
    color: var(--primary);
  }
  .hero-visual .carousel-controls button i {
    font-size: var(--text-sm);
    opacity: 0.9;
  }
  /* Play/pause sits slightly apart from the three slide buttons. */
  .hero-visual .carousel-controls .carousel-toggle {
    margin-left: 2px;
    padding: var(--space-1);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding-left: var(--space-2);
  }
  .hero-visual .carousel-controls .carousel-toggle i { font-size: var(--text-xs); }

  /* Pillars */
  .pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  .pillar {
    background: var(--surface);
    padding: var(--space-8);
  }
  .pillar .num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: var(--space-6);
  }
  .pillar h3 { margin-bottom: var(--space-3); }
  .pillar p { color: var(--muted); font-size: var(--text-base); }

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