:root {
  --bg: #05070f;
  --bg-2: #0b1020;
  --surface: #0f1629;
  --surface-2: #141c34;
  --surface-3: #1b2444;
  --text: #f5f7ff;
  --muted: #b2bedb;
  --accent: #5fd3ff;
  --accent-2: #7b5cff;
  --border: #253156;
  --shadow-soft: 0 16px 42px rgba(5, 10, 24, 0.4);
  --shadow-strong: 0 30px 70px rgba(5, 10, 24, 0.6);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --section-pad: clamp(56px, 8vw, 104px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(95, 211, 255, 0.18) 0%, rgba(5, 7, 15, 0) 60%),
    radial-gradient(700px 480px at 10% 0%, rgba(123, 92, 255, 0.16) 0%, rgba(5, 7, 15, 0) 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(6, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 26, 48, 0.85), rgba(6, 11, 22, 0.85));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

section[id] {
  scroll-margin-top: 90px;
}

.eyebrow {
  color: #8fb7ff;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  margin: 8px 0 0;
  max-width: 720px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 10px 0 12px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  margin-top: 16px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(95, 211, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(90, 162, 255, 0.6);
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero {
  padding-top: clamp(56px, 10vw, 120px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.hero-trust li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
  min-height: clamp(320px, 42vw, 440px);
}

.hero-art {
  position: relative;
  height: 100%;
  min-height: clamp(320px, 42vw, 440px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(140deg, rgba(20, 28, 52, 0.5), rgba(8, 12, 24, 0.72)),
    url("./assets/opt-hero-bg.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(420px 260px at 18% 20%, rgba(95, 211, 255, 0.35), rgba(5, 7, 15, 0) 70%),
    radial-gradient(420px 280px at 85% 70%, rgba(123, 92, 255, 0.3), rgba(5, 7, 15, 0) 70%);
  opacity: 0.9;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 64px 64px, 64px 64px, 4px 4px;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(95, 211, 255, 0.35);
  border-radius: 50%;
  transition: border 0.3s ease;
}

.orbit-lg {
  width: clamp(240px, 32vw, 340px);
  height: clamp(240px, 32vw, 340px);
  top: 12%;
  left: 12%;
}

.orbit-sm {
  width: clamp(160px, 22vw, 240px);
  height: clamp(160px, 22vw, 240px);
  bottom: 12%;
  right: 14%;
  border-color: rgba(123, 92, 255, 0.35);
}

.hero-sigil {
  position: absolute;
  width: clamp(160px, 22vw, 220px);
  height: clamp(190px, 26vw, 260px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, rgba(95, 211, 255, 0.25), rgba(123, 92, 255, 0.25));
  border: 1px solid rgba(95, 211, 255, 0.5);
  clip-path: polygon(50% 0%, 92% 14%, 92% 60%, 50% 100%, 8% 60%, 8% 14%);
  box-shadow: 0 16px 40px rgba(10, 18, 36, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-sigil::before {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(50% 0%, 92% 14%, 92% 60%, 50% 100%, 8% 60%, 8% 14%);
}

.hero-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(95, 211, 255, 0.7);
}

.node-1 {
  top: 18%;
  right: 22%;
}

.node-2 {
  bottom: 20%;
  left: 18%;
}

.node-3 {
  top: 62%;
  right: 38%;
}

.hero-visual:hover .hero-sigil {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: 0 22px 50px rgba(10, 18, 36, 0.6);
}

.hero-visual:hover .hero-orbit {
  border-color: rgba(95, 211, 255, 0.55);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.card {
  background: linear-gradient(180deg, rgba(20, 28, 52, 0.92), rgba(10, 14, 26, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 162, 255, 0.6);
}

.trust-grid,
.matrix-grid,
.why-grid,
.transparency-grid {
  display: grid;
  gap: 16px;
}

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

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

.why-grid,
.transparency-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.architecture-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.abstract-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(20, 28, 52, 0.86), rgba(8, 12, 24, 0.9));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border 0.2s ease;
  overflow: hidden;
}

.abstract-card:nth-child(1) {
  background-image: linear-gradient(160deg, rgba(20, 28, 52, 0.72), rgba(8, 12, 24, 0.86)), url("./assets/opt-abstract-1.jpg");
  background-size: cover;
  background-position: center;
}

.abstract-card:nth-child(2) {
  background-image: linear-gradient(160deg, rgba(20, 28, 52, 0.72), rgba(8, 12, 24, 0.86)), url("./assets/opt-abstract-2.jpg");
  background-size: cover;
  background-position: center;
}

.abstract-card:nth-child(3) {
  background-image: linear-gradient(160deg, rgba(20, 28, 52, 0.72), rgba(8, 12, 24, 0.86)), url("./assets/opt-abstract-3.jpg");
  background-size: cover;
  background-position: center;
}

.abstract-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 120px at 20% 0%, rgba(95, 211, 255, 0.12), rgba(5, 7, 15, 0) 70%);
  opacity: 0.8;
  pointer-events: none;
}

.abstract-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 211, 255, 0.5);
}

.glyph {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
  overflow: hidden;
}

.glyph::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(95, 211, 255, 0.6), rgba(123, 92, 255, 0.4));
}

.glyph-shield::before {
  clip-path: polygon(50% 0%, 92% 18%, 92% 60%, 50% 100%, 8% 60%, 8% 18%);
  border-radius: 0;
}

.glyph-grid::before {
  border-radius: 10px;
}

.glyph-grid::after {
  content: "";
  position: absolute;
  inset: 10px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.4;
}

.glyph-pulse::before {
  background: radial-gradient(circle at 50% 50%, rgba(95, 211, 255, 0.7), rgba(95, 211, 255, 0));
  border-radius: 50%;
}

.glyph-pulse::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(95, 211, 255, 0.5);
  border-radius: 50%;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(15, 24, 42, 0.6);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(140deg, rgba(20, 28, 52, 0.95), rgba(8, 12, 24, 0.95));
  box-shadow: var(--shadow-strong);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 28px 0 20px;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 700;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.install-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 7, 15, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 30px rgba(5, 10, 24, 0.45);
  z-index: 30;
}

.install-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-weight: 600;
}

.legal {
  position: relative;
  padding-top: 72px;
  padding-bottom: 80px;
}

.legal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 320px;
  background:
    linear-gradient(180deg, rgba(5, 7, 15, 0.25), rgba(5, 7, 15, 0.88)),
    url("./assets/opt-legal-banner.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 12px;
}

.legal p {
  color: var(--muted);
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 20px;
}

.legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 10px;
}

.legal ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.legal li {
  margin-bottom: 8px;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .matrix-grid,
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-art {
    background:
      linear-gradient(140deg, rgba(20, 28, 52, 0.5), rgba(8, 12, 24, 0.72)),
      url("./assets/opt-mobile-hero.jpg") center/cover no-repeat;
  }

  .why-grid,
  .transparency-grid,
  .trust-grid,
  .matrix-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 680px) {
  .install-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 821px) {
  body {
    padding-bottom: 0;
  }

  .install-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
