:root {
  color-scheme: dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #05060a;
  --bg-alt: #0a0c14;
  --surface: rgba(15, 17, 26, 0.9);
  --surface-strong: #161a2a;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f6fb;
  --muted: #b1b7d6;
  --accent: #9c8cff;
  --accent-2: #44f0c2;
  --border: rgba(255, 255, 255, 0.12);
  --gradient-hero: radial-gradient(circle at top, #2a2b4a, #05060a 60%);
  --shadow-soft: 0 20px 60px rgba(5, 5, 10, 0.4);
  --shadow-card: 0 20px 30px rgba(0, 0, 0, 0.45);
  --section-alt: #080a12;
  --nav-solid: rgba(5, 6, 10, 0.95);
  --footer-bg: #05060a;
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-icon: #f5f6fb;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: rgba(15, 17, 26, 0.08);
  --text: #0b0d1a;
  --muted: #4f5672;
  --accent: #7761ff;
  --accent-2: #0f9d8b;
  --border: rgba(15, 17, 26, 0.12);
  --gradient-hero: radial-gradient(circle at top, #ffffff, #dfe3ff 55%, #f5f6fb 100%);
  --shadow-soft: 0 18px 30px rgba(15, 17, 26, 0.12);
  --shadow-card: 0 18px 28px rgba(15, 17, 26, 0.15);
  --section-alt: #eef1ff;
  --nav-solid: rgba(255, 255, 255, 0.95);
  --footer-bg: #f5f6fb;
  --toggle-bg: rgba(15, 17, 26, 0.08);
  --toggle-icon: #0b0d1a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient-hero), var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

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

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

.hero {
  padding: 0 clamp(1.5rem, 5vw, 4rem) 4rem;
  background: var(--gradient-hero);
  padding-top: 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  z-index: 100;
  background: var(--nav-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav.at-top {
  background: transparent;
  border-bottom-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(156, 140, 255, 0.35);
  object-fit: cover;
  display: block;
}

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

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

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.ghost-link {
  border: 1px solid var(--border);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.ghost-link::after {
  display: none;
}

.ghost-link:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--surface-soft);
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c63ff, #44f0c2);
  display: inline-block;
  transition: background 0.3s ease;
}

.theme-toggle[data-mode='light'] .theme-icon {
  background: linear-gradient(135deg, #ffda5b, #ffb347);
}

.theme-text {
  letter-spacing: 0.02em;
}

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

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.hero-content {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lead {
  color: var(--muted);
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7c63ff);
  color: #05060a;
  box-shadow: 0 20px 40px rgba(124, 99, 255, 0.4);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

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

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

.btn.primary:hover {
  box-shadow: 0 25px 50px rgba(124, 99, 255, 0.5);
}

.hero-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--muted);
}

.hero-highlights li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: bold;
  margin-right: 0.5rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

.hero-card-title {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--muted);
}

.confidence {
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 1.2rem;
  border: 1px solid var(--surface-soft);
  margin-bottom: 1.2rem;
}

.confidence strong {
  font-size: 2.5rem;
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card-list p {
  margin: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.status.online {
  color: var(--accent-2);
  font-weight: 600;
}

.hero-card-footer {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.2rem;
  line-height: 1.6;
}

.section {
  padding: 5rem clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section:nth-of-type(odd) {
  background: var(--section-alt);
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.4rem 0 0.6rem;
  line-height: 1.2;
}

.section-heading p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.panel {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--surface-soft);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card h3,
.panel h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.card ul,
.panel ul {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.install-steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--surface-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.install-steps li:hover {
  transform: translateX(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.install-steps span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #05060a;
}

.install-steps strong {
  font-size: 1.2rem;
}

.install-steps p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.install-steps a {
  color: var(--accent);
  text-decoration: underline;
}

code {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.table {
  display: grid;
  border: 1px solid var(--surface-soft);
  border-radius: 16px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 1rem 1.2rem;
  gap: 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-soft);
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:nth-child(even) {
  background: var(--surface-strong);
}

.table-head {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-strong);
  font-weight: 600;
}

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

.shots-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shot-media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid var(--surface-soft);
  background: var(--surface-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shot-media:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}

.shot-media img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-card figcaption {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .shots-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-areas:
      'stats stats'
      'home menu';
  }

  .shot-stats {
    grid-area: stats;
  }

  .shot-home {
    grid-area: home;
  }

  .shot-menu {
    grid-area: menu;
    align-self: start;
  }
}

.requirements .card.compact {
  padding: 1.5rem;
}

.footer {
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 3rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.footer-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta {
  color: var(--muted);
  margin-top: 1rem;
}

.footer-meta a {
  color: var(--accent);
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05060a;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
  cursor: pointer;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 45px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 0.5rem;
  }
  
  .nav-links {
    position: fixed;
    right: 1rem;
    top: 70px;
    flex-direction: column;
    background: var(--surface);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 20;
    align-items: flex-start;
  }
  
  .nav-links.is-open {
    transform: translateX(0);
  }
  
  .nav-toggle {
    display: inline-flex;
  }
  
  .install-steps li {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .theme-text {
    display: none;
  }
  
  .theme-toggle {
    padding: 0.45rem;
  }
  
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
  
  .hero {
    padding-top: 70px;
  }
}

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