:root {
  --bg: #0b0d12;
  --bg-mid: #12151c;
  --text: #e8eaed;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: #2d3348;
  --cyan: #53e8ff;
  --cyan-deep: #1a9bb0;
  --accent: #ef4444;
  --surface: #1a1d27;
  --surface-2: #151821;
  --font: "Sora", ui-sans-serif, sans-serif;
  --nav-h: 4.25rem;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(83, 232, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(239, 68, 68, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 35% at 70% 100%, rgba(83, 232, 255, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 45%, #08090d 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(45, 51, 72, 0.75);
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.brand-link .wordmark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark {
  white-space: nowrap;
}

.wordmark-nat {
  color: #53e8ff;
}

.wordmark-bot {
  color: #ffffff;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.is-active {
  color: var(--text);
  background: rgba(83, 232, 255, 0.1);
}

.nav-links a.nav-cta {
  margin-left: 0.35rem;
  color: #061318;
  background: linear-gradient(180deg, #2ad4ea 0%, var(--cyan-deep) 100%);
}

.nav-links a.nav-cta:hover {
  color: #061318;
  background: linear-gradient(180deg, #53e8ff 0%, #1fb0c7 100%);
}

/* —— Layout —— */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-glow {
  position: absolute;
  width: min(34rem, 90vw);
  height: min(34rem, 90vw);
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(83, 232, 255, 0.16), transparent 68%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(16rem, 1.05fr);
  align-items: center;
  gap: 2rem 2.25rem;
  width: 100%;
}

.hero-copy {
  position: relative;
  max-width: none;
  min-width: 0;
}

.hero-gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(26, 29, 39, 0.85), rgba(15, 17, 23, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(26, 29, 39, 0.35), rgba(21, 24, 33, 0.55));
}

.gallery-slide.is-empty {
  border: none;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(45, 51, 72, 0.18),
      rgba(45, 51, 72, 0.18) 12px,
      transparent 12px,
      transparent 24px
    ),
    linear-gradient(180deg, rgba(26, 29, 39, 0.55), rgba(21, 24, 33, 0.75));
}

.gallery-slide:not(.is-empty) {
  cursor: zoom-in;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.gallery-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 39, 0.9);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.gallery-btn:hover {
  border-color: rgba(83, 232, 255, 0.45);
  transform: translateY(-1px);
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
}

.gallery-dot.is-active {
  width: 1.1rem;
  background: var(--cyan);
}

.gallery-zoom {
  margin-left: 0.15rem;
}

.gallery-zoom svg {
  display: block;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2.5rem 4rem;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 0.25s ease both;
}

.lightbox-image {
  max-width: min(96vw, 72rem);
  max-height: min(86vh, 48rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(45, 51, 72, 0.85);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  background: #0f1117;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid var(--border);
  background: rgba(26, 29, 39, 0.92);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(83, 232, 255, 0.45);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  translate: 0 -50%;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 720px) {
  .lightbox {
    padding: 3.5rem 1rem 1.5rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    translate: 0;
  }

  .lightbox-prev {
    left: calc(50% - 3.4rem);
  }

  .lightbox-next {
    right: calc(50% - 3.4rem);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

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

.btn-primary {
  color: #061318;
  background: linear-gradient(180deg, #2ad4ea 0%, var(--cyan-deep) 100%);
  box-shadow: 0 8px 24px rgba(83, 232, 255, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(83, 232, 255, 0.32);
}

.btn-secondary {
  color: var(--text);
  background: rgba(26, 29, 39, 0.85);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(83, 232, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* —— More info (placeholder) —— */
.section {
  padding: 4.5rem 0 1rem;
  border-top: 1px solid rgba(45, 51, 72, 0.65);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

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

.media-slot {
  min-height: 11rem;
  border-radius: 16px;
  border: 1px dashed rgba(45, 51, 72, 0.95);
  background:
    linear-gradient(180deg, rgba(26, 29, 39, 0.45), rgba(21, 24, 33, 0.35));
}

/* —— Download page —— */
.download-page {
  padding: 3.5rem 0 2rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.download-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.download-page .lead {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
}

.download-panel {
  margin-top: 2.75rem;
  width: 100%;
  max-width: none;
  padding: 2rem 2.1rem 1.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.9), rgba(21, 24, 33, 0.75));
}

.download-panel h2 {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.platform-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.platform-col > .platform-btn {
  flex: 1;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 4.1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.platform-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(83, 232, 255, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.platform-btn.is-primary {
  color: #061318;
  background: linear-gradient(180deg, #2ad4ea 0%, var(--cyan-deep) 100%);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(83, 232, 255, 0.22);
}

.platform-btn.is-primary:hover {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(83, 232, 255, 0.32);
}

.platform-btn.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.platform-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.platform-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.platform-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1.1;
}

.platform-label {
  line-height: 1;
}

.platform-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.platform-btn.is-primary .platform-sub {
  color: rgba(6, 19, 24, 0.72);
}

@media (max-width: 640px) {
  .platform-row {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid rgba(45, 51, 72, 0.65);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer-links a {
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-rg {
  margin: 1.15rem 0 0;
  max-width: 48rem;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
}

.footer-rg a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.footer-rg a:hover {
  color: var(--cyan);
}

/* —— Started / install —— */
.started-page {
  padding: 3.5rem 0 2rem;
  max-width: 40rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.started-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.started-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.started-lead {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
}

.install-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.install-steps li {
  position: relative;
  counter-increment: step;
  padding: 1.05rem 1.15rem 1.05rem 3.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 39, 0.72);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(83, 232, 255, 0.14);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
}

.started-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 39, 0.55);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
  color: var(--cyan);
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

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

}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-gallery {
    max-width: 36rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2.5rem;
  }

  .brand-link .wordmark {
    font-size: 0.98rem;
  }
}

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

  .hero-glow,
  .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .download-page {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
