:root {
  --bg: #09292f;
  --bg-2: #123f46;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #eefcff;
  --muted: #b7d5d9;
  --accent: #69e4e3;
  --accent-2: #b879ff;
  --warning: #ffb15c;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(105, 228, 227, 0.15), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(184, 121, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), #061b20 55%, #081b1f);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 27, 32, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; }
.brand img { display: block; width: auto; height: 42px; }
.nav-links { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.nav-links a {
  position: relative;
  padding: 14px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(105, 228, 227, 0.1);
  transform: translateY(-1px);
}
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); font-size: 1.7rem; }

.hero { position: relative; overflow: hidden; padding-top: 120px; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 48%, rgba(105,228,227,0.12) 49%, transparent 50%),
    repeating-linear-gradient(160deg, rgba(105, 228, 227, 0.12) 0 1px, transparent 1px 13px);
  opacity: 0.45;
  mask-image: radial-gradient(circle at 70% 50%, black, transparent 65%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 800; margin: 0 0 14px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.3rem, 8vw, 7.2rem); line-height: 0.92; letter-spacing: -0.08em; margin-bottom: 24px; }
.hero-copy h1 { line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 22px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); max-width: 650px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.primary { background: var(--accent); color: #05262c; border-color: var(--accent); }
.ghost { background: rgba(255, 255, 255, 0.06); }
.light { color: white; }
.hero-actions, .demo-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.metrics { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 42px; }
.metrics > div {
  width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.metrics > div:hover {
  transform: translateY(-6px);
  border-color: rgba(105, 228, 227, 0.45);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}
.metrics > div strong { display: block; font-size: 1.65rem; letter-spacing: -0.04em; }
.metrics > div span { color: var(--muted); font-size: 0.9rem; }
.metric-with-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: center;
  min-height: 120px;
}
.metric-value-row {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.metric-line {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.verification-badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.2;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.verification-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 228, 227, 0.45);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}
.verification-badge img {
  width: 88px;
  height: 34px;
  object-fit: contain;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ffffff;
}
.metrics > div .metric-value-row strong,
.metrics > div .metric-value-row span {
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0;
}
.metric-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.metric-icon-white {
  filter: brightness(0) invert(1);
}
.metric-icon-user {
  transform: translateY(-6px);
}
.metrics-quack {
  position: absolute;
  left: calc(100% - 40px);
  bottom: -28px;
  width: clamp(146px, 14vw, 210px);
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
  transform-origin: bottom center;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.metrics-quack:hover {
  transform: translateY(-10px) scale(1.06);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.3));
}

.phone-card { position: relative; display: grid; place-items: center; min-height: 650px; }
.phone {
  width: min(330px, 80vw);
  aspect-ratio: 0.49;
  background: #111;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  border: 2px solid rgba(255,255,255,0.55);
  position: relative;
  z-index: 2;
}
.phone-card.visible .phone {
  animation: phone-slide-in 1300ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}
.phone-notch { position: absolute; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; border-radius: 0 0 18px 18px; background: #030303; z-index: 2; }
.screen { height: 100%; border-radius: 31px; background: #f7fbfb; color: #183339; overflow: hidden; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-polar-badge {
  position: absolute;
  right: -200px;
  bottom: -140px;
  width: 400px;
  max-width: none;
  height: auto;
  object-fit: contain;
  z-index: 3;
  transform: rotate(20deg);
}
.status-row { display: flex; justify-content: space-between; font-size: 0.8rem; font-weight: 800; }
.mood-card, .mini-card, .insight-card { background: white; border-radius: 16px; box-shadow: 0 8px 24px rgba(30,70,80,0.1); }
.mood-card { margin: 14px 0; padding: 12px; display: grid; }
.mood-card small, .mini-card small, .insight-card span { color: #789096; }
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-card { min-height: 96px; padding: 12px; display: grid; align-content: space-between; }
.mini-card span { font-size: 0.72rem; color: #60787e; }
.mini-card strong { font-size: 1.5rem; color: #6e51e8; }
.ring strong { color: #2ac8c8; }
.sleep strong { color: #7b55ff; }
.insight-card { margin-top: 12px; padding: 14px; display: grid; gap: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.split p, .section-head p, .tech-card p, .feature-card p, .demo-card p, .poster-grid p { color: var(--muted); }
.problem-list { display: grid; gap: 16px; }
.problem-list article {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.problem-list span {
  color: var(--accent);
  font-weight: 900;
  transition: transform 0.22s ease, color 0.22s ease;
}
.problem-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 228, 227, 0.42);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 16px 46px rgba(0,0,0,0.2);
}
.problem-list article:hover span {
  transform: scale(1.08);
  color: white;
}

.solution { background: rgba(255,255,255,0.03); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .tech-card, .team-grid article, .advisor-grid article, .demo-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card { min-height: 250px; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: rgba(105,228,227,0.13); color: var(--accent); font-size: 1.5rem; margin-bottom: 20px; }

.technical { overflow: hidden; }
.pipeline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 26px; }
.pipe-step {
  width: 100%;
  min-width: 0;
  height: 170px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.pipe-step span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #05262c;
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 18px;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.pipe-step:hover {
  transform: translateY(-5px);
  border-color: rgba(105, 228, 227, 0.45);
  background: linear-gradient(180deg, rgba(105,228,227,0.18), rgba(255,255,255,0.06));
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}
.pipe-step:hover span {
  transform: scale(1.08);
  background: white;
  color: #05262c;
}
.pipe-step strong, .pipe-step small { display: block; overflow-wrap: anywhere; }
.pipe-step small { color: var(--muted); margin-top: 4px; }
.pipe-arrow { color: var(--accent); font-weight: 900; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.poster-section { background: linear-gradient(135deg, rgba(105,228,227,0.12), rgba(184,121,255,0.08)); border-block: 1px solid var(--line); }
.poster-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.poster-frame { padding: 10px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.poster-frame img { border-radius: 22px; max-height: 720px; width: 100%; object-fit: contain; background: #25545a; }

.demo-card { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.team-carousel-controls,
.advisor-carousel-controls {
  display: none;
}
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.team-grid article,
.advisor-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .team-grid article:hover,
  .advisor-grid article:hover {
    transform: translateY(-8px);
    border-color: rgba(105, 228, 227, 0.45);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.26);
  }
}
.team-section {
  --team-photo-size: 168px;
}

.team-section .team-photo {
  position: relative;
  width: var(--team-photo-size);
  min-width: var(--team-photo-size);
  max-width: var(--team-photo-size);
  height: var(--team-photo-size);
  aspect-ratio: 1 / 1;
  flex: 0 0 var(--team-photo-size);
  align-self: center;
  margin: 0 auto 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(105, 228, 227, 0.24), rgba(184, 121, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
}
.team-section .team-photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  display: block;
  object-fit: cover !important;
  object-position: center;
  border-radius: inherit;
}
.team-section .team-photo.logo-photo img {
  object-fit: contain !important;
  padding: 18px;
  background: #ffffff;
}
.team-grid p { color: var(--muted); margin-bottom: 0; }
.team-section .social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  flex-wrap: nowrap;
}
.team-section .social-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.team-section .social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.team-section .social-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.advisor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: calc((100% - 56px) / 5 * 3 + 28px);
  margin: 14px auto 0;
}
.advisor-grid strong, .advisor-grid span { display: block; }
.advisor-grid span { color: var(--muted); margin-top: 4px; }
.advisor-grid article {
  align-items: center;
  justify-content: flex-start;
  padding-left: 26px;
  padding-right: 26px;
}
.advisor-grid .team-photo {
  margin-left: auto;
  margin-right: auto;
}
/* Footer */
.footer {
  padding: 64px 0 28px;
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.footer-partner-logos {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.footer-partner-logos img {
  width: min(150px, 100%);
  max-height: 58px;
  object-fit: contain;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
}

.footer-column h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-column a,
.footer-column p {
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  color: var(--muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--muted);
  font-weight: 800;
}

.legal-page {
  min-height: 100vh;
}

.legal-container {
  max-width: 860px;
}

.legal-container h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-container h2 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 34px 0 10px;
}

.legal-container p {
  color: var(--muted);
}

.legal-container a {
  color: var(--accent);
  font-weight: 800;
}

.legal-updated {
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer {
    padding-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes phone-slide-in {
  from {
    transform: translateX(100vw) rotate(-2deg);
  }

  to {
    transform: translateX(0) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-card.visible .phone {
    animation: none;
  }
}

@media (max-width: 980px) {
  .hero-grid, .split, .poster-grid { grid-template-columns: 1fr; }
  .phone-card { min-height: 560px; }
  .feature-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); justify-self: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .advisor-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

@media (max-width: 720px) {
  .section-pad { padding: 68px 0; }
  .nav-links {
    position: absolute;
  top: 84px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(6, 27, 32, 0.96);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .verification-badge {
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }
  .metrics-quack {
    left: auto;
    right: -8px;
    top: auto;
    bottom: -82px;
    width: 98px;
    transform: none;
  }
  .feature-grid, .tech-grid, .team-grid, .advisor-grid { grid-template-columns: 1fr; }
  .demo-card { flex-direction: column; align-items: flex-start; }
  .hero-actions, .demo-actions { width: 100%; }
  .btn { width: 100%; }
  h1 { font-size: clamp(3.1rem, 18vw, 5rem); }
}

/* Embedded demo section */
.embedded-section {
  background: rgba(255, 255, 255, 0.03);
  border-block: 1px solid var(--line);
  padding-block: 60px;
}

.demo-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-top: 8px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.demo-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demo-tab:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.demo-tab.active {
  background: var(--accent);
  color: #05262c;
}

.demo-showcase {
  width: 100%;
}

.embed-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.demo-panel[hidden] {
  display: none;
}

.embed-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.embed-title h3 {
  margin-bottom: 2px;
}

.embed-title p {
  margin-bottom: 0;
  color: var(--muted);
}

.embed-title a {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

/* Scaled website preview */
.scaled-iframe-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #061b20;
}

/*
  The iframe is rendered as a normal desktop-sized page,
  then visually scaled down.
*/
.scaled-iframe-frame iframe {
  width: 1440px;
  height: 810px;
  border: 0;
  display: block;
  transform: scale(var(--iframe-scale, 0.45));
  transform-origin: top left;
}

/* Normal 16:9 video embed */
.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #061b20;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Responsive layout */
@media (max-width: 900px) {
  .scaled-iframe-frame iframe {
    width: 1200px;
    height: 675px;
  }
}

@media (max-width: 560px) {
  .embed-title {
    flex-direction: column;
  }
  .demo-tabs {
    display: flex;
    width: 100%;
  }
  .demo-tab {
    flex: 1;
    padding: 0 12px;
  }
  .scaled-iframe-frame iframe {
    width: 1000px;
    height: 562px;
  }
}

.challenge-section {
  background: linear-gradient(135deg, rgba(105,228,227,0.08), rgba(184,121,255,0.06));
}

.gallery-section {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.gallery-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(300px, 1.56fr);
  gap: 44px;
  align-items: center;
  padding: 28px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.gallery-row.reverse img { order: 2; }
.gallery-row.reverse div { order: 1; }
.gallery-row.reverse {
  grid-template-columns: minmax(300px, 1.56fr) minmax(180px, 0.44fr);
}

.gallery-row img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19.5;
  justify-self: center;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.24);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-row img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 70px rgba(0,0,0,0.32);
}

.gallery-row p { color: var(--muted); margin-bottom: 0; }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(2, 12, 15, 0.86);
  backdrop-filter: blur(16px);
}

.image-modal.open {
  display: flex;
}

.image-modal img {
  width: auto;
  max-width: min(92vw, 420px);
  max-height: 88vh;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-close:hover {
  color: var(--accent);
  background: rgba(105, 228, 227, 0.12);
}

.team-section {
  background: rgba(255,255,255,0.02);
}


/* Tech stack logo carousel */
.technical {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
  overflow: hidden;
}

.tech-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 18px 0;
}

.tech-marquee::before,
.tech-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.tech-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.tech-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: tech-scroll 28s linear infinite;
}

.tech-marquee:hover .tech-track {
  animation-play-state: paused;
}

.tech-logo-card {
  width: 150px;
  min-width: 150px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tech-logo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.tech-logo-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.tech-logo-card span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

@keyframes tech-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  .tech-logo-card {
    width: 125px;
    min-width: 125px;
    height: 105px;
    border-radius: 20px;
  }

  .tech-logo-card img {
    width: 38px;
    height: 38px;
  }

  .tech-logo-card span {
    font-size: 0.82rem;
  }

  .tech-track {
    gap: 16px;
    animation-duration: 22s;
  }
}

@media (max-width: 980px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
  .gallery-row.reverse img,
  .gallery-row.reverse div {
    order: initial;
  }
  .gallery-row.mobile-image-first {
    grid-template-columns: 1fr !important;
  }
  .gallery-row.mobile-image-first > img {
    order: 0 !important;
    justify-self: center;
  }
  .gallery-row.mobile-image-first > div {
    order: 1 !important;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .embed-card iframe {
    height: 460px;
    min-height: 360px;
  }
  .embed-title {
    flex-direction: column;
  }
  .gallery-row {
    padding: 18px;
    gap: 22px;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .section-pad {
    padding: 56px 0;
  }

  .hero {
    padding-top: 54px;
    padding-bottom: 120px;
  }

  .hero-grid {
    gap: 34px;
  }

  .eyebrow {
    font-size: 0.68rem;
    line-height: 1.5;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 10px;
  }

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

  .metrics > div {
    padding: 14px 10px;
    border-radius: 18px;
  }

  .metric-with-icon {
    min-height: 116px;
    gap: 12px;
  }

  .metric-icon {
    width: 52px;
    height: 52px;
  }

  .metrics > div .metric-value-row strong,
  .metrics > div .metric-value-row span {
    font-size: 0.92rem;
  }

  .metrics-quack {
    display: none;
  }

  .phone-card {
    min-height: 560px;
    overflow: visible;
  }

  .phone {
    width: min(245px, 68vw);
    border-radius: 34px;
    padding: 10px;
  }

  .phone-notch {
    width: 92px;
    height: 22px;
  }

  .screen {
    border-radius: 25px;
  }

  .phone-polar-badge {
    width: 280px;
    right: -102px;
    bottom: -78px;
  }

  .embedded-section {
    padding-block: 48px;
  }

  .demo-tabs {
    border-radius: 18px;
  }

  .embed-card {
    padding: 14px;
    border-radius: 20px;
  }

  .embed-title {
    gap: 8px;
  }

  .scaled-iframe-frame,
  .video-frame {
    border-radius: 16px;
  }

  .scaled-iframe-frame iframe {
    width: 1000px;
    height: 562px;
    min-height: 0;
  }

  .video-frame iframe {
    height: 100%;
    min-height: 0;
  }

  .pipeline {
    gap: 10px;
  }

  .pipe-step {
    height: auto;
    min-height: 138px;
    padding: 16px;
    border-radius: 18px;
  }

  .pipe-arrow {
    transform: rotate(90deg);
  }

  .gallery-row {
    padding: 16px;
    border-radius: 20px;
  }

  .gallery-row.mobile-image-first img {
    order: 0;
  }

  .gallery-row.mobile-image-first div {
    order: 1;
  }

  .gallery-row img {
    max-width: 190px;
    border-radius: 24px;
  }

  .team-grid article,
  .advisor-grid article {
    min-height: auto;
  }

  .team-carousel-controls,
  .advisor-carousel-controls {
    display: block;
    position: relative;
    height: 0;
    z-index: 4;
    pointer-events: none;
  }

  .team-carousel-controls {
    top: 172px;
  }

  .advisor-carousel-controls {
    top: -190px;
    margin-bottom: -42px;
  }

  .team-carousel-btn {
    position: absolute;
    top: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  }

  .team-carousel-btn:first-child {
    left: 6px;
  }

  .team-carousel-btn:last-child {
    left: calc(52px + min(78vw, 310px) - 21px);
  }

  .team-carousel-btn:active {
    transform: scale(0.96);
  }

  .team-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    padding: 2px 52px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .team-grid::-webkit-scrollbar {
    display: none;
  }

  .team-grid article {
    flex: 0 0 min(78vw, 310px);
    scroll-snap-align: start;
  }

  .advisor-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    padding: 2px 52px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .advisor-grid::-webkit-scrollbar {
    display: none;
  }

  .advisor-grid article {
    flex: 0 0 min(78vw, 310px);
    scroll-snap-align: start;
  }

  .team-section {
    --team-photo-size: min(220px, 72vw);
  }

  .footer-grid {
    gap: 22px;
  }

  .footer-bottom {
    gap: 12px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 2.45rem;
  }

  .metric-icon {
    width: 46px;
    height: 46px;
  }

  .metrics > div .metric-value-row strong,
  .metrics > div .metric-value-row span {
    font-size: 0.84rem;
  }

  .phone {
    width: min(225px, 70vw);
  }

  .phone-polar-badge {
    width: 230px;
    right: -78px;
    bottom: -66px;
  }

}
