:root {
  color-scheme: dark;
  --bg: #071017;
  --panel: rgba(12, 26, 38, 0.78);
  --panel-strong: rgba(16, 35, 50, 0.94);
  --text: #ecf7ff;
  --muted: #a9bfce;
  --line: rgba(145, 190, 220, 0.22);
  --blue: #1677ff;
  --cyan: #22d3ee;
  --green: #30d98a;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 0%, rgba(34, 211, 238, 0.13), transparent 34%),
    linear-gradient(160deg, #08111b 0%, #06131a 44%, #0a1013 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 14, 22, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 18px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  transition: color 160ms ease;
}

.top-nav a:hover {
  color: var(--white);
}

.hero-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  min-height: 92vh;
  padding: 118px clamp(20px, 5vw, 72px) 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 177, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 177, 210, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), transparent 86%);
}

.scanline {
  position: absolute;
  inset: 72px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.86), transparent);
  animation: scan 6s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(420px);
    opacity: 0.9;
  }
}

.hero-content,
.device-preview {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(420px, 74vw);
  height: auto;
  margin-bottom: 28px;
  border-radius: 4px;
  filter: invert(1) brightness(1.65) contrast(0.9);
  mix-blend-mode: screen;
  opacity: 0.94;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 820;
}

.hero-content p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 720;
}

.primary-button {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.24);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.device-preview {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(390px, 88vw);
  min-height: 640px;
  padding: 18px;
  border: 1px solid rgba(185, 224, 248, 0.22);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    rgba(5, 14, 22, 0.86);
  box-shadow: var(--shadow);
}

.phone-bar {
  width: 112px;
  height: 8px;
  margin: 0 auto 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.app-top span {
  font-size: 15px;
  font-weight: 720;
}

.app-top strong {
  color: var(--green);
  font-size: 12px;
}

.object-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.object-strip div,
.record-card,
.metric,
.thought-grid div,
.scene-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
}

.object-strip div {
  min-height: 82px;
  padding: 14px;
  border-radius: 18px;
}

.tiny-label,
.record-card span,
.metric span,
.section-heading span,
.section-kicker,
.scene-grid span,
.thought-grid span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.object-strip b {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.bubble {
  max-width: 86%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.bubble.user {
  align-self: flex-end;
  color: #041018;
  background: var(--green);
  border-bottom-right-radius: 6px;
}

.bubble.ai {
  align-self: flex-start;
  background: rgba(22, 119, 255, 0.18);
  border: 1px solid rgba(22, 119, 255, 0.32);
  border-bottom-left-radius: 6px;
}

.record-card {
  margin-top: 6px;
  padding: 18px;
  border-radius: 20px;
}

.record-card b {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.record-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.value-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 clamp(20px, 5vw, 72px) 48px;
}

.metric {
  min-height: 154px;
  padding: 24px;
  border-radius: 8px;
}

.metric b {
  display: block;
  margin-top: 18px;
  font-size: 22px;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-block,
.download-section {
  padding: 76px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.download-section h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
}

.thought-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.thought-grid div,
.scene-grid article {
  min-height: 226px;
  padding: 24px;
  border-radius: 8px;
}

.thought-grid p,
.scene-grid p,
.download-section p {
  color: var(--muted);
  line-height: 1.72;
}

.thought-grid p {
  margin: 16px 0 0;
}

.scene-grid h3 {
  margin: 18px 0 0;
  font-size: 22px;
}

.scene-grid p {
  margin: 12px 0 0;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 30px clamp(20px, 5vw, 72px) 0;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(48, 217, 138, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.16), rgba(48, 217, 138, 0.1)),
    var(--panel-strong);
}

.download-section p {
  max-width: 640px;
  margin: 14px 0 0;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.download-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 174px;
  min-height: 78px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #041018;
  background: var(--white);
}

.download-button span {
  color: #1677ff;
  font-size: 12px;
  font-weight: 780;
}

.download-button b {
  margin-top: 6px;
  font-size: 18px;
}

.download-button.muted {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.download-button.muted span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--muted);
}

.site-footer span {
  color: var(--text);
  font-weight: 780;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .value-band,
  .thought-grid,
  .scene-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .top-nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand span {
    display: none;
  }

  .hero-section {
    padding-top: 96px;
  }

  .hero-logo {
    width: min(320px, 82vw);
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .download-button {
    width: 100%;
  }

  .phone-shell {
    min-height: 560px;
    border-radius: 28px;
  }

  .value-band,
  .thought-grid,
  .scene-grid,
  .object-strip {
    grid-template-columns: 1fr;
  }

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