:root {
  color-scheme: dark;
  --page-bg: #040510;
  --surface: rgba(11, 18, 36, 0.9);
  --card: #11192f;
  --card-alt: #101628;
  --text: #e2e8f0;
  --text-muted: #b5c2d9;
  --primary: #7c5dff;
  --primary-accent: #b497ff;
  --accent: #45d2ff;
  --chip-bg: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --gradient: radial-gradient(circle at top, rgba(124, 93, 255, 0.4), transparent),
    radial-gradient(circle at 20% 20%, rgba(69, 210, 255, 0.3), transparent);
  font-family: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system,
    sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--page-bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  background-color: var(--page-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  inset: 0;
  background-image: var(--gradient);
  pointer-events: none;
  z-index: -2;
}

.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 6vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background-color: rgba(4, 5, 16, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease;
}

.site-nav.is-scrolled {
  background-color: rgba(4, 5, 16, 0.92);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  opacity: 1;
}

.nav-links .cta-link {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.75rem;
  height: 2px;
  background-color: var(--text);
  display: block;
  transition: transform 0.2s ease;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 3rem 0;
}

.hero-copy .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #040510;
}

.button.secondary {
  border-color: var(--border);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background-color: var(--chip-bg);
  font-size: 0.85rem;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-player {
  width: min(420px, 90vw);
  border-radius: 1.5rem;
  background: radial-gradient(circle at top, rgba(124, 93, 255, 0.3), transparent) var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 25px 40px rgba(5, 5, 16, 0.6);
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mock-title-bar {
  height: 12px;
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.mock-controls span {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.mock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 5, 16, 0.45);
  padding: 0.8rem 1rem;
  border-radius: 1rem;
}

.mock-logo {
  font-weight: 600;
  font-size: 0.9rem;
}

.mock-button {
  border: none;
  border-radius: 999px;
  background-color: var(--accent);
  color: #040510;
  font-weight: 600;
  padding: 0.4rem 1rem;
}

.mock-note {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1.2rem;
  padding: 0.9rem 1.1rem;
  display: flex;
  gap: 1rem;
}

.mock-note-time {
  font-weight: 700;
  color: var(--accent);
}

.mock-note-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.mock-note-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mock-track {
  position: relative;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-track span {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  box-shadow: 0 0 12px rgba(124, 93, 255, 0.7);
}

.section {
  padding: 4rem 0;
}

.policy-hero {
  padding: 4rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-hero h1 {
  margin-bottom: 1rem;
}

.policy-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.policy-layout {
  padding: 3rem 0 5rem;
}

.policy-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 15px 35px rgba(4, 5, 16, 0.5);
}

.policy-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.policy-card p {
  margin: 0.5rem 0;
}

.policy-card ul {
  margin: 0.75rem 0 0 1.5rem;
  color: var(--text-muted);
}

.policy-card li + li {
  margin-top: 0.35rem;
}

.policy-definition {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1rem;
  margin: 1rem 0 0;
}

.policy-definition dt {
  font-weight: 600;
}

.policy-definition dd {
  margin: 0;
  color: var(--text-muted);
}

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

.section.highlight {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  padding: 3rem;
}

.faq-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: rgba(14, 19, 37, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(4, 5, 16, 0.4);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.workflow-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.workflow-steps li {
  counter-increment: steps;
  padding-left: 3.5rem;
  position: relative;
}

.workflow-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.section.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.split-panel {
  background: var(--card-alt);
  border-radius: 1.2rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.code-block {
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  overflow-x: auto;
}

.checklist {
  padding-left: 1.6rem;
  color: var(--text-muted);
}

.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.panel-visual {
  display: flex;
  justify-content: center;
}

.popup-mock {
  width: min(360px, 90vw);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(16, 16, 27, 0.9));
  border: 1px solid var(--border);
  box-shadow: 0 30px 50px rgba(4, 5, 16, 0.6);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.popup-pill {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(124, 93, 255, 0.25);
  font-size: 0.75rem;
}

.popup-search {
  height: 40px;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.popup-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.popup-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.popup-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cta-section {
  display: flex;
  justify-content: center;
}

.cta-card {
  width: min(720px, 100%);
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 93, 255, 0.2), rgba(69, 210, 255, 0.15));
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 5, 16, 0.9);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-top: 0.5rem;
  }

  .site-nav[data-open="true"] .nav-links {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3rem 0;
  }

  .section.highlight {
    padding: 2rem;
  }

  .policy-card {
    padding: 1.5rem;
  }

  .policy-definition {
    grid-template-columns: 1fr;
  }

  .workflow-steps li {
    padding-left: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .install-actions {
    flex-direction: column;
  }
}

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