:root {
  --brand-navy: #022550;
  --brand-orange: #ef7b45;
  --brand-blue: #8fa1e0;
  --brand-amber: #edae49;
  --brand-green: #4ade80;
  --brand-gradient: linear-gradient(135deg, #ef7b45 0%, #8fa1e0 100%);
  --brand-gradient-hover: linear-gradient(135deg, #ff8c56 0%, #aabbf5 100%);
  --ink: #ffffff;
  --ink-muted: #a0aec0;
  --page: #0f121d;
  --page-deep: #05070a;
  --surface: rgba(20, 25, 40, 0.4);
  --surface-raised: rgba(20, 25, 40, 0.68);
  --line: rgba(255, 255, 255, 0.08);
  --teal: #8fa1e0;
  --teal-soft: rgba(143, 161, 224, 0.1);
  --connected: #00f19f;
  --yellow: #ffde00;
  --blue: #0093e7;
  --sleep: #7ba1bb;
  --red: #ff0026;
  --max-width: 1100px;
  --radius-lg: 24px;
  --radius-md: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-deep);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background:
    radial-gradient(circle at 18% 12%, rgba(2, 37, 80, 0.5), transparent 34rem),
    radial-gradient(circle at 88% 78%, rgba(143, 161, 224, 0.16), transparent 38rem);
}

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

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

p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.05;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--brand-gradient);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a,
.site-footer > a:last-child {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer > a:last-child:hover,
.site-footer > a:last-child:focus-visible {
  color: var(--teal);
}

.header-cta {
  justify-self: end;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: rgba(0, 241, 159, 0.5);
  background: var(--teal-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 780px;
  margin: 0 auto;
  padding: 160px 0 100px;
}

.eyebrow,
.section-label,
.card-kicker {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px var(--teal-soft);
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(3.8rem, 7vw, 5.25rem);
  line-height: 1.02;
}

.hero h1 span {
  color: transparent;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero h1 .hero-line-plain {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-summary {
  max-width: 690px;
  margin-top: 34px;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--brand-gradient);
  box-shadow: 0 8px 24px rgba(239, 123, 69, 0.35);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-gradient-hover);
  box-shadow: 0 16px 32px rgba(239, 123, 69, 0.5);
}

.button-secondary {
  border-color: var(--line);
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-list span {
  color: var(--teal);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 650px;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 123, 69, 0.23), rgba(143, 161, 224, 0.16) 48%, transparent 70%);
  filter: blur(14px);
}

.device,
.screenshot-card,
.browser-shot,
.control-shot {
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 25, 40, 0.4);
  box-shadow: var(--shadow);
}

.device-hero {
  position: relative;
  z-index: 2;
  width: min(360px, 79%);
  max-height: none;
  padding: 0 clamp(14px, 2vw, 24px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(2.8deg);
}

.device-hero img {
  width: 100%;
  height: auto;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 205px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(20, 25, 40, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  font-size: 0.76rem;
}

.floating-card strong,
.floating-card span:last-child {
  display: block;
}

.floating-card strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.87rem;
}

.floating-card span:last-child {
  color: var(--ink-muted);
}

.floating-card-top {
  top: 16%;
  right: -2%;
}

.floating-card-bottom {
  bottom: 14%;
  left: -6%;
}

.status-icon,
.metric-icon {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: #07110e;
  background: var(--connected);
  font-size: 0.88rem;
  font-weight: 900;
}

.metric-icon {
  color: #171300;
  background: var(--yellow);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.signal-strip div {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 34px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip strong {
  color: transparent;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.signal-strip span {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.flow-intro,
.story-section,
.authorization-section,
.controls-section,
.data-flow,
.final-cta,
.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.flow-intro {
  max-width: 940px;
  padding: 150px 0 92px;
  text-align: center;
}

.flow-intro .section-label,
.section-heading .section-label,
.story-copy .section-label,
.final-cta .section-label {
  margin-bottom: 20px;
}

.flow-intro p:last-child {
  max-width: 700px;
  margin: 30px auto 0;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(520px, 1.24fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: center;
  padding: 100px 0 150px;
}

.story-section-reverse {
  grid-template-columns: minmax(520px, 1.24fr) minmax(300px, 0.76fr);
}

.story-section-reverse .story-copy {
  grid-column: 2;
  grid-row: 1;
}

.story-section-reverse .dashboard-stack {
  grid-column: 1;
  grid-row: 1;
}

.step-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(143, 161, 224, 0.3);
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.story-copy h2,
.section-heading h2 {
  max-width: 810px;
}

.story-copy > p:not(.section-label):not(.source-note),
.section-heading > p:last-child {
  max-width: 660px;
  margin-top: 30px;
}

.feature-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  position: relative;
  padding: 17px 0 17px 27px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 750;
}

.feature-list li::before {
  position: absolute;
  top: 23px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.screenshot-card {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow:
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
}

.screenshot-card > a,
.browser-shot > a,
.control-shot > a {
  padding-right: clamp(14px, 2.4vw, 28px);
  padding-left: clamp(14px, 2.4vw, 28px);
}

.screenshot-card-offset {
  margin-top: 86px;
}

.screenshot-card img,
.browser-shot img,
.control-shot img {
  width: 100%;
  height: auto;
  transition: transform 300ms ease;
}

.screenshot-card a,
.browser-shot a,
.control-shot a {
  display: block;
  overflow: hidden;
}

.screenshot-card a:hover img,
.screenshot-card a:focus-visible img,
.browser-shot a:hover img,
.browser-shot a:focus-visible img,
.control-shot a:hover img,
.control-shot a:focus-visible img {
  transform: scale(1.012);
}

.screenshot-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 0.8rem;
}

.screenshot-card figcaption span {
  color: var(--ink-muted);
}

.authorization-section {
  padding: 140px 0 155px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 29, 0.45);
}

.section-heading-centered {
  max-width: 900px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-heading-centered h2,
.section-heading-centered > p:last-child {
  margin-right: auto;
  margin-left: auto;
}

.oauth-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.oauth-timeline::before {
  position: absolute;
  top: 23px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 123, 69, 0.5), rgba(143, 161, 224, 0.5), transparent);
  content: "";
}

.oauth-step {
  position: relative;
  z-index: 1;
}

.oauth-step-label {
  display: flex;
  gap: 9px;
  align-items: center;
  width: max-content;
  margin: 0 auto 20px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: var(--page);
  font-size: 0.73rem;
  font-weight: 800;
}

.oauth-step-label span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--brand-gradient);
}

.browser-shot {
  max-height: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 25, 40, 0.4);
}

.metric-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.metric-pills span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 800;
}

.source-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
}

.source-note span {
  color: var(--teal);
  font-size: 1.25rem;
}

.dashboard-stack {
  position: relative;
  min-height: 600px;
}

.dashboard-shot {
  position: absolute;
  width: 54%;
}

.dashboard-shot-back {
  top: 5%;
  right: 2%;
  transform: rotate(5deg);
}

.dashboard-shot-front {
  bottom: 2%;
  left: 2%;
  z-index: 2;
  transform: rotate(-4deg);
}

.controls-section {
  padding: 145px 0;
}

.controls-section > .section-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 70px;
}

.controls-section > .section-heading .step-number,
.controls-section > .section-heading .section-label,
.controls-section > .section-heading h2 {
  grid-column: 1;
}

.controls-section > .section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin-top: 0;
}

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

.control-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 7%, rgba(143, 161, 224, 0.12), transparent 19rem),
    rgba(20, 25, 40, 0.4);
  box-shadow:
    0 4px 24px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.control-card-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 40px;
}

.control-card h3 {
  margin-top: 16px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.03;
}

.control-card-copy p {
  margin-top: 20px;
  font-size: 0.94rem;
}

.control-shot {
  align-self: end;
  width: 96%;
  max-height: none;
  margin: 42px -4px -12px auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(2deg);
}

.control-card-trainer {
  background:
    radial-gradient(circle at 88% 7%, rgba(239, 123, 69, 0.12), transparent 19rem),
    rgba(20, 25, 40, 0.4);
}

.control-card-trainer .control-shot {
  transform: rotate(-2deg);
}

.control-card-disconnect {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.7fr) minmax(430px, 1.3fr);
  min-height: 500px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 0, 38, 0.1), transparent 24rem),
    rgba(20, 25, 40, 0.4);
}

.control-card-disconnect .card-kicker {
  color: #ff6c82;
}

.control-card-disconnect .control-card-copy {
  align-self: center;
  padding: 54px;
}

.control-shot-landscape {
  width: 86%;
  max-height: none;
  margin-right: 7%;
  transform: rotate(1deg);
}

.data-flow {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 80px;
  align-items: start;
  padding: 135px 0;
  border-top: 1px solid var(--line);
}

.data-flow h2 {
  margin-top: 20px;
}

.data-flow-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.data-flow-list li {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.data-flow-list span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
}

.data-flow-list strong {
  font-size: 1rem;
}

.data-flow-list small {
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.final-cta {
  padding: 120px 48px;
  border: 1px solid rgba(239, 123, 69, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(239, 123, 69, 0.15), transparent 33rem),
    linear-gradient(145deg, rgba(20, 25, 40, 0.95), rgba(10, 12, 20, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.final-cta h2 {
  max-width: 850px;
  margin: 0 auto;
}

.final-cta p:not(.section-label) {
  max-width: 640px;
  margin: 28px auto 35px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 70px 0;
}

.site-footer p {
  max-width: 650px;
  justify-self: center;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    gap: 35px;
  }

  .floating-card-top {
    right: -5%;
  }

  .floating-card-bottom {
    left: -5%;
  }

  .story-section,
  .story-section-reverse {
    grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr);
    gap: 46px;
  }

  .oauth-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }

  .oauth-timeline::before {
    display: none;
  }

  .browser-shot {
    max-height: 760px;
  }

  .control-card {
    grid-template-columns: 1fr;
  }

  .control-card-copy {
    align-self: start;
  }

  .control-shot {
    width: 66%;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .control-card-disconnect {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .control-card-disconnect .control-shot {
    width: 86%;
  }
}

@media (max-width: 780px) {
  .site-header,
  .hero,
  .signal-strip,
  .flow-intro,
  .story-section,
  .authorization-section,
  .controls-section,
  .data-flow,
  .final-cta,
  .site-footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 74px;
  }

  .header-cta {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 78px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18vw, 6rem);
  }

  .hero-summary {
    max-width: 600px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .device-hero {
    width: min(340px, 78%);
  }

  .floating-card-top {
    top: 19%;
    right: 0;
  }

  .floating-card-bottom {
    bottom: 12%;
    left: 0;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .flow-intro {
    padding-top: 110px;
  }

  .story-section,
  .story-section-reverse {
    grid-template-columns: 1fr;
    padding: 70px 0 110px;
  }

  .story-section-reverse .story-copy,
  .story-section-reverse .dashboard-stack {
    grid-column: 1;
  }

  .story-section-reverse .story-copy {
    grid-row: 1;
  }

  .story-section-reverse .dashboard-stack {
    grid-row: 2;
  }

  .shot-pair {
    gap: 14px;
  }

  .screenshot-card,
  .browser-shot {
    border-radius: 22px;
  }

  .screenshot-card-offset {
    margin-top: 55px;
  }

  .screenshot-card figcaption {
    display: grid;
    gap: 4px;
    padding: 14px;
  }

  .authorization-section {
    padding: 105px 0;
  }

  .oauth-timeline {
    gap: 25px 12px;
  }

  .oauth-step-label {
    font-size: 0.64rem;
  }

  .dashboard-stack {
    min-height: 730px;
  }

  .controls-section {
    padding: 100px 0;
  }

  .controls-section > .section-heading {
    display: block;
    margin-bottom: 48px;
  }

  .controls-section > .section-heading > p:last-child {
    margin-top: 28px;
  }

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

  .control-card,
  .control-card-disconnect {
    grid-column: auto;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .control-card-copy,
  .control-card-disconnect .control-card-copy {
    align-self: center;
    padding: 30px;
  }

  .control-shot,
  .control-card-disconnect .control-shot {
    width: 92%;
    margin: 45px 0 -50px auto;
  }

  .data-flow {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 100px 0;
  }

  .final-cta {
    padding: 90px 28px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .site-footer > a:last-child {
    justify-self: center;
  }
}

@media (max-width: 540px) {
  p {
    font-size: 1rem;
  }

  h2 {
    font-size: clamp(2.25rem, 13vw, 3.55rem);
  }

  .brand span:last-child {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .floating-card {
    min-width: 182px;
    padding: 11px 12px;
  }

  .floating-card-top {
    top: 17%;
  }

  .floating-card-bottom {
    bottom: 10%;
  }

  .signal-strip div {
    min-height: 110px;
    padding: 20px;
  }

  .shot-pair,
  .oauth-timeline {
    grid-template-columns: 1fr;
  }

  .screenshot-card-offset {
    margin-top: 0;
  }

  .oauth-step-label {
    font-size: 0.72rem;
  }

  .dashboard-stack {
    display: grid;
    min-height: auto;
    gap: 20px;
  }

  .dashboard-shot {
    position: static;
    width: 100%;
    transform: none;
  }

  .dashboard-shot-front {
    grid-row: 1;
  }

  .control-card,
  .control-card-disconnect {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .control-card-copy,
  .control-card-disconnect .control-card-copy {
    padding: 30px 26px;
  }

  .control-shot,
  .control-card-disconnect .control-shot {
    width: 74%;
    max-height: 520px;
    margin: 0 auto -55px;
    transform: none;
  }

  .data-flow-list li {
    grid-template-columns: 38px 1fr;
  }

  .data-flow-list small {
    grid-column: 2;
  }
}

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

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

/* Shared WayUpSystems site shell */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 5px 5px;
}

.ambient-light {
  position: fixed;
  z-index: -1;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
  filter: blur(140px);
}

.light-1 {
  top: -200px;
  left: -100px;
  background: var(--brand-navy);
}

.light-2 {
  right: -100px;
  bottom: -200px;
  background: var(--brand-blue);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 20px;
}

.nav-pill {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: rgba(5, 7, 10, 0.72);
  background-clip: padding-box;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.nav-pill::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 100px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(239, 123, 69, 0.3), rgba(143, 161, 224, 0.3));
  content: "";
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.logo img {
  width: auto;
  height: 32px;
}

.text-amber {
  color: var(--brand-amber);
}

.nav-links-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 200ms ease, background 200ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--ink);
  background: var(--brand-gradient);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 200ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  display: none;
  min-width: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #11131b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.lang-dropdown.active .lang-menu {
  display: block;
}

.lang-menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: left;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.menu-btn {
  display: none;
  padding: 6px;
  border: 0;
  color: var(--ink);
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 20px;
  left: 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 25, 40, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  font-weight: 500;
  transition: transform 200ms ease, background 200ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--brand-gradient);
  transform: translateX(4px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  white-space: nowrap;
}

#scrollToTopBtn {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 1200;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--brand-navy);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform 200ms ease, background 200ms ease;
}

#scrollToTopBtn.visible {
  display: flex;
}

#scrollToTopBtn:hover,
#scrollToTopBtn:focus-visible {
  background: var(--brand-gradient-hover);
  transform: translateY(-4px) scale(1.06);
}

.site-footer {
  display: block;
  width: 100%;
  max-width: none;
  padding: 60px 0 30px;
  margin: 120px 0 0;
  border-top: 1px solid var(--line);
  background: #010205;
}

.footer-container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 28px;
}

.footer-left p,
.footer-link {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-link:hover,
.footer-link:focus-visible,
.socials a:hover,
.socials a:focus-visible {
  color: var(--brand-orange);
}

.socials {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.socials a {
  color: var(--ink-muted);
  font-size: 1.2rem;
}

.site-footer .copyright {
  color: #606574;
  font-size: 0.8rem;
}

.site-footer .footer-disclaimer {
  max-width: 720px;
  padding-top: 28px;
  margin: 34px auto 0;
  border-top: 1px solid var(--line);
  color: #697181;
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-links-desktop {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .navbar {
    top: 12px;
    padding: 0 12px;
  }

  .nav-pill {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
  }

  .logo-text {
    display: inline;
    font-size: 1rem;
  }

  .logo img {
    height: 28px;
  }

  .hero {
    padding-top: 132px;
  }

  .footer-container {
    width: min(calc(100% - 32px), var(--max-width));
  }
}
