:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #52606d;
  --paper: #fffdf7;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(16, 24, 32, 0.12);
  --cyan: #00c2ff;
  --teal: #05a89d;
  --lime: #a9e34b;
  --amber: #ffbd2e;
  --coral: #ff6b4a;
  --shadow: 0 28px 90px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 6%, rgba(0, 194, 255, 0.24), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(255, 189, 46, 0.28), transparent 34rem),
    radial-gradient(circle at 52% 72%, rgba(169, 227, 75, 0.2), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #fffdf7 45%, #f0fbf7 100%);
}

a {
  color: inherit;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
}

nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
.nav-pill {
  color: var(--ink);
  background: rgba(0, 194, 255, 0.12);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  width: 100%;
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: 46px max(16px, calc((100% - 1320px) / 2)) 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 5.9vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.078em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.hero-lede,
.section-heading p,
.safety p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.6;
}

.hero-lede {
  max-width: 720px;
  font-size: clamp(1.08rem, 1.6vw, 1.34rem);
  font-weight: 700;
}

.install-panel {
  width: min(720px, 100%);
  margin: 24px 0 18px;
  padding: 12px;
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(226, 252, 255, 0.78));
  box-shadow: var(--shadow);
}

.install-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  background: #101820;
  color: white;
}

.install-row + .install-row {
  margin-top: 8px;
}

.install-row.secondary {
  background: #173c43;
}

.prompt {
  color: var(--lime);
  font-weight: 900;
}

.install-row code {
  overflow: auto;
  white-space: nowrap;
}

.copy-button,
.carousel-button,
.button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.copy-button {
  padding: 9px 14px;
  color: #0f172a;
  background: linear-gradient(135deg, var(--amber), var(--lime));
}

.copy-feedback {
  min-height: 18px;
  margin: 8px 6px 0;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), #006fee);
  box-shadow: 0 18px 36px rgba(0, 111, 238, 0.2);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-card {
  display: grid;
  gap: 14px;
  padding-right: 24px;
  perspective: 1200px;
}

.signal-card {
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotateY(-10deg) rotateX(4deg);
}

.signal-card:nth-child(2) {
  transform: translateX(18px) rotateY(-8deg) rotateX(-2deg);
}

.signal-card:nth-child(3) {
  transform: translateX(4px) rotateY(-10deg) rotateX(3deg);
}

.signal-card.hot {
  background: linear-gradient(135deg, #ffffff, #fff2c6);
}

.signal-card.cool {
  background: linear-gradient(135deg, #ffffff, #dff7ff);
}

.signal-card.bright {
  background: linear-gradient(135deg, #ffffff, #eaffca);
}

.signal-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.signal-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.screenshots,
.platform,
.safety {
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.58fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.carousel {
  position: relative;
  display: grid;
  gap: 18px;
}

.carousel-stage {
  position: relative;
  min-height: 620px;
  border-radius: 38px;
  perspective: 1600px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 34px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(34%) rotateY(-32deg) scale(0.82);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-slide.previous-slide {
  opacity: 0.36;
  transform: translateX(-44%) rotateY(34deg) scale(0.78);
}

.carousel-slide.next-slide {
  opacity: 0.36;
  transform: translateX(44%) rotateY(-34deg) scale(0.78);
}

.carousel-slide.active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0) rotateY(0) scale(1);
}

.carousel-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 24px;
  background: #f4efe6;
  box-shadow: 0 18px 60px rgba(16, 24, 32, 0.18);
}

.carousel-slide p {
  color: var(--muted);
  line-height: 1.55;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(16, 24, 32, 0.14);
  transform: translateY(-50%);
}

.carousel-button.previous {
  left: 14px;
}

.carousel-button.next {
  right: 14px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.22);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  width: 32px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

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

.feature-grid article,
.safety {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(16, 24, 32, 0.08);
}

.feature-grid article {
  min-height: 260px;
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  font-weight: 900;
}

.feature-grid p,
.safety-list {
  color: var(--muted);
  line-height: 1.55;
}

.safety {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 28px;
  padding: 34px;
}

.safety-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 14px 16px;
  border: 1px solid rgba(5, 168, 157, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.bottom-statement {
  width: 100%;
  margin: 58px 0 0;
  padding: 34px 16px;
  color: white;
  background:
    radial-gradient(circle at 18% 20%, rgba(169, 227, 75, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(0, 194, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #05070a, #101820 58%, #05070a);
}

.bottom-statement p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  font-size: clamp(1.16rem, 2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    border-radius: 26px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .section-heading,
  .carousel-slide,
  .safety {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .signal-card,
  .signal-card:nth-child(2),
  .signal-card:nth-child(3) {
    transform: none;
  }

  .hero-card {
    padding-right: 0;
  }

  .carousel-stage {
    min-height: 680px;
  }

  .carousel-slide {
    inset: 20px 18px;
  }

  .carousel-button {
    top: auto;
    bottom: 10px;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
    letter-spacing: -0.068em;
  }

  .install-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .copy-button {
    grid-column: 1 / -1;
  }

  .carousel-stage {
    min-height: 610px;
  }

  .carousel-slide {
    padding: 12px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
