:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #667085;
  --blue: #1f65ff;
  --blue-deep: #073fbb;
  --line: rgba(31, 101, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.62);
  --shadow: 0 24px 80px rgba(32, 55, 91, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #f8fbff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
a {
  font: inherit;
}

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

.backdrop,
.showroom-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop {
  z-index: 0;
  background: #f8fbff;
}

.backdrop-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.backdrop-panel.is-active {
  opacity: 1;
}

.backdrop-hero {
  background:
    linear-gradient(90deg, rgba(31, 101, 255, 0.075) 1px, transparent 1px) 0 0 /
      74px 74px,
    linear-gradient(rgba(31, 101, 255, 0.065) 1px, transparent 1px) 0 0 / 74px
      74px,
    linear-gradient(135deg, rgba(31, 101, 255, 0.16), transparent 28%) right top /
      52% 60% no-repeat,
    linear-gradient(315deg, rgba(0, 184, 255, 0.12), transparent 24%) left bottom /
      48% 54% no-repeat,
    #fbfdff;
}

.backdrop-hero::before,
.backdrop-launch::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(31, 101, 255, 0.08);
  background:
    linear-gradient(90deg, transparent 0 35%, rgba(31, 101, 255, 0.22) 35% 35.4%, transparent 35.4%),
    linear-gradient(transparent 0 62%, rgba(31, 101, 255, 0.16) 62% 62.4%, transparent 62.4%);
  mask-image: linear-gradient(135deg, #000 0 28%, transparent 58%);
}

.backdrop-problem {
  background:
    linear-gradient(112deg, rgba(255, 59, 48, 0.24), transparent 34%),
    linear-gradient(145deg, transparent 10%, rgba(255, 204, 0, 0.24) 28%, transparent 52%),
    linear-gradient(210deg, transparent 10%, rgba(52, 199, 89, 0.22) 34%, transparent 61%),
    linear-gradient(285deg, rgba(0, 122, 255, 0.24), rgba(175, 82, 222, 0.2), transparent 58%),
    #fbfbfd;
}

.backdrop-problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px) 0 0 /
      42px 42px,
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px) 0 0 / 42px
      42px;
  opacity: 0.42;
}

.backdrop-stack {
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.72), rgba(5, 10, 18, 0.95)),
    linear-gradient(115deg, rgba(69, 138, 255, 0.28), transparent 36%),
    linear-gradient(245deg, rgba(254, 244, 122, 0.18), transparent 34%),
    #050a12;
}

.backdrop-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 /
      82px 82px,
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 82px
      82px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 75%, transparent);
}

.backdrop-launch {
  background:
    linear-gradient(90deg, rgba(31, 101, 255, 0.09) 1px, transparent 1px) 0 0 /
      86px 86px,
    linear-gradient(rgba(31, 101, 255, 0.075) 1px, transparent 1px) 0 0 / 86px
      86px,
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(234, 245, 255, 0.94)),
    #f7fbff;
}

.showroom-layer {
  z-index: 1;
  opacity: 1;
  transition: opacity 620ms ease;
}

body[data-scene="1"] .showroom-layer,
body[data-scene="2"] .showroom-layer {
  opacity: 0;
}

#showroom {
  width: 100%;
  height: 100%;
  display: block;
}

.model-loading {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 5vw, 60px);
  padding: 10px 14px;
  border: 1px solid rgba(31, 101, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(7, 17, 31, 0.58);
  font-size: 12px;
  letter-spacing: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease, transform 500ms ease;
  box-shadow: 0 16px 40px rgba(31, 101, 255, 0.1);
}

body.model-ready .model-loading {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 20px;
  left: 50%;
  width: min(calc(100% - 40px), 1120px);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(11, 30, 61, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(31, 101, 255, 0.22);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  color: rgba(7, 17, 31, 0.66);
  font-size: 14px;
  font-weight: 650;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.top-nav a:hover {
  background: rgba(31, 101, 255, 0.08);
  color: var(--ink);
}

.top-nav .launch-link {
  background: #07111f;
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.18);
}

.top-nav .launch-link:hover {
  background: var(--blue);
  color: #fff;
}

.page-dots {
  position: fixed;
  z-index: 9;
  top: 50%;
  right: clamp(18px, 3vw, 38px);
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(7, 17, 31, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.dot.is-active {
  border-color: var(--blue);
  background: var(--blue);
  transform: scale(1.45);
}

main {
  position: relative;
  z-index: 2;
}

.page-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 118px clamp(24px, 7vw, 96px) 72px;
}

.section-content {
  width: min(100%, 640px);
  opacity: 0.16;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.page-section.is-active .section-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 10.5ch;
  font-size: clamp(48px, 8vw, 104px);
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(7, 17, 31, 0.68);
  font-size: clamp(19px, 2.3vw, 28px);
  line-height: 1.28;
  letter-spacing: 0;
}

.actions {
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #07111f;
  color: #fff;
  cursor: pointer;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: 0 22px 56px rgba(7, 17, 31, 0.22);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover {
  background: var(--blue);
  box-shadow: 0 24px 64px rgba(31, 101, 255, 0.3);
  transform: translateY(-2px);
}

.primary-action:active {
  transform: translateY(0);
}

.hero-copy {
  margin-left: max(0px, calc((100vw - 1120px) / 2));
}

.hero,
.launch {
  align-items: flex-start;
  padding-top: clamp(98px, 14vh, 132px);
}

.problem {
  justify-content: center;
}

.problem-copy {
  width: min(100%, 1060px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.problem .eyebrow {
  color: #6156f2;
}

.problem h2 {
  max-width: 12ch;
  font-size: clamp(50px, 6.6vw, 88px);
}

.problem-heading {
  max-width: 780px;
}

.problem-heading .lead {
  max-width: 660px;
}

.rainbow-line {
  width: min(480px, 100%);
  height: 7px;
  margin: 30px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b30, #ffcc00, #34c759, #00a2ff, #af52de);
  box-shadow: 0 16px 48px rgba(0, 122, 255, 0.2);
}

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

.problem-card {
  min-height: 188px;
  padding: 18px;
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 54px rgba(42, 52, 85, 0.08);
  backdrop-filter: blur(14px);
}

.problem-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #6156f2;
  font-size: 13px;
  font-weight: 800;
}

.problem-card h3,
.stack-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: 0;
}

.problem-card p,
.stack-card p {
  margin: 14px 0 0;
  color: rgba(7, 17, 31, 0.68);
  font-size: 14px;
  line-height: 1.48;
}

.stack {
  justify-content: center;
  color: #fff;
}

.stack-copy {
  width: min(100%, 1080px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.stack .eyebrow {
  color: #fef47a;
}

.stack h2 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(50px, 6.5vw, 88px);
}

.stack-intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.34;
  letter-spacing: 0;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}

.partner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.partner img {
  width: min(172px, 48%);
  height: auto;
  display: block;
}

.partner-featherless {
  background: rgba(254, 244, 122, 0.93);
  border-color: rgba(254, 244, 122, 0.7);
}

.partner-featherless img {
  width: min(230px, 82%);
}

.partner-featherless span {
  color: #141413;
  font-weight: 780;
}

.partner-flutter {
  background: rgba(3, 23, 40, 0.64);
}

.partner-flutter svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 12px 24px rgba(84, 197, 248, 0.24));
}

.partner-flutter span {
  color: #54c5f8;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.partner-supabase {
  gap: 10px;
  color: #3ecf8e;
  background: rgba(8, 36, 31, 0.82);
}

.partner-supabase svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 10px 20px rgba(62, 207, 142, 0.28));
}

.partner-supabase span {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stack-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stack-card h3 {
  color: #fff;
}

.stack-card p {
  color: rgba(255, 255, 255, 0.68);
}

.launch-copy {
  margin-left: max(0px, calc((100vw - 1120px) / 2));
}

.launch .eyebrow {
  color: var(--blue-deep);
}

.launch h2 {
  max-width: 11ch;
}

.launch-button {
  margin-top: 34px;
}

.launch-note {
  min-height: 22px;
  margin: 16px 0 0;
  color: rgba(7, 17, 31, 0.58);
  font-size: 14px;
}

body[data-scene="2"] .site-header {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 17, 31, 0.58);
}

body[data-scene="2"] .brand,
body[data-scene="2"] .top-nav {
  color: rgba(255, 255, 255, 0.84);
}

body[data-scene="2"] .top-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body[data-scene="2"] .top-nav .launch-link {
  background: #fff;
  color: #07111f;
}

body[data-scene="2"] .dot {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

body[data-scene="2"] .dot.is-active {
  border-color: #fef47a;
  background: #fef47a;
}

@media (max-width: 820px) {
  .site-header {
    top: max(12px, env(safe-area-inset-top));
    width: calc(100% - max(24px, env(safe-area-inset-left) + env(safe-area-inset-right)));
    min-height: 54px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
  }

  .top-nav a:not(.launch-link) {
    display: none;
  }

  .top-nav .launch-link {
    min-height: 44px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .primary-action {
    min-height: 48px;
  }

  .page-dots {
    top: auto;
    right: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    grid-auto-flow: column;
    transform: translateX(50%);
  }

  .page-section {
    min-height: 100svh;
    min-height: 100dvh;
    align-items: flex-start;
    padding:
      calc(96px + env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      calc(92px + env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
  }

  .section-content,
  .hero-copy,
  .launch-copy {
    margin-left: 0;
  }

  h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  h2 {
    font-size: clamp(46px, 15vw, 72px);
  }

  .lead {
    font-size: 19px;
  }

  .problem {
    align-items: center;
  }

  .problem-copy,
  .stack-copy {
    display: block;
  }

  .problem-grid,
  .partner-row {
    grid-template-columns: 1fr 1fr;
  }

  .problem-grid,
  .stack-panel {
    margin-top: 26px;
  }

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

  .problem-copy,
  .stack-copy {
    width: min(100%, 720px);
  }

  .problem-heading {
    max-width: 620px;
  }

  .problem-card,
  .stack-card {
    min-height: 0;
  }

  .partner {
    min-height: 96px;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .partner img {
    width: min(148px, 82%);
  }

  .partner-flutter span {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .page-dots {
    display: none;
  }

  .problem-grid,
  .stack-grid,
  .partner-row {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .stack-card {
    padding: 18px;
  }

  .problem-card span {
    margin-bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
