:root {
  color-scheme: dark;
  --bg: #10141d;
  --panel: #171d29;
  --panel-strong: #202838;
  --text: #f6f8fb;
  --muted: #aeb8c8;
  --line: #314055;
  --accent: #57d7a4;
  --accent-ink: #062117;
  --blue: #73a7ff;
  --gold: #f4c76b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(115, 167, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 215, 164, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #10141d 0%, #131923 46%, #0d1119 100%);
  background-size: 56px 56px, 56px 56px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(16, 20, 29, 0.92);
  border-bottom: 1px solid rgba(174, 184, 200, 0.16);
  backdrop-filter: blur(16px);
  animation: headerDrop 620ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(87, 215, 164, 0.28), 0 0 28px rgba(87, 215, 164, 0.18);
  animation: logoPulse 4s ease-in-out infinite;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.nav-action:hover {
  border-color: rgba(87, 215, 164, 0.6);
  background: rgba(87, 215, 164, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  animation: riseIn 720ms 80ms ease both;
}

.hero-kicker span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(87, 215, 164, 0.74);
  animation: presencePulse 1.9s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: 6.6rem;
  line-height: 0.92;
  letter-spacing: 0;
  animation: riseIn 780ms 160ms ease both;
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.55;
  animation: riseIn 780ms 260ms ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: riseIn 780ms 360ms ease both;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 32px rgba(87, 215, 164, 0.18);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: #141a25;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  box-shadow: 0 20px 42px rgba(87, 215, 164, 0.26);
}

.secondary-action:hover {
  border-color: rgba(115, 167, 255, 0.7);
  background: rgba(115, 167, 255, 0.08);
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  animation: riseIn 780ms 420ms ease both;
}

.download-options a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease;
}

.download-options a:hover {
  color: var(--text);
}

.download-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  animation: riseIn 780ms 460ms ease both;
}

.download-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.download-note a:hover {
  text-decoration: underline;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: riseIn 780ms 460ms ease both;
}

.signal-row div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(174, 184, 200, 0.16);
  border-radius: 8px;
  background: rgba(23, 29, 41, 0.66);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(87, 215, 164, 0.64);
  animation: presencePulse 2.2s ease-in-out infinite;
}

.signal-dot.blue {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(115, 167, 255, 0.64);
  animation-delay: 260ms;
}

.signal-dot.warm {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(244, 199, 107, 0.58);
  animation-delay: 520ms;
}

.live-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(87, 215, 164, 0.26);
  border-radius: 8px;
  background: rgba(87, 215, 164, 0.08);
  animation: riseIn 780ms 540ms ease both;
}

.live-stats-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.live-stats strong {
  min-width: 64px;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}

.source-callout {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(115, 167, 255, 0.28);
  border-radius: 8px;
  background: rgba(115, 167, 255, 0.08);
  animation: riseIn 780ms 600ms ease both;
}

.source-callout strong {
  color: var(--text);
  font-size: 0.96rem;
}

.source-callout span {
  color: var(--muted);
  line-height: 1.45;
}

.source-callout a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.source-callout a:hover {
  text-decoration: underline;
}

.app-preview {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: min(60vh, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  transform-origin: center;
  animation: previewArrive 900ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both, previewFloat 6s 1.2s ease-in-out infinite;
}

.app-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.1) 44%, transparent 64%);
  transform: translateX(-120%);
  animation: previewSheen 5.5s 1.4s ease-in-out infinite;
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-top: 24px;
  background: #111722;
  border-right: 1px solid var(--line);
}

.preview-sidebar span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--panel-strong);
  animation: sidebarPop 560ms ease both;
}

.preview-sidebar span:first-child {
  background: var(--accent);
}

.preview-sidebar span:nth-child(2) {
  animation-delay: 160ms;
}

.preview-sidebar span:nth-child(3) {
  animation-delay: 280ms;
}

.preview-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  border-bottom: 1px solid var(--line);
}

.preview-top div {
  width: 42%;
  height: 12px;
  border-radius: 999px;
  background: #354057;
}

.preview-top span {
  width: 68px;
  height: 24px;
  border-radius: 8px;
  background: rgba(87, 215, 164, 0.18);
  border: 1px solid rgba(87, 215, 164, 0.34);
}

.preview-message,
.preview-composer {
  height: 58px;
  border-radius: 8px;
  background: var(--panel-strong);
  animation: messageSlide 620ms ease both;
}

.preview-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.preview-message:nth-of-type(2) {
  animation-delay: 220ms;
}

.preview-message:nth-of-type(3) {
  animation-delay: 360ms;
}

.preview-message:nth-of-type(5) {
  animation-delay: 620ms;
}

.preview-message span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
}

.preview-message i {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d5b74, #73809a, #4d5b74);
  background-size: 220% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}

.preview-message.wide {
  width: 88%;
}

.preview-message {
  width: 72%;
}

.preview-message.short {
  width: 54%;
}

.preview-composer {
  display: flex;
  align-items: center;
  padding: 0 16px;
  width: 100%;
  margin-top: auto;
  background: #293244;
  animation-delay: 760ms;
}

.preview-composer span {
  width: 46%;
  height: 12px;
  border-radius: 999px;
  background: #63708a;
  animation: typingBar 3.2s ease-in-out infinite;
}

.preview-voice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 78%;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(87, 215, 164, 0.28);
  border-radius: 8px;
  background: rgba(87, 215, 164, 0.09);
  animation: messageSlide 620ms 500ms ease both;
}

.preview-voice span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(87, 215, 164, 0.28);
}

.preview-voice div {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 32px;
}

.preview-voice i {
  width: 8px;
  min-height: 9px;
  border-radius: 999px;
  background: var(--accent);
  animation: voiceMeter 900ms ease-in-out infinite;
}

.preview-voice i:nth-child(2) {
  animation-delay: 120ms;
}

.preview-voice i:nth-child(3) {
  animation-delay: 240ms;
}

.preview-voice i:nth-child(4) {
  animation-delay: 360ms;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 64px) 64px;
}

.feature-band article {
  min-height: 190px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  animation: riseIn 780ms ease both;
}

.feature-band article:nth-child(1) {
  animation-delay: 520ms;
}

.feature-band article:nth-child(2) {
  animation-delay: 640ms;
}

.feature-band article:nth-child(3) {
  animation-delay: 760ms;
}

.feature-band article:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 215, 164, 0.42);
  background: #1a2230;
}

.feature-band h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.feature-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 840px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  nav {
    width: 100%;
    max-width: calc(100vw - 32px);
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  nav a {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    max-width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.88rem;
    text-align: center;
  }

  .nav-action {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 16px;
    overflow: hidden;
  }

  .hero-copy {
    max-width: 100%;
    width: min(100%, calc(100vw - 32px));
    min-width: 0;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-copy p {
    max-width: 100%;
    font-size: 1.12rem;
    overflow-wrap: normal;
  }

  .app-preview {
    width: 100%;
    max-width: calc(100vw - 32px);
    min-width: 0;
    min-height: 420px;
  }

  .feature-band {
    grid-template-columns: 1fr;
    padding: 0 16px 42px;
  }

  .hero-kicker,
  .site-header,
  h1,
  .hero-copy p,
  .hero-actions,
  .download-options,
  .signal-row,
  .live-stats,
  .source-callout,
  .app-preview,
  .feature-band article {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 460px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-actions a,
  .download-options a,
  .live-stats,
  .source-callout {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes previewArrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes previewFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes previewSheen {
  0%,
  62% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(87, 215, 164, 0.28), 0 0 28px rgba(87, 215, 164, 0.18);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(87, 215, 164, 0.5), 0 0 36px rgba(87, 215, 164, 0.3);
  }
}

@keyframes presencePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@keyframes sidebarPop {
  from {
    opacity: 0;
    transform: scale(0.78);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@keyframes typingBar {
  0%,
  100% {
    width: 34%;
  }
  50% {
    width: 58%;
  }
}

@keyframes voiceMeter {
  0%,
  100% {
    height: 10px;
  }
  50% {
    height: 30px;
  }
}
