:root {
  --bg: #090b10;
  --bg-alt: #111621;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #f3f6ff;
  --text-muted: #b9c0d4;
  --brand: #de373b;
  --brand-2: #f07467;
  --ring: rgba(229, 78, 72, 0.45);
  --max-width: 1160px;
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100%;
}

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

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

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(229, 78, 72, 0.24), transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(240, 116, 103, 0.2), transparent 38%),
    radial-gradient(circle at 50% 75%, rgba(208, 53, 64, 0.2), transparent 42%),
    linear-gradient(160deg, #06070c 0%, #0d1119 52%, #080b12 100%);
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-top: 1px solid rgba(240, 116, 103, 0.2);
  border-bottom: 1px solid rgba(240, 116, 103, 0.2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 15, 0.7);
  border-bottom: 1px solid rgba(240, 116, 103, 0.2);
}

.nav-wrap {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.3rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.45rem;
  height: 2px;
  margin: 0.26rem 0;
  background: #fff;
  border-radius: 999px;
}

.hero {
  padding-top: 6.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--brand-2);
  margin: 0 0 1rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  line-height: 1.08;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.lead {
  margin-top: 1.15rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #051019;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--ring);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
}

.btn-small {
  font-size: 0.88rem;
  padding: 0.56rem 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-points {
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  display: grid;
  gap: 0.48rem;
}

.hero-points li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-block;
  margin-right: 0.6rem;
  transform: translateY(-1px);
}

.hero-media {
  position: relative;
}

.device-frame {
  max-width: 340px;
  margin-inline: auto;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(240, 116, 103, 0.45);
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.glow-card {
  position: absolute;
  left: 1rem;
  bottom: -1.2rem;
  background: rgba(8, 14, 22, 0.85);
  border: 1px solid rgba(240, 116, 103, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
}

.glow-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(240, 116, 103, 0.24);
  padding: 1.4rem;
  background: linear-gradient(160deg, rgba(240, 116, 103, 0.12), rgba(255, 255, 255, 0.03));
}

.feature-card p,
.sources-copy p,
.source-list p,
.privacy-card p,
.final-cta p {
  color: var(--text-muted);
}

.sources-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.source-list li,
.privacy-card {
  background: var(--surface);
  border: 1px solid rgba(240, 116, 103, 0.24);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
}

.docs-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  background: linear-gradient(160deg, rgba(240, 116, 103, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(240, 116, 103, 0.24);
  border-radius: var(--radius-lg);
}

.docs-callout p:not(.eyebrow) {
  max-width: 62ch;
  color: var(--text-muted);
}

.showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-viewport {
  width: min(100%, 920px);
  overflow: hidden;
  padding: 0.8rem 0;
}

.carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2.4vw, 1.5rem);
  align-items: center;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(240, 116, 103, 0.35);
  box-shadow: var(--shadow);
  width: clamp(230px, 32vw, 340px);
  opacity: 0.58;
  transform: scale(0.88);
  filter: saturate(0.82) brightness(0.88);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
}

.carousel-slide img {
  width: 100%;
  height: auto;
}

.carousel-btn {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 1px solid rgba(240, 116, 103, 0.35);
  color: var(--text);
  background: var(--surface-strong);
  cursor: pointer;
  font-size: 1.3rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dot {
  width: 0.64rem;
  height: 0.64rem;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 116, 103, 0.35);
  cursor: pointer;
}

.dot.is-active {
  width: 1.6rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.final-cta {
  text-align: center;
}

.final-cta-inner {
  max-width: 760px;
}

.final-cta p {
  margin: 0.7rem auto 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(240, 116, 103, 0.2);
  padding: 1.2rem 0;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-media {
    margin-top: 0.5rem;
  }

  .glow-card {
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.8rem;
  }
}

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

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 4vw;
    width: min(340px, 92vw);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 13, 20, 0.95);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .docs-callout {
    grid-template-columns: 1fr;
  }

  .carousel-viewport {
    width: 100%;
    padding: 0.45rem 0;
  }

  .carousel-track {
    gap: 0.45rem;
  }

  .carousel-slide {
    border-radius: 18px;
    width: clamp(178px, 62vw, 260px);
  }

  .carousel-btn {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
}

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

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