:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --surface: rgba(28, 35, 48, 0.84);
  --border: rgba(148, 163, 184, 0.16);
  --text: #f0f6ff;
  --muted: #94a3b8;
  --violet: #7c6af7;
  --mint: #34d399;
  --amber: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 106, 247, 0.22), transparent 24%),
    radial-gradient(circle at 85% 22%, rgba(52, 211, 153, 0.18), transparent 24%),
    linear-gradient(180deg, #0d1117 0%, #101722 50%, #0b1016 100%);
}

body.motion-ready .page-shell {
  animation: pageFadeIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  overflow: hidden;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
}

.glow-violet {
  width: 28rem;
  height: 28rem;
  top: -10rem;
  right: -8rem;
  background: rgba(124, 106, 247, 0.22);
}

.glow-mint {
  width: 26rem;
  height: 26rem;
  bottom: 8rem;
  left: -10rem;
  background: rgba(52, 211, 153, 0.12);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  color: var(--text) !important;
  background: rgba(124, 106, 247, 0.16);
  border: 1px solid rgba(124, 106, 247, 0.24);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 54px;
  align-items: center;
  padding: 28px 0 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ccd8eb;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.feature-callout h2,
.cta-panel h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin-top: 22px;
  max-width: 10ch;
  font-size: clamp(4rem, 9vw, 6.6rem);
  line-height: 0.9;
  color: var(--text);
}

.hero h1 span {
  display: block;
  color: var(--mint);
  font-style: italic;
}

.split-chars .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0s) + var(--char-delay, 0s));
  will-change: opacity, transform, filter;
}

.split-word {
  display: inline-block;
  white-space: nowrap;
}

.split-chars.is-visible .char {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.hero-text {
  margin-top: 22px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.button-primary {
  color: #071018;
  background: linear-gradient(135deg, var(--mint), #8bf0cb);
  box-shadow: 0 18px 48px rgba(52, 211, 153, 0.26);
}

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

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  grid-column: 1;
}

.reveal {
  opacity: 0;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.rise,
.fade-up {
  transform: translateY(26px);
  filter: blur(10px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-signals div,
.mini-panel,
.flow-card,
.feature-list article {
  background: rgba(22, 27, 34, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.hero-signals div {
  padding: 18px;
  border-radius: 20px;
}

.hero-signals strong,
.mini-panel strong,
.flow-card h3,
.feature-list h3,
.stack-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-signals span,
.mini-panel p,
.stack-card p,
.stack-card span,
.flow-card p,
.feature-list p,
.summary-band p,
.feature-callout p,
.cta-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  width: min(100%, 500px);
}

.device::before {
  content: "";
  position: absolute;
  inset: 5% -6% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(124, 106, 247, 0.24);
  filter: blur(36px);
}

.device-frame {
  position: relative;
  padding: 20px;
  border-radius: 38px;
  border: 1px solid rgba(124, 106, 247, 0.18);
  background: linear-gradient(180deg, rgba(28, 35, 48, 0.94), rgba(13, 17, 23, 0.94));
  box-shadow: var(--shadow);
  animation: deviceFloat 7.5s ease-in-out infinite;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.live-pill,
.mode-pill,
.photo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.live-pill {
  color: #071018;
  background: var(--mint);
}

.mode-pill {
  color: #d7cffc;
  background: rgba(124, 106, 247, 0.16);
  border: 1px solid rgba(124, 106, 247, 0.28);
}

.profile-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 30px;
  background: #1c2330;
  isolation: isolate;
}

.profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(0.92) brightness(0.92);
  will-change: opacity, transform, filter;
}

.profile-photo.is-active {
  opacity: 1;
  transform: scale(1.01);
  filter: saturate(1) brightness(1);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.04) 0%, rgba(8, 12, 18, 0.18) 42%, rgba(5, 8, 12, 0.9) 100%);
}

.photo-sheen {
  position: absolute;
  inset: -10% auto auto -30%;
  width: 55%;
  height: 130%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: rotate(12deg);
  animation: sweep 7s linear infinite;
  z-index: 1;
}

@keyframes sweep {
  0% {
    left: -42%;
  }

  100% {
    left: 115%;
  }
}

.photo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.profile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.profile-overlay.is-transitioning {
  opacity: 0;
  transform: translateY(12px);
}

.profile-overlay h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.profile-overlay p {
  color: #dae5f6;
  line-height: 1.6;
  min-height: 3.2em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip-row span {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #d6e0ee;
}

.stack-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(12, 18, 26, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

.stack-card.is-transitioning {
  opacity: 0;
  transform: translate(8px, 10px);
  filter: blur(2px);
}

.stack-card-top {
  top: 92px;
  right: -18px;
  width: 220px;
}

.stack-card p {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stack-card strong {
  min-height: 2.4em;
}

.profile-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.profile-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, background 180ms ease;
}

.profile-dots span.is-active {
  transform: scale(1.3);
  background: var(--mint);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini-panel {
  padding: 16px;
  border-radius: 18px;
  min-height: 146px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.mini-panel strong {
  min-height: 3.3em;
}

.mini-detail {
  color: #7f8faa;
  font-size: 0.92rem;
  line-height: 1.55;
}

.mini-panel-accent {
  border-color: rgba(52, 211, 153, 0.26);
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 72px;
  padding: 24px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 106, 247, 0.14), rgba(52, 211, 153, 0.08));
  border: 1px solid rgba(124, 106, 247, 0.16);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.section-head {
  max-width: 40rem;
}

.section-head h2,
.feature-callout h2,
.cta-panel h2 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 0.98;
  text-wrap: balance;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.flow-card {
  padding: 24px;
  border-radius: 24px;
}

.flow-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  margin-top: 84px;
}

.feature-callout {
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(124, 106, 247, 0.14), rgba(28, 35, 48, 0.72));
  border: 1px solid rgba(124, 106, 247, 0.16);
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list article {
  padding: 24px;
  border-radius: 24px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 84px;
  padding: 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at left top, rgba(52, 211, 153, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(17, 24, 33, 0.96), rgba(28, 35, 48, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .hero,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .hero-signals,
  .flow-grid,
  .panel-grid,
  .summary-band {
    grid-template-columns: 1fr;
  }

  .device {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 18px;
  }

  .topbar,
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    gap: 30px;
    padding-top: 8px;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.6rem);
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-signals {
    order: 3;
    margin-top: 4px;
  }

  .device-frame {
    padding: 14px;
    border-radius: 28px;
    animation-duration: 8.5s;
  }

  .profile-card {
    min-height: 380px;
  }

  .stack-card-top {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .profile-dots {
    margin-top: 14px;
  }

  .panel-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .mini-panel {
    min-height: 0;
    padding: 18px 16px;
    gap: 8px;
  }

  .mini-panel strong {
    min-height: 0;
  }

  .mini-detail {
    font-size: 0.88rem;
  }

  .button {
    width: 100%;
  }
}

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

  .reveal,
  .split-chars .char {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
