:root {
  --bg: #0a0a0f;
  --panel: rgba(18, 18, 26, 0.78);
  --panel-strong: rgba(10, 10, 15, 0.92);
  --border: rgba(255, 255, 255, 0.14);
  --text: #e0e0e8;
  --muted: rgba(224, 224, 232, 0.74);
  --soft: rgba(224, 224, 232, 0.56);
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --warm: #f59e0b;
  --danger: #ffb4ab;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  transform: scale(1.04);
  animation: hero-pan 20s ease-in-out infinite;
  z-index: -3;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.78) 48%, rgba(10, 10, 15, 0.32) 100%);
  z-index: -2;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
  animation: grid-drift 22s linear infinite;
  z-index: -1;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  width: 156px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 46px 0 70px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.26em;
}

h1 {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--warm);
}

.note {
  max-width: 650px;
  margin-top: 24px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
}

.capture {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.capture h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.capture p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 22px;
}

.form-row input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.form-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 74%);
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 760;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-strong);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.helper {
  margin-top: 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  font-size: 14px;
}

.success {
  display: none;
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.success.visible {
  display: block;
}

.key-box,
.snippet {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--accent-strong);
  padding: 14px;
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.secondary-button {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
}

.success-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.success-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0 14px;
  color: #fff;
}

.success-links a:first-child {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 760;
}

.section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg);
}

.section .wrap {
  padding: 70px 0;
}

.section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
}

.card {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  line-height: 1.65;
}

.steps strong {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 34px 20px;
  color: var(--soft);
  text-align: center;
  font-size: 13px;
}

@keyframes grid-drift {
  to {
    transform: translate3d(36px, 24px, 0);
  }
}

@keyframes hero-pan {
  0%, 100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(0, -1.5%, 0);
  }
}

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

  .hero-grid {
    gap: 30px;
    padding-top: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  h1 {
    font-size: 40px;
  }
}
