:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --bg-soft: #e8eef1;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: #ffffff;
  --text: #111820;
  --muted: #5f6d78;
  --faint: #8a96a0;
  --line: rgba(15, 24, 32, 0.12);
  --accent: #6f92a0;
  --accent-strong: #36515d;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: ui-sans-serif, "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 146, 160, 0.14), transparent 34rem),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.82), transparent 30rem),
    linear-gradient(180deg, #fbfcfd 0%, #eef3f5 58%, #e8eef1 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.3;
  transform: translate3d(0, 0, 0);
}

.ambient-a {
  width: 28rem;
  height: 28rem;
  left: -10rem;
  top: 8rem;
  background: rgba(111, 146, 160, 0.18);
}

.ambient-b {
  width: 22rem;
  height: 22rem;
  right: -8rem;
  top: 26rem;
  background: rgba(255, 255, 255, 0.7);
}

.noise {
  display: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 5;
  width: min(1120px, calc(100% - 32px));
  min-height: 66px;
  margin: 18px auto 0;
  padding: 8px 8px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 24px 70px rgba(43, 55, 64, 0.14);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  filter: drop-shadow(0 8px 16px rgba(43, 55, 64, 0.18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 11px 16px;
  border-radius: 999px;
  transition: color 360ms var(--ease), background 360ms var(--ease), transform 360ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 24, 32, 0.055);
  transform: translateY(-1px);
}

.nav-links .nav-download {
  color: #f6fafb;
  background: #111820;
  font-weight: 760;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 24, 32, 0.08);
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

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

.hero {
  width: min(1220px, calc(100% - 40px));
  min-height: min(760px, calc(100dvh - 150px));
  margin: 0 auto;
  padding: 66px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.22em;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 520px;
  margin-bottom: 34px;
  color: #52616c;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero-copy {
  min-width: 0;
}

.hero-actions,
.closing-section,
.install-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 7px 7px 22px;
  font-weight: 780;
  white-space: nowrap;
  transition: transform 520ms var(--ease), background 520ms var(--ease), border-color 520ms var(--ease), color 520ms var(--ease);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-primary {
  color: #f7fbfc;
  background: #111820;
  box-shadow: 0 18px 42px rgba(43, 55, 64, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-primary:hover {
  transform: translateY(-2px);
}

.button-secondary {
  padding: 7px 22px;
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.button-secondary:hover {
  border-color: rgba(15, 24, 32, 0.2);
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.button-orb {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 520ms var(--ease), background 520ms var(--ease);
}

.button:hover .button-orb {
  transform: translateY(1px) scale(1.05);
  background: rgba(255, 255, 255, 0.22);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  min-width: 0;
}

.device-shell {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 24, 32, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 44px 110px rgba(43, 55, 64, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  transform-origin: center;
}

.device-core {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 9px);
  background: #f8fafb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.device-core img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 34%;
  opacity: 1;
}

.screen-glow {
  display: none;
}

.signal-card {
  position: absolute;
  min-width: 146px;
  padding: 14px;
  border: 1px solid rgba(15, 24, 32, 0.1);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 46px rgba(43, 55, 64, 0.2);
  color: #4f5d68;
  font-size: 13px;
}

.signal-card-a {
  left: -14px;
  bottom: 72px;
}

.signal-card-b {
  right: 14px;
  top: 72px;
}

.signal-title {
  display: block;
  color: var(--text);
  font-size: 23px;
  font-weight: 780;
  line-height: 1;
}

.signal-line {
  display: block;
  position: relative;
  width: 100%;
  height: 36px;
  margin: 9px 0;
  border-radius: 12px;
}

.signal-line::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: #6f92a0;
  box-shadow:
    18px 5px 0 #c7d0d5,
    36px -2px 0 #7e9eaa,
    54px 4px 0 #b7c2c8,
    72px -1px 0 #89a6b0;
  opacity: 0.9;
}

.proof-strip {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  color: #22303a;
  font-weight: 720;
  text-align: center;
}

.proof-strip span {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(15, 24, 32, 0.045);
}

.flow-section,
.feature-section,
.install-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 128px 0 0;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p,
.install-panel p,
.closing-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.flow-card,
.feature-card,
.install-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 54px rgba(43, 55, 64, 0.08);
}

.flow-card {
  min-height: 360px;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flow-card.tall {
  min-height: 360px;
  background: #ffffff;
}

.flow-card.dark {
  margin-top: 0;
}

.flow-index {
  color: var(--accent-strong);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.12;
}

.flow-card p,
.feature-card p,
.install-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.waveform {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.waveform span {
  width: 12px;
  border-radius: 999px;
  background: #8eb5c2;
  opacity: 0.85;
}

.waveform span:nth-child(even) {
  background: #c7d0d5;
}

.waveform span:nth-child(1) { height: 34px; }
.waveform span:nth-child(2) { height: 70px; }
.waveform span:nth-child(3) { height: 48px; }
.waveform span:nth-child(4) { height: 88px; }
.waveform span:nth-child(5) { height: 54px; }
.waveform span:nth-child(6) { height: 40px; }

.feature-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: start;
}

.feature-rail {
  position: sticky;
  top: 120px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  min-height: 210px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.feature-card.large {
  grid-column: span 2;
  min-height: 260px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  background: #ffffff;
}

.feature-card.accent {
  background: #e4edf0;
}

.input-demo {
  min-width: 360px;
  display: grid;
  gap: 14px;
}

.app-dock {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.app-dock span,
.translate-demo span,
.history-demo span {
  border: 1px solid rgba(15, 24, 32, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #52616c;
  font-size: 13px;
  font-weight: 720;
}

.app-dock span {
  padding: 8px 12px;
}

.input-field {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 24, 32, 0.1);
  border-radius: 22px;
  padding: 0 20px;
  background: #f5f8f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.cursor-dot {
  width: 9px;
  height: 28px;
  border-radius: 999px;
  background: #111820;
}

.typed-line {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #111820;
  font-size: 18px;
  font-weight: 760;
}

.translate-demo {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.translate-demo span {
  padding: 10px 13px;
}

.translate-demo .translate-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #111820;
  color: #f7fbfc;
}

.meeting-demo {
  height: 76px;
  margin-top: 30px;
  display: flex;
  align-items: end;
  gap: 9px;
}

.meeting-demo span {
  flex: 1;
  min-width: 28px;
  border-radius: 14px;
  background: #dce7eb;
}

.meeting-demo span:nth-child(1) { height: 42px; }
.meeting-demo span:nth-child(2) { height: 58px; }
.meeting-demo span:nth-child(3) { height: 36px; background: #8eb5c2; }
.meeting-demo span:nth-child(4) { height: 64px; }
.meeting-demo span:nth-child(5) { height: 48px; }

.history-demo {
  min-height: 96px;
  margin-top: 24px;
  position: relative;
}

.history-demo span {
  position: absolute;
  left: 0;
  right: 0;
  padding: 13px 15px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(43, 55, 64, 0.08);
}

.history-demo span:nth-child(1) {
  top: 0;
  z-index: 3;
}

.history-demo span:nth-child(2) {
  top: 26px;
  z-index: 2;
  transform: translateX(14px);
}

.history-demo span:nth-child(3) {
  top: 52px;
  z-index: 1;
  transform: translateX(28px);
}

.install-panel {
  justify-content: space-between;
  padding: 34px;
  border: 1px solid rgba(15, 24, 32, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 32px 90px rgba(43, 55, 64, 0.12);
}

.install-panel p {
  margin-bottom: 0;
}

.install-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.install-steps article {
  padding: 24px;
}

.step-index {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111820;
  color: #f7fbfc;
  font-size: 14px;
  font-weight: 820;
}

.closing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 110px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.closing-copy h2 {
  max-width: 760px;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  font-size: 14px;
}

.site-footer a {
  color: #25333d;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .ambient-a {
    animation: drift-a 12s var(--ease) infinite alternate;
  }

  .ambient-b {
    animation: drift-b 14s var(--ease) infinite alternate;
  }

  .waveform span {
    animation: wave 1300ms var(--ease) infinite alternate;
    animation-delay: calc(var(--i, 1) * 80ms);
  }

  .cursor-dot {
    animation: cursor-blink 900ms steps(2, end) infinite;
  }

  .typed-line {
    animation: type-line 5200ms var(--ease) infinite;
  }

  .translate-demo span:first-child {
    animation: translate-source 4200ms var(--ease) infinite;
  }

  .translate-demo span:last-child {
    animation: translate-target 4200ms var(--ease) infinite;
  }

  .translate-demo .translate-arrow {
    animation: arrow-pulse 1600ms var(--ease) infinite alternate;
  }

  .meeting-demo span {
    animation: segment-rise 1500ms var(--ease) infinite alternate;
    animation-delay: calc(var(--segment, 1) * 90ms);
  }

  .meeting-demo span:nth-child(1) { --segment: 1; }
  .meeting-demo span:nth-child(2) { --segment: 2; }
  .meeting-demo span:nth-child(3) { --segment: 3; }
  .meeting-demo span:nth-child(4) { --segment: 4; }
  .meeting-demo span:nth-child(5) { --segment: 5; }

  .history-demo span {
    animation: history-float 3600ms var(--ease) infinite alternate;
  }

  .waveform span:nth-child(1) { --i: 1; }
  .waveform span:nth-child(2) { --i: 2; }
  .waveform span:nth-child(3) { --i: 3; }
  .waveform span:nth-child(4) { --i: 4; }
  .waveform span:nth-child(5) { --i: 5; }
  .waveform span:nth-child(6) { --i: 6; }
}

@keyframes drift-a {
  to { transform: translate3d(3rem, 2rem, 0) scale(1.08); }
}

@keyframes drift-b {
  to { transform: translate3d(-2rem, -1rem, 0) scale(1.04); }
}

@keyframes wave {
  to { transform: scaleY(0.62); opacity: 0.62; }
}

@keyframes cursor-blink {
  50% { opacity: 0.18; }
}

@keyframes type-line {
  0%, 12% { max-width: 0; }
  48%, 82% { max-width: 22em; }
  100% { max-width: 0; }
}

@keyframes translate-source {
  0%, 28% { transform: translateY(0); opacity: 1; }
  46%, 100% { transform: translateY(-6px); opacity: 0.52; }
}

@keyframes translate-target {
  0%, 28% { transform: translateY(6px); opacity: 0.52; }
  46%, 100% { transform: translateY(0); opacity: 1; }
}

@keyframes arrow-pulse {
  to { transform: translateX(4px); }
}

@keyframes segment-rise {
  to { transform: scaleY(0.68); opacity: 0.72; }
}

@keyframes history-float {
  to { transform: translateX(8px) translateY(-3px); }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 60px;
    top: 12px;
    margin-top: 12px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 84px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 26px 70px rgba(43, 55, 64, 0.18);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
  }

  .hero {
    width: calc(100% - 28px);
    max-width: 680px;
    min-height: auto;
    padding: 52px 0 44px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(45px, 12.5vw, 64px);
  }

  .hero-stage {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .device-shell {
    grid-column: 1 / -1;
    transform: none;
    border-radius: 26px;
  }

  .device-core {
    border-radius: 19px;
  }

  .signal-card {
    position: static;
    min-width: 0;
    margin-top: 0;
  }

  .signal-line {
    height: 34px;
    margin: 6px 0 8px;
  }

  .proof-strip {
    width: calc(100% - 28px);
    max-width: 680px;
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .flow-section,
  .feature-section,
  .install-section,
  .closing-section,
  .site-footer {
    width: calc(100% - 28px);
    max-width: 680px;
  }

  .flow-section,
  .feature-section,
  .install-section {
    padding-top: 88px;
  }

  .flow-grid,
  .feature-section,
  .install-steps {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .flow-card.tall,
  .flow-card.dark {
    min-height: 230px;
    margin-top: 0;
  }

  .feature-rail {
    position: static;
  }

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

  .feature-card.large {
    grid-column: span 1;
  }

  .feature-card.large {
    display: grid;
    align-items: start;
  }

  .input-demo {
    min-width: 0;
    width: 100%;
  }

  .app-dock {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .typed-line {
    font-size: 16px;
  }

  .install-panel,
  .closing-section {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 42px;
    gap: 22px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero-actions,
  .install-panel,
  .closing-section {
    display: grid;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .device-core img {
    aspect-ratio: 16 / 9;
  }

  .signal-card {
    padding: 12px;
  }

  .signal-title {
    font-size: 20px;
  }

  .signal-line {
    height: 30px;
    margin: 6px 0 9px;
  }

  .signal-line::before {
    left: 8px;
    top: 5px;
    width: 7px;
    height: 19px;
    box-shadow:
      16px 5px 0 #c7d0d5,
      32px -1px 0 #7e9eaa,
      48px 4px 0 #b7c2c8,
      64px 0 0 #89a6b0;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .install-panel {
    padding: 24px;
    border-radius: 26px;
  }

  .site-footer {
    display: grid;
  }
}
