@layer reset, base, components;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; min-height: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    --space: #05070a;
    --surface: #111318;
    --text: #f7f8fa;
    --muted: #a8abb2;
    --solar: #eaa33c;
  }

  html { background: var(--space); }

  body {
    min-height: 100svh;
    background: var(--space);
    color: var(--text);
    font-family: 'Jura', 'Gill Sans', sans-serif;
    scroll-behavior: smooth;
  }

  html { scroll-behavior: smooth; }
}

@layer components {
  .landing-shell {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
  }

  .landing-video,
  .landing-shade {
    position: absolute;
    inset: 0;
  }

  /* Self-hosted background video: fills the shell, below the shade.
     Native muted autoplay loop with no controls, so no play/pause
     button is ever shown. */
  .landing-video {
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    background: var(--space);
  }

  .landing-shell {
    background: var(--space);
  }

  .landing-shade {
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.2), transparent 48%, rgba(5, 7, 10, 0.9));
  }

  .landing-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
  }

  .brand {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
  }

  .about-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 24px 24px 48px;
    text-align: center;
  }

  .hero-eyebrow {
    margin: 0;
    color: var(--solar);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .hero-title {
    margin: 0;
    font-size: clamp(38px, 9vw, 78px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .hero-sub {
    margin: 0;
    max-width: 46ch;
    color: var(--muted);
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.6;
    text-wrap: pretty;
  }

  .scroll-cue {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease;
  }

  .scroll-cue:hover { color: var(--text); }

  .explore-button {
    display: flex;
    width: min(88vw, 450px);
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--text);
    border-radius: 0;
    background: var(--text);
    box-shadow: 0 18px 60px rgba(5, 7, 10, 0.5);
    color: var(--space);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .explore-button:hover {
    background: rgba(17, 19, 24, 0.86);
    color: var(--text);
    transform: translateY(-3px);
  }

  .volume-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid rgba(247, 248, 250, 0.28);
    border-radius: 0;
    background: rgba(5, 7, 10, 0.42);
    backdrop-filter: blur(10px);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .volume-button:hover {
    border-color: rgba(247, 248, 250, 0.5);
    color: var(--text);
  }

  .volume-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .volume-button .icon-on { display: none; }
  .volume-button .icon-off { display: block; }

  .volume-button.is-on {
    border-color: var(--solar);
    color: var(--solar);
  }

  .volume-button.is-on .icon-on { display: block; }
  .volume-button.is-on .icon-off { display: none; }

  .about-trigger:focus-visible,
  .explore-button:focus-visible,
  .volume-button:focus-visible,
  .about-close:focus-visible {
    outline: 2px solid var(--solar);
    outline-offset: 4px;
  }

  .about-panel {
    width: min(92vw, 560px);
    max-height: min(82svh, 680px);
    margin: auto;
    padding: 36px;
    overflow: auto;
    border: 1px solid rgba(247, 248, 250, 0.16);
    border-radius: 20px;
    background: rgba(17, 19, 24, 0.94);
    box-shadow: 0 30px 100px rgba(5, 7, 10, 0.75);
    backdrop-filter: blur(24px);
    color: var(--text);
  }

  .about-panel::backdrop { background: rgba(5, 7, 10, 0.72); backdrop-filter: blur(5px); }
  .about-panel h1 { margin: 6px 40px 22px 0; font-size: clamp(28px, 6vw, 46px); line-height: 1.05; text-wrap: balance; }
  .about-panel h2 { margin: 28px 0 10px; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
  .about-panel p, .about-panel li { color: var(--muted); font-size: 14px; line-height: 1.6; }
  .about-panel ul { display: grid; gap: 8px; padding-left: 18px; }
  .about-eyebrow { margin: 0; color: var(--solar) !important; letter-spacing: 0.16em; text-transform: uppercase; }
  .about-close { position: absolute; top: 18px; right: 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 28px; }
  .about-link { color: var(--solar); text-decoration: none; }
  .about-link:hover { text-decoration: underline; }

  /* ── Content sections ───────────────────────── */
  .section {
    position: relative;
    z-index: 1;
    padding: clamp(64px, 10vw, 128px) 24px;
    background: var(--space);
  }

  .section-alt {
    background: linear-gradient(180deg, var(--space), var(--surface) 50%, var(--space));
  }

  .section-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 6vw, 72px);
    text-align: center;
  }

  .section-eyebrow {
    margin: 0 0 12px;
    color: var(--solar);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  .section-head h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-wrap: balance;
  }

  .section-lead {
    margin: 0 auto;
    max-width: 56ch;
    color: var(--muted);
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.6;
    text-wrap: pretty;
  }

  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .card {
    padding: 28px;
    border: 1px solid rgba(247, 248, 250, 0.12);
    border-radius: 16px;
    background: rgba(17, 19, 24, 0.72);
    transition: border-color 180ms ease, transform 180ms ease;
  }

  .card:hover {
    border-color: rgba(234, 163, 60, 0.5);
    transform: translateY(-4px);
  }

  .card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .card p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
  }

  .card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .card li {
    position: relative;
    padding-left: 20px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.5;
  }

  .card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--solar);
  }

  /* ── Technology ───���─────────────────────────── */
  .tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 48px;
  }

  .tech-item {
    padding: 24px;
    border-left: 2px solid var(--solar);
    background: rgba(17, 19, 24, 0.5);
  }

  .tech-item h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
  .tech-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

  .spec-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(247, 248, 250, 0.12);
    border-radius: 16px;
    background: rgba(17, 19, 24, 0.72);
  }

  .spec-head {
    margin: 0 0 24px;
    color: var(--solar);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .spec-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
  }

  .spec-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(247, 248, 250, 0.08);
  }

  .spec-list dt { color: var(--muted); font-size: 14px; }
  .spec-list dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }

  /* ── CTA & footer ───────────────────────────── */
  .cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 720px;
    margin: clamp(56px, 8vw, 96px) auto 0;
    text-align: center;
  }

  .cta h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    text-wrap: balance;
  }

  .landing-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 28px 24px;
    border-top: 1px solid rgba(247, 248, 250, 0.1);
    background: var(--space);
  }

  .landing-footer .brand { letter-spacing: 0.16em; }
  .footer-contact { color: var(--muted); font-size: 14px; text-decoration: none; }
  .footer-contact:hover { color: var(--solar); }

  @media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .spec-list { grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
  }

  @media (min-width: 960px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
  }

  @media (min-width: 720px) {
    .landing-header { padding: 32px 48px; }
    .landing-entry { padding-bottom: 56px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .landing-video { display: none; }
    .explore-button { transition: none; }
  }
}
