:root {
  --bg-top: #0c1230;
  --bg-bottom: #05070f;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9ebf8;
  --muted: #9aa3c7;
  --accent: #a9a4ff;
  --accent-strong: #8f88ff;
  --energy: #6ee787;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%) fixed;
  background-color: var(--bg-bottom);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint stars */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 62%, #cfd4ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 34%, #cfd4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 14%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 47%, #cfd4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 78%, #cfd4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 49% 83%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 88%, #cfd4ff 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  color: #0b0e22;
  background: linear-gradient(180deg, #c3bfff 0%, var(--accent-strong) 100%);
  padding: 16px 36px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(143, 136, 255, 0.3);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 48px rgba(143, 136, 255, 0.42);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.btn--small {
  font-size: 14px;
  padding: 9px 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--small:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.09);
}

/* Hero */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px var(--gutter) 72px;
  text-align: center;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Phone */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 48px 0 44px;
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(143, 136, 255, 0.32) 0%,
    rgba(90, 110, 255, 0.12) 40%,
    transparent 68%
  );
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 300 / 620;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #3a3f5c 0%, #171a2c 45%, #0c0e1a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.6);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 14px;
  border-radius: 39px;
  background: linear-gradient(180deg, #0d1126 0%, #070912 100%);
  overflow: hidden;
  text-align: left;
}

.island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.status__icons {
  display: flex;
  gap: 4px;
}

.status__icons i {
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.85;
}

.app-logo {
  margin-top: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.ring {
  position: relative;
  width: 62%;
  margin: 12px auto 14px;
  aspect-ratio: 1;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 7;
}

.ring__track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring__value {
  stroke: var(--energy);
  stroke-linecap: round;
  /* circumference = 2π·54 ≈ 339.3; 82% filled */
  stroke-dasharray: 339.3;
  stroke-dashoffset: 61;
  filter: drop-shadow(0 0 6px rgba(110, 231, 135, 0.55));
  animation: fill-ring 1.6s ease-out both;
}

@keyframes fill-ring {
  from {
    stroke-dashoffset: 339.3;
  }
}

.ring__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring__label {
  font-size: 11px;
  color: var(--muted);
}

.ring__number {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.05;
}

.ring__caption {
  max-width: 90px;
  font-size: 9.5px;
  line-height: 1.25;
  color: var(--muted);
}

.bubble {
  padding: 11px 13px;
  border-radius: 16px 16px 16px 5px;
  background: rgba(169, 164, 255, 0.13);
  border: 1px solid rgba(169, 164, 255, 0.18);
  font-size: 11.5px;
  line-height: 1.45;
}

.bubble--user {
  align-self: flex-end;
  margin: 10px 0 8px;
  border-radius: 16px 16px 5px 16px;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.card__title {
  font-size: 9.5px;
  color: var(--muted);
}

.card__value {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.bar {
  display: block;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--energy);
}

.input {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

.feature {
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.footer {
  padding: 0 var(--gutter) 36px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.7;
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero {
    padding-top: 20px;
  }
}

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

  .btn {
    transition: none;
  }
}
