/* ==========================================================================
   Subtone landing page.

   The look follows the public band sites in src/portal (src/site/site.css):
   dark background, Inter, gradient headings, pill buttons and 20px cards.
   Subtone's own highlight is the teal from its logo, with the logo's orange
   as a spark here and there.
   ========================================================================== */

:root {
  --highlight: #14d3c4;
  --highlight-rgb: 20, 211, 196;
  --accent: #3b6df0;
  --spark: #ff6b1a;
  --on-highlight: #0a0a0a;
  --gradient: linear-gradient(45deg, var(--highlight), var(--accent));
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --card-bg: linear-gradient(145deg, #0a0a0a, #111111);
  --border: #333333;
  --text: #ffffff;
  --text-soft: #cccccc;
  --muted: #999999;
  --nav-height: 73px;
  --radius: 20px;
  --gutter: 20px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

ul,
ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--on-highlight);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Parallax layers are moved by main.js */
[data-speed],
[data-drift] {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Page backdrop: soft glows, fixed to the window
   -------------------------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(40px);
}

.glow-teal {
  top: -20vmax;
  left: -15vmax;
  background: radial-gradient(circle, rgba(var(--highlight-rgb), 0.16), transparent 65%);
}

.glow-blue {
  top: 30vh;
  right: -25vmax;
  background: radial-gradient(circle, rgba(59, 109, 240, 0.14), transparent 65%);
}

.glow-orange {
  top: 120vh;
  left: 10vw;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.08), transparent 65%);
}

/* --------------------------------------------------------------------------
   Navigation (as .st-nav on band sites)
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 1rem 0;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: rgba(var(--highlight-rgb), 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  min-height: 40px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo img {
  width: auto;
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem 2rem;
}

.nav-link {
  position: relative;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--highlight);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--highlight);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-login {
  color: var(--text-soft);
}

.hamburger {
  display: none;
  flex-direction: column;
  padding: 8px;
  margin-right: -8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 3px 0;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons (as .st-btn)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--gradient);
  background-clip: padding-box;
  background-origin: border-box;
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--highlight-rgb), 0.3);
}

.btn-secondary {
  border-color: var(--highlight);
  color: #ffffff;
}

.btn-secondary:hover {
  background: var(--highlight);
  color: var(--on-highlight);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Headings shared by the sections
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 4px 14px;
  border: 1px solid rgba(var(--highlight-rgb), 0.5);
  border-radius: 999px;
  color: var(--highlight);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow-band {
  border-color: rgba(var(--band-rgb), 0.55);
  color: var(--band);
}

/* Glows and floating layers may spill sideways; never let them widen the page */
main > section {
  overflow-x: clip;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-alt {
  background: rgba(17, 17, 17, 0.85);
  border-block: 1px solid #1d1d1d;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 1.2rem;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Device frames
   -------------------------------------------------------------------------- */

.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  background: #161616;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #262626;
  background: #1b1b1d;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3d;
}

.browser-url {
  flex: 0 1 340px;
  margin: 0 auto;
  padding: 3px 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #0f0f10;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-url::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 9px;
  margin-right: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  vertical-align: -1px;
  opacity: 0.7;
}

.browser img {
  width: 100%;
}

/* A phone: bezel, a status bar with the camera, then the screenshot.
   Sizes are in container units (the phone's wrapper is the container), so
   it scales with its column. */
.hero-phone-wrap,
.phones-item {
  container-type: inline-size;
}

.phone {
  --bezel: 4cqw;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 17cqw;
  background: linear-gradient(145deg, #2a2a2e, #111113);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.phone > img {
  display: block;
  width: calc(100% - var(--bezel) * 2);
  margin: 0 var(--bezel) var(--bezel);
  border-radius: 0 0 13cqw 13cqw;
}

.phone::before {
  /* The status bar */
  content: "9:41";
  display: block;
  height: 12cqw;
  margin: var(--bezel) var(--bezel) 0;
  padding: 3.6cqw 0 0 9cqw;
  border-radius: 13cqw 13cqw 0 0;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 4.4cqw;
  font-weight: 600;
  line-height: 1;
}

.phone::after {
  /* The camera */
  content: "";
  position: absolute;
  top: calc(var(--bezel) + 2.6cqw);
  left: 50%;
  width: 30%;
  height: 7cqw;
  border-radius: 999px;
  background: #000000;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 56px) 0 40px;
  text-align: center;
}

.hero-wave {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  height: 300px;
  opacity: 0.25;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(var(--highlight-rgb), 0.8));
}

.hero-copy {
  position: relative;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 680px;
  margin: 1.5rem auto 0;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
}

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

.hero-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-note strong {
  color: var(--text);
  font-weight: 600;
}

.hero-stage {
  margin-top: 3.5rem;
  padding: 0 var(--gutter);
  perspective: 1800px;
}

.hero-devices {
  --tilt: 18deg;
  --lift: 0px;
  --zoom: 0.94;
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  transform: translateY(var(--lift)) rotateX(var(--tilt)) scale(var(--zoom));
  transform-origin: 50% 0;
  will-change: transform;
}

.hero-browser {
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7), 0 0 120px rgba(255, 61, 139, 0.12);
}

.hero-phone-wrap {
  position: absolute;
  right: -3%;
  bottom: -10%;
  width: 21%;
  min-width: 140px;
}

.hero-phone {
  transform: rotate(4deg);
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid #2f2f2f;
  border-radius: 16px;
  background: rgba(20, 20, 22, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.chip-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.chip-icon-pink {
  background: linear-gradient(45deg, #ff3d8b, #ff6b4a);
}

.chip-icon-teal {
  background: var(--gradient);
}

.chip-icon-orange {
  background: linear-gradient(45deg, var(--spark), #f5a524);
}

.chip-1 {
  top: 34%;
  left: -6%;
}

.chip-2 {
  top: 8%;
  right: -5%;
}

.chip-3 {
  bottom: 14%;
  left: 4%;
}

/* --------------------------------------------------------------------------
   Ticker: every feature, sliding sideways as you scroll
   -------------------------------------------------------------------------- */

.ticker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 120px 0 20px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-row {
  display: flex;
  gap: 14px;
  width: max-content;
  margin-left: -10%;
}

.ticker-row-alt {
  margin-left: -40%;
}

.ticker-row span {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.ticker-row span:nth-child(3n + 1) {
  border-color: rgba(var(--highlight-rgb), 0.45);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Feature panels
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 4rem;
}

.feature + .feature {
  margin-top: 160px;
}

.feature-flip .feature-copy {
  order: 2;
}

.feature-title {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
}

.feature-copy > p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.ticks {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  color: #e6e6e6;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--band-rgb), 0.15)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  box-shadow: 0 0 0 1px rgba(var(--band-rgb), 0.6) inset;
}

.feature-media {
  position: relative;
}

.feature-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--band-rgb), 0.22), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.feature-media-stack {
  padding: 0 0 18% 0;
}

.feature-media-stack .stack-back {
  width: 88%;
}

.feature-media-stack .stack-front {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  border-color: rgba(var(--band-rgb), 0.45);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(var(--band-rgb), 0.15);
}

.feature-flip .feature-media-stack .stack-back {
  margin-left: auto;
}

.feature-flip .feature-media-stack .stack-front {
  right: auto;
  left: 0;
}

/* --------------------------------------------------------------------------
   Your look: switch between the bands
   -------------------------------------------------------------------------- */

.looks {
  overflow: hidden;
}

.looks-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 90vw;
  max-width: 1300px;
  height: 900px;
  margin-left: min(-45vw, -650px);
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--band-rgb), 0.2), transparent 60%);
  pointer-events: none;
  transition: background 0.6s ease;
}

.looks-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.looks-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

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

.looks-tab[aria-selected="true"] {
  border-color: var(--band);
  background: rgba(var(--band-rgb), 0.12);
}

.looks-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}

.looks-stage {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.looks-browser {
  border-color: rgba(var(--band-rgb), 0.35);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.65), 0 0 120px rgba(var(--band-rgb), 0.18);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.looks-screens {
  display: grid;
}

.looks-screen {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.looks-screen.is-active {
  opacity: 1;
  transform: none;
}

.looks-caption {
  margin-top: 1.5rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

.phones-section {
  overflow: hidden;
}

.phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 0;
}

.phones-item:nth-child(even) {
  margin-top: 80px;
}

/* --------------------------------------------------------------------------
   Why: cards (as .st-member-card)
   -------------------------------------------------------------------------- */

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

.card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
}

.card:hover {
  border-color: var(--highlight);
  transform: translateY(-5px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--gradient);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--highlight);
  font-size: 1.3rem;
}

.card p {
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

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

.steps::before {
  /* The line joining the steps */
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--highlight-rgb), 0.5), rgba(59, 109, 240, 0.5), transparent);
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(var(--highlight-rgb), 0.6);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 30px rgba(var(--highlight-rgb), 0.25);
  color: var(--highlight);
  font-size: 1.6rem;
  font-weight: 800;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.step p {
  max-width: 320px;
  margin: 0 auto;
  color: var(--text-soft);
}

.step strong {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Final call to action: stage lights behind the button
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid #1d1d1d;
}

.cta-bg {
  position: absolute;
  inset: -20% 0 0;
  pointer-events: none;
}

/* Stage lights: cones fanning out from a rig above the section */
.beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 340px;
  height: 120%;
  margin-left: -170px;
  transform-origin: 50% 0;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(var(--highlight-rgb), 0.3), transparent 85%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  mask: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  filter: blur(14px);
  mix-blend-mode: screen;
}

.beam-1 {
  transform: rotate(34deg);
}

.beam-2 {
  transform: rotate(11deg);
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(59, 109, 240, 0.38), transparent 85%);
}

.beam-3 {
  transform: rotate(-11deg);
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 107, 26, 0.28), transparent 85%);
}

.beam-4 {
  transform: rotate(-34deg);
}

.cta-bg::after {
  /* The lighting rig the beams hang from */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 240px;
  height: 120px;
  margin-left: -120px;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.35), transparent 70%);
}

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

.cta-logo {
  width: 150px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 30px rgba(var(--highlight-rgb), 0.35));
}

.cta-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta .btn {
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------------------
   Footer (as .st-footer)
   -------------------------------------------------------------------------- */

.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  width: auto;
  height: 46px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-weight: 500;
}

.footer-links a {
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: #888888;
  font-size: 0.95rem;
  text-align: center;
}

.footer-note {
  font-size: 0.85rem;
  color: #6f6f6f;
}

/* --------------------------------------------------------------------------
   Reveal on scroll (as .st-reveal)
   -------------------------------------------------------------------------- */

.js .reveal {
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(30px);
}

.why-grid .card:nth-child(3n + 2),
.steps .step:nth-child(2) {
  transition-delay: 0.1s;
}

.why-grid .card:nth-child(3n),
.steps .step:nth-child(3) {
  transition-delay: 0.2s;
}

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-phone-wrap {
    right: 1%;
  }

  .chip-1 {
    left: -2%;
  }

  .chip-2 {
    right: -1%;
  }
}

@media (max-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .feature-flip .feature-copy {
    order: 0;
  }

  .feature-copy {
    max-width: 640px;
  }

  .feature + .feature {
    margin-top: 120px;
  }

  .phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    gap: 2rem;
  }

  .phones-item:nth-child(even) {
    margin-top: 60px;
  }

  .phones-item:nth-child(n + 3) {
    margin-top: -20px;
  }

  .phones-item:nth-child(4) {
    margin-top: 40px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    max-width: 420px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --gutter: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    padding: 3rem 0;
    overflow-y: auto;
    background-color: var(--bg);
    font-size: 1.15rem;
    text-align: center;
    visibility: hidden;
    transition: right 0.3s ease, visibility 0s linear 0.3s;
  }

  /* A blurred bar would make the open menu see-through */
  .nav.is-open {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav.is-open .nav-menu {
    right: 0;
    visibility: visible;
    transition: right 0.3s ease;
  }

  .nav-menu .btn {
    font-size: 0.9rem;
    padding: 12px 28px;
  }

  .nav-logo img {
    height: 34px;
  }

  .section {
    padding: 90px 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
  }

  .hero-wave {
    opacity: 0.14;
  }

  .hero-stage {
    margin-top: 3rem;
  }

  .hero-phone-wrap {
    right: -2%;
    bottom: -14%;
    width: 26%;
    min-width: 0;
  }

  .chip {
    padding: 6px 12px 6px 6px;
    gap: 8px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .chip small {
    font-size: 0.58rem;
  }

  .chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .chip-icon svg {
    width: 14px;
    height: 14px;
  }

  .chip-1 {
    top: auto;
    bottom: -12%;
    left: 0;
  }

  .chip-2 {
    top: -9%;
    right: 2%;
  }

  .chip-3 {
    display: none;
  }

  .browser-bar {
    height: 28px;
    gap: 8px;
    padding: 0 10px;
  }

  .browser-dots {
    gap: 5px;
  }

  .browser-dots i {
    width: 8px;
    height: 8px;
  }

  .browser-url {
    padding: 1px 10px;
    font-size: 0.65rem;
  }

  .ticker {
    padding-top: 100px;
  }

  .ticker-row span {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .looks-tab {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .cta {
    padding: 120px 0;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }

  .feature-media-stack {
    padding-bottom: 24%;
  }

  .feature-media-stack .stack-back {
    width: 94%;
  }

  .feature-media-stack .stack-front {
    width: 70%;
  }

  .phones {
    gap: 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

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

  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .hero-devices {
    --tilt: 0deg !important;
    --zoom: 1 !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
