:root {
  --ink: #111318;
  --muted: #5a6272;
  --paper: #f7f8fb;
  --white: #ffffff;
  --line: #dfe4ed;
  --blue: #185cff;
  --blue-dark: #0b2c91;
  --green: #10b981;
  --violet: #6728e8;
  --shadow: 0 22px 70px rgba(17, 19, 24, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  background: var(--ink);
  color: var(--white);
  left: 0;
  padding: 10px 14px;
  position: fixed;
  top: -60px;
  z-index: 50;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  align-items: center;
  background: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.top-action,
.button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.top-action,
.button.primary {
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(24, 92, 255, 0.22);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

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

.hero {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.78fr);
  min-height: 92vh;
  padding: 136px clamp(18px, 5vw, 72px) 58px;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-copy > p:not(.eyebrow),
.sample-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 62ch;
}

.sample-form p {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  margin-top: 10px;
}

.hero-button {
  margin-top: 26px;
}

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

input {
  background: #f9fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.preview-stage {
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 40, 232, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.18), transparent 30%),
    #171b24;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.browser-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.browser-bar span {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.preview-card {
  background: var(--white);
  border-radius: 10px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.preview-top {
  align-items: center;
  display: flex;
  gap: 10px;
}

.preview-logo {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.preview-top strong,
.preview-top small {
  display: block;
}

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

.preview-hero {
  background:
    linear-gradient(90deg, rgba(17, 19, 24, 0.85), rgba(17, 19, 24, 0.25)),
    linear-gradient(135deg, #dbeafe, #dcfce7);
  border-radius: 8px;
  min-height: 160px;
}

.preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.preview-grid span {
  background: #eef2ff;
  border-radius: 8px;
  height: 74px;
}

.preview-card button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  color: #05130e;
  font-weight: 950;
  min-height: 46px;
}

.proof-strip {
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-strip div {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 96px;
  padding: 22px clamp(18px, 3vw, 34px);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip span {
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: clamp(62px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-title {
  margin-bottom: 32px;
  max-width: 760px;
}

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

.steps article,
.sample-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(17, 19, 24, 0.08);
  padding: 24px;
}

.steps span {
  color: var(--blue);
  display: block;
  font-weight: 950;
  margin-bottom: 40px;
}

.steps p {
  color: var(--muted);
}

.sample {
  align-items: start;
  background: #ebf0ff;
  display: grid;
  gap: clamp(30px, 7vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.64fr);
}

.sample-form {
  display: grid;
  gap: 14px;
}

.sample-form label {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 850;
  gap: 7px;
}

.wide {
  width: 100%;
}

.final-cta {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 72px);
}

.final-cta .eyebrow {
  color: #93c5fd;
}

.result {
  align-items: center;
  background: rgba(17, 19, 24, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 60;
}

.result[hidden] {
  display: none;
}

.result-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 30px;
  position: relative;
}

.close {
  background: #eef2ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 36px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}

.progress {
  background: #eef2ff;
  border-radius: 999px;
  height: 10px;
  margin: 24px 0;
  overflow: hidden;
}

.progress span {
  animation: loading 2.8s ease-in-out infinite;
  background: var(--blue);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 42%;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes loading {
  0% {
    transform: translateX(-90%);
  }
  100% {
    transform: translateX(240%);
  }
}

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

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

@media (max-width: 680px) {
  .topbar {
    padding: 12px 16px;
  }

  .top-action {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 118px 16px 48px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .input-row,
  .proof-strip,
  .steps {
    grid-template-columns: 1fr;
  }

  .button,
  .final-cta .button {
    width: 100%;
  }

  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .section,
  .sample {
    padding-left: 16px;
    padding-right: 16px;
  }
}
