/* Aperture 3D — static site styles
   No external fonts or assets (CSP-friendly, works offline). */

:root {
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --panel: #151d26;
  --panel-2: #1b2530;
  --line: #263341;
  --text: #e7edf3;
  --muted: #9fb0c0;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --accent-ink: #04222a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 .5rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}

.brand-name {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}

.primary-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-strong);
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .72rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(34, 211, 238, .12), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: 4.5rem 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -.02em;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
}

.hero-facts strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

/* Hero art — pure CSS layer stack */
.hero-art {
  display: flex;
  justify-content: center;
}

.layer-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding: 2rem 2.5rem;
}

.layer {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  opacity: .9;
  box-shadow: 0 0 18px rgba(34, 211, 238, .25);
}

.layer:nth-child(1) { width: 120px; }
.layer:nth-child(2) { width: 150px; }
.layer:nth-child(3) { width: 176px; }
.layer:nth-child(4) { width: 190px; }
.layer:nth-child(5) { width: 176px; }
.layer:nth-child(6) { width: 140px; }

/* Sections */
.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-sub {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s ease, transform .15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  min-width: 170px;
}

.chip span {
  color: var(--muted);
  font-weight: 400;
  font-size: .82rem;
}

/* Pricing table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.price-table thead th {
  background: var(--panel);
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.price-table tbody th {
  font-weight: 600;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:hover {
  background: var(--panel-2);
}

.price-table td:last-child {
  color: var(--accent);
  font-weight: 700;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: .75rem;
}

.steps h3 {
  font-size: 1.05rem;
}

.steps p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

/* View counter */
.view-counter {
  margin: 0;
  color: var(--muted);
}

.view-counter span {
  color: var(--accent);
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 3rem;
  }

  .hero-art {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--line);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
    padding-top: .75rem;
  }

  .primary-nav a {
    display: block;
    padding: .85rem 0;
  }

  .nav-cta {
    display: inline-block !important;
    text-align: center;
  }

  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card {
    transition: none;
  }
}
