:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --muted: #aeb6cc;
  --muted-strong: #cad0e0;
  --line: rgba(255, 255, 255, 0.12);
  --night: #080c18;
  --navy: #0b1020;
  --surface: #11182b;
  --surface-light: #182138;
  --pink: #f05a91;
  --orange: #ff8a54;
  --violet: #8b67f5;
  --cyan: #56d4dd;
  --gradient: linear-gradient(120deg, var(--orange), var(--pink) 48%, var(--violet));
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 82% 8%, rgba(139, 103, 245, 0.12), transparent 28rem),
    var(--night);
}

a {
  color: inherit;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 24, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark,
.preview-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--gradient);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(240, 90, 145, 0.24);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.82rem;
}

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

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--surface-light);
  color: var(--ink);
}

main {
  flex: 1;
}

.hero {
  width: min(100%, 1440px);
  min-height: 690px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  position: relative;
}

.hero::before {
  content: "";
  width: 420px;
  height: 420px;
  position: absolute;
  left: -240px;
  top: 80px;
  border: 1px solid rgba(86, 212, 221, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(86, 212, 221, 0.05);
  pointer-events: none;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--pink);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p,
li,
code {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.3vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 62ch;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.6vw, 1.23rem);
  line-height: 1.72;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(240, 90, 145, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface-light);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.bot-preview {
  width: 100%;
  max-width: 550px;
  justify-self: end;
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(27, 36, 59, 0.96), rgba(14, 21, 39, 0.96));
  box-shadow: var(--shadow);
}

.bot-preview::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 138, 84, 0.3), transparent 32%, transparent 70%, rgba(86, 212, 221, 0.22));
  filter: blur(20px);
}

.preview-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0.75rem;
}

.preview-topline strong {
  display: inline-block;
  margin-right: 6px;
}

.preview-topline small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.bot-label {
  padding: 2px 5px;
  border-radius: 4px;
  background: #5865f2;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 850;
}

.preview-embed {
  padding: 20px;
  border-left: 4px solid var(--pink);
  border-radius: 5px 12px 12px 5px;
  background: #0d1425;
}

.preview-embed p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.93rem;
  line-height: 1.55;
}

.preview-embed .preview-title {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
}

.preview-image {
  height: 210px;
  margin: 16px 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.21), transparent 3px),
    linear-gradient(135deg, #ff9b50, #ef4e83 48%, #6b55d9);
}

.preview-image::before {
  content: "";
  width: 76px;
  height: 76px;
  border: 9px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
}

.preview-image::after {
  content: "";
  width: 25px;
  height: 25px;
  position: absolute;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.camera-dot {
  width: 8px;
  height: 8px;
  position: absolute;
  transform: translate(23px, -23px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -145px;
}

.orbit-two {
  width: 190px;
  height: 190px;
  right: -95px;
  top: -85px;
}

.preview-meta {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 14px;
  margin-bottom: 16px;
}

.preview-meta span {
  color: var(--muted-strong);
  font-size: 0.84rem;
}

.preview-meta small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.preview-footer {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.feature-grid article {
  min-height: 245px;
  padding: clamp(30px, 4vw, 52px);
  background: var(--navy);
}

.feature-number {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-grid h2,
.detail-band h2,
.command-row h2,
.permissions-card h2,
.legal-shell h2 {
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.feature-grid h2 {
  font-size: 1.35rem;
}

.feature-grid p,
.detail-points p,
.command-row p,
.permissions-card li,
.page-heading p,
.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid p {
  margin: 0;
}

.detail-band {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(50px, 10vw, 150px);
}

.detail-band h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 4rem);
}

.detail-points {
  display: grid;
  align-content: start;
}

.detail-points p {
  margin: 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.3fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-points strong {
  color: var(--ink);
}

.page-shell,
.legal-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 20px;
}

.page-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.page-heading h1,
.legal-shell h1 {
  margin-bottom: 22px;
}

.page-heading h1 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.page-heading p {
  max-width: 70ch;
  margin: 0;
  font-size: 1.03rem;
}

.page-heading strong {
  color: var(--ink);
}

.setup-strip {
  margin-bottom: 22px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.setup-strip p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 750;
}

.setup-strip p span {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-light);
  color: var(--pink);
  font-size: 0.75rem;
}

.setup-arrow {
  color: var(--muted);
}

.command-list {
  display: grid;
  gap: 14px;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(225px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24, 33, 56, 0.88), rgba(13, 20, 37, 0.88));
}

.command-row code,
.legal-shell code {
  color: #ffadc9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 800;
}

.command-row code {
  padding: 12px 14px;
  border: 1px solid rgba(240, 90, 145, 0.22);
  border-radius: 10px;
  background: rgba(240, 90, 145, 0.08);
  font-size: 0.9rem;
}

.command-row h2 {
  font-size: 1.3rem;
}

.command-row p {
  margin: 0;
}

.permissions-card {
  margin-top: 24px;
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 40px;
  border: 1px solid rgba(86, 212, 221, 0.2);
  border-radius: 16px;
  background: rgba(86, 212, 221, 0.055);
}

.permissions-card h2 {
  font-size: 1.65rem;
}

.permissions-card ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 36px;
}

.permissions-card li {
  padding: 3px 0;
  break-inside: avoid;
}

.legal-shell {
  max-width: 840px;
}

.legal-shell h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.legal-shell h2 {
  margin-top: 42px;
  font-size: 1.25rem;
  color: var(--ink);
}

.legal-shell p {
  margin: 0;
}

.legal-shell p + p {
  margin-top: 18px;
}

.legal-shell ul {
  margin: 14px 0 0;
  padding-left: 1.25rem;
}

.legal-shell li + li {
  margin-top: 8px;
}

.legal-date {
  margin-bottom: 30px !important;
  color: var(--muted-strong) !important;
}

.site-footer {
  min-height: 82px;
  padding: 22px clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #060914;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .bot-preview {
    justify-self: start;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 22px;
  }

  .detail-band,
  .permissions-card {
    grid-template-columns: 1fr;
  }

  .detail-band h2 {
    max-width: 18ch;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .top-nav a {
    min-height: 36px;
    padding: 0 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  h1 {
    letter-spacing: -0.052em;
  }

  .preview-image {
    height: 180px;
  }

  .detail-points p,
  .command-row {
    grid-template-columns: 1fr;
  }

  .setup-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .setup-arrow {
    display: none;
  }

  .permissions-card ul {
    columns: 1;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
