* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #111318;
  --surface: #1a1d26;
  --surface-elevated: #222632;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --text-muted: #8b90a0;
  --text-subtle: #5c6270;
  --accent: #4f6df5;
  --accent-soft: rgba(79, 109, 245, 0.14);
  --record: #e8453c;
  --success: #3ecf8e;
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 109, 245, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 69, 60, 0.1), transparent),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
}

.nav,
.hero,
.features,
.steps,
.install,
.footer {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
}

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

.brand-logo {
  border-radius: 8px;
}

.nav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--surface-elevated);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 72px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9eb0ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.lead {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.1s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #ef5a52 0%, var(--record) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(232, 69, 60, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
}

.hero-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-header img {
  border-radius: 8px;
}

.mock-header strong {
  display: block;
  font-size: 14px;
}

.mock-header span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.mock-url,
.mock-status,
.mock-section {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.mock-url {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.mock-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-btn,
.mock-select {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
}

.mock-btn-record {
  margin-top: 8px;
  background: linear-gradient(180deg, #ef5a52 0%, var(--record) 100%);
  border: none;
  color: #fff;
}

.mock-preview-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.mock-preview-header img {
  border-radius: 6px;
}

.mock-preview-header strong {
  display: block;
  font-size: 13px;
}

.mock-preview-header span {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.mock-preview-actions {
  display: flex;
  gap: 6px;
}

.mock-chip {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-chip-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.mock-annotate-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-tool {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-tool.active {
  color: var(--text);
  border-color: rgba(79, 109, 245, 0.45);
  background: rgba(79, 109, 245, 0.12);
}

.mock-preview-canvas {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.mock-page {
  position: relative;
  min-height: 180px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.mock-page-line {
  height: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #dbe3f0;
}

.mock-page-line.wide {
  width: 72%;
}

.mock-page-line.short {
  width: 42%;
}

.mock-highlight {
  position: absolute;
  top: 42px;
  left: 18px;
  width: 120px;
  height: 22px;
  border-radius: 4px;
  background: rgba(250, 204, 21, 0.45);
}

.mock-arrow {
  position: absolute;
  top: 88px;
  left: 150px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: #22c55e;
  transform: rotate(32deg);
}

.mock-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #22c55e;
  transform: translateY(-50%);
}

.mock-label-tag {
  position: absolute;
  top: 118px;
  left: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(17, 19, 24, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.features,
.steps,
.install {
  padding-bottom: 72px;
}

.features h2,
.steps h2,
.install h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

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

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

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #9eb0ff;
  font-weight: 700;
  font-size: 14px;
}

.step-list h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-list code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.85em;
}

.install-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(79, 109, 245, 0.08), rgba(26, 29, 38, 0.9));
  border: 1px solid var(--border);
}

.install-logo {
  margin: 0 auto 18px;
  border-radius: 14px;
}

.install-card p {
  max-width: 46ch;
  margin: 12px auto 24px;
  color: var(--text-muted);
}

.install-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  font-size: 0.85rem;
  color: var(--text-subtle) !important;
}

.footer {
  padding: 28px 0 40px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.footer p + p {
  margin-top: 6px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--text);
}

.legal {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
  padding: 8px 0 72px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.legal-meta {
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.legal section {
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

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

.legal ul {
  margin-top: 12px;
  padding-left: 1.25rem;
}

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

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88em;
}

.legal a {
  color: #9eb0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--text);
}

.legal-back {
  margin-top: 40px;
}

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

  .hero h1 {
    max-width: none;
  }

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

  .mock-preview-header {
    grid-template-columns: auto 1fr;
  }

  .mock-preview-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
  }
}