:root {
  color-scheme: dark;
  --bg-0: #05070d;
  --bg-1: #0a0e1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --text-soft: #b6c0cf;
  --text-mute: #7a8597;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --grad-primary: linear-gradient(135deg, #5eead4 0%, #818cf8 50%, #c084fc 100%);
  --grad-soft: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(129, 140, 248, 0.18));
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  font-family:
    "Inter", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-0);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 40%, rgba(94, 234, 212, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(244, 114, 182, 0.1), transparent 60%),
    var(--bg-0);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 80%);
}

a {
  color: inherit;
}

img {
  display: block;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-bottom: 22px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 980px;
  padding: 10px 14px 10px 18px;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.nav-brand span {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 800;
  color: #0b1020;
  background: var(--grad-primary);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ============ SHELL ============ */
.page-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(16px, 4vw, 40px) 64px;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(18px, 5vw, 56px) 0 clamp(36px, 6vw, 68px);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.hero-badge::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--grad-primary);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.18);
}

.hero-badge em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}

h1 {
  font-size: clamp(44px, 7.6vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-title-grad {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
  margin: 0 0 28px;
  max-width: 560px;
}

.release-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.release-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.release-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.release-row span:nth-child(2)::before {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

.release-row span:nth-child(3)::before {
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
}

.download-panel {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 560px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.counter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0.35;
  pointer-events: none;
}

.counter-value {
  position: relative;
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.counter-label {
  position: relative;
  display: block;
  color: var(--text-mute);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 22px;
  background: var(--grad-primary);
  color: #0b1020;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 14px 40px -8px rgba(94, 234, 212, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.download-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 48px -8px rgba(94, 234, 212, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.download-button:hover::after {
  transform: translateX(100%);
}

.download-button:active {
  transform: translateY(0) scale(0.99);
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.18);
  backdrop-filter: blur(4px);
}

.download-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.docs-button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.docs-button::after {
  content: "→";
  font-size: 16px;
  transition: transform 160ms ease;
}

.docs-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.docs-button:hover::after {
  transform: translateX(3px);
}

.note {
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============ PHONE MOCKUP ============ */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -10%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(129, 140, 248, 0.25), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.phone {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 19;
  background: linear-gradient(180deg, #1a2030 0%, #0d1220 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.5),
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
  transition: transform 600ms ease;
}

.phone:hover {
  transform: rotate(0deg) translateY(-4px);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0e1a 0%, #0e1426 100%);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 56px 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--grad-primary);
}

.phone-bar-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phone-bar-text > span:first-child {
  width: 80px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.phone-bar-text > span:last-child {
  width: 50px;
  height: 6px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.7;
}

.phone-body {
  flex: 1;
  padding: 16px 14px 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.chat-line {
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 11px;
  max-width: 75%;
  position: relative;
}

.chat-line.incoming {
  background: rgba(255, 255, 255, 0.06);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-line.incoming.short {
  width: 50%;
}

.chat-line.outgoing {
  background: var(--grad-primary);
  color: #0b1020;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 700;
}

.chat-bar {
  display: block;
  height: 6px;
  background: currentColor;
  border-radius: 3px;
  opacity: 0.5;
}

.chat-bar + .chat-bar {
  margin-top: 5px;
  width: 70%;
}

.chat-line.outgoing .chat-bar {
  opacity: 0.8;
}

.media-card {
  align-self: flex-start;
  width: 75%;
  height: 110px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.3), rgba(129, 140, 248, 0.3)),
    #1a2030;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 4px 0;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 30%);
}

.play {
  position: relative;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  margin-left: 4px;
}

.composer {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.composer > div {
  flex: 1;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.composer > span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--grad-primary);
  box-shadow: 0 4px 12px rgba(94, 234, 212, 0.4);
}

/* ============ FEATURES ============ */
.features {
  padding: clamp(28px, 6vw, 72px) 0 0;
}

.features-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(28px, 5vw, 48px);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.features-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 800;
}

.features-header p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  margin: 0;
}

.details {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.details article {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
  overflow: hidden;
}

.details article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}

.details article:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.details article:hover::before {
  opacity: 1;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.details h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.details p {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  margin: 0;
}

/* ============ JOIN PAGE ============ */
.join-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.join-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 460px;
  padding: 40px 28px 32px;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.join-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(94, 234, 212, 0.12) 60deg,
    rgba(129, 140, 248, 0.12) 120deg,
    rgba(244, 114, 182, 0.12) 180deg,
    transparent 240deg
  );
  animation: rotate 18s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.join-card > * {
  position: relative;
}

.join-icon {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 48px -10px rgba(94, 234, 212, 0.4);
  margin-bottom: 22px;
}

.join-card .eyebrow {
  margin-bottom: 10px;
}

.join-card h1 {
  font-size: clamp(40px, 12vw, 56px);
  margin: 0 0 18px;
}

.join-lead {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 26px;
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.join-open-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.join-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.join-secondary-button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.join-note {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 360px;
}

/* ============ DOCS PAGE ============ */
.docs-shell {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(16px, 4vw, 40px) 64px;
}

.docs-hero {
  padding: 24px 0 36px;
}

.docs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.docs-back::before {
  content: "←";
  transition: transform 160ms ease;
}

.docs-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.docs-back:hover::before {
  transform: translateX(-3px);
}

.docs-hero .brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.docs-hero .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px -10px rgba(94, 234, 212, 0.3);
}

.docs-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 0;
}

.docs-lead {
  max-width: 720px;
  font-size: 16px;
  margin: 0;
}

.docs-index {
  position: sticky;
  top: 80px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  margin: 0 0 22px;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.docs-index a {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.docs-index a:hover {
  background: var(--grad-soft);
  color: var(--text);
  border-color: rgba(94, 234, 212, 0.3);
}

.docs-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-card {
  position: relative;
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: 96px;
  transition: background 240ms ease, border-color 240ms ease;
}

.docs-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.docs-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.docs-card h2,
.docs-cta h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.docs-card p,
.docs-card li,
.docs-cta p {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.docs-card p {
  margin: 0 0 12px;
}

.docs-card p:last-child {
  margin-bottom: 0;
}

.docs-card ul,
.docs-card ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.docs-card li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px dashed var(--border);
}

.docs-card li:last-child {
  border-bottom: 0;
}

.docs-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.docs-card ol {
  counter-reset: docs-counter;
}

.docs-card ol li {
  counter-increment: docs-counter;
}

.docs-card ol li::before {
  content: counter(docs-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--grad-soft);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.12), rgba(129, 140, 248, 0.12), rgba(244, 114, 182, 0.08)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.docs-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.2), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.docs-cta > * {
  position: relative;
}

.docs-cta p {
  margin: 0;
  font-size: 16px;
}

.docs-cta .download-button {
  margin-top: 6px;
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding: 26px clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
}

.footer strong {
  color: var(--text-soft);
  font-weight: 700;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav {
    top: 10px;
    margin-bottom: 14px;
  }

  .nav-inner {
    padding: 8px 10px 8px 14px;
  }

  .nav-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 14px 0 36px;
  }

  .hero-copy {
    max-width: none;
  }

  .download-panel {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .docs-button {
    grid-column: auto;
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .docs-index {
    top: 70px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .docs-index::-webkit-scrollbar {
    display: none;
  }

  .docs-index a {
    flex: 0 0 auto;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .docs-shell {
    padding: 12px 14px 40px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .lead {
    font-size: 15px;
  }

  .release-row {
    gap: 6px;
  }

  .release-row span {
    font-size: 11px;
    padding: 6px 10px;
  }

  .download-button {
    font-size: 15px;
    min-height: 58px;
  }

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

  .details article {
    padding: 18px;
  }

  .docs-hero .brand-row {
    gap: 14px;
  }

  .docs-hero .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .docs-card {
    padding: 20px;
  }

  .docs-cta {
    padding: 24px;
  }

  .join-card {
    padding: 32px 22px 26px;
  }

  .join-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }
}

@media (max-width: 460px) {
  .phone {
    transform: rotate(0deg) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
