:root {
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --surface-card: #ffffff;
  --surface-strong: #f0f0f3;
  --surface-dark: #171717;
  --surface-dark-elevated: #1a1a1a;
  --ink: #171717;
  --body: #60646c;
  --muted: #999999;
  --hairline: #f0f0f3;
  --hairline-strong: #dcdee0;
  --link: #0d74ce;
  --sky-light: #cfe7ff;
  --sky-mid: #a8c8e8;
  --success: #16a34a;
  --warning: #ab6400;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(240, 240, 243, 0.82);
  background: rgba(255, 255, 255, 0.88);
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%),
    linear-gradient(0deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.sign-in {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover,
.sign-in:hover,
.text-link:hover {
  color: var(--link);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  background: #000000;
  color: #ffffff;
}

.button-primary:hover {
  background: #1a1a1a;
}

.button-secondary {
  border: 1px solid var(--hairline-strong);
  background: var(--surface-card);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #b7babd;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: var(--surface-card);
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
}

.hero-band {
  position: relative;
  overflow: hidden;
  padding: 86px 24px 78px;
}

.hero-band::before {
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  background:
    radial-gradient(circle at 50% 5%, rgba(207, 231, 255, 0.95), rgba(168, 200, 232, 0.48) 37%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(207, 231, 255, 0.42), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge {
  margin: 0 0 18px;
  padding: 4px 10px;
}

.eyebrow {
  margin: 0 0 14px;
  padding: 4px 9px;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 6.4vw, 64px);
  font-weight: 600;
  letter-spacing: -1.92px;
  line-height: 1.05;
}

.cli-rotator {
  position: relative;
  display: inline-grid;
  box-sizing: border-box;
  width: 11.6ch;
  height: 1.15em;
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: -0.12em;
}

.cli-rotator span {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  line-height: 1;
  opacity: 0;
  transform: translateY(-72%);
  animation: cli-fade-cycle 7.5s infinite;
}

.cli-rotator span:nth-child(2) {
  animation-delay: 2.5s;
}

.cli-rotator span:nth-child(3) {
  animation-delay: 5s;
}

@keyframes cli-fade-cycle {
  0% {
    opacity: 0;
    transform: translateY(-72%);
  }

  8%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  36%,
  100% {
    opacity: 0;
    transform: translateY(72%);
  }
}

.hero-subhead {
  max-width: 704px;
  margin: 0 auto 28px;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.device-stage {
  position: relative;
  z-index: 1;
  max-width: 1130px;
  min-height: 540px;
  margin: 0 auto;
}

.macbook {
  overflow: hidden;
  width: min(100%, 960px);
  margin: 0 auto;
  border: 1px solid rgba(220, 222, 224, 0.95);
  border-radius: 18px;
  background: var(--surface-card);
  box-shadow:
    0 24px 80px rgba(23, 23, 23, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.browser-bar {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--hairline);
  background: #fbfbfc;
  padding: 0 16px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9dadd;
}

.address {
  margin-left: 12px;
  flex: 1;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  text-align: left;
}

.app-shell {
  display: grid;
  min-height: 495px;
  grid-template-columns: 238px 1fr;
  background: #0a0a0a;
  color: #ffffff;
}

.mock-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #262626;
  background: #0d0d0d;
  padding: 18px 14px;
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: 14px;
}

.mock-logo span {
  width: 18px;
  height: 18px;
  border: 1px solid #ffffff;
  border-radius: 5px;
}

.mock-sidebar p {
  margin-bottom: 10px;
  color: #737373;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}

.repo,
.workspace-row {
  border-radius: 8px;
  color: #d4d4d4;
}

.repo {
  padding: 10px 10px 9px;
}

.repo.active {
  background: #171717;
}

.repo strong,
.repo span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repo strong {
  font-size: 13px;
  font-weight: 600;
}

.repo span {
  color: #737373;
  font-size: 11px;
}

.workspace-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 11px;
  padding: 7px 9px;
  color: #a3a3a3;
  font-size: 12px;
}

.workspace-row.live {
  color: #ffffff;
}

.workspace-row span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
}

.workspace-row.live span {
  background: #34d399;
}

.mock-add {
  min-height: 36px;
  margin-top: auto;
  border: 1px solid #404040;
  border-radius: 8px;
  background: #171717;
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 600;
}

.mock-main {
  min-width: 0;
  background: #0a0a0a;
  padding: 24px;
}

.mock-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mock-toolbar p {
  margin-bottom: 4px;
  color: #737373;
  font-size: 12px;
}

.mock-toolbar h2 {
  margin: 0;
  color: #ffffff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.resource-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.resource-strip span {
  border: 1px solid #262626;
  border-radius: 9999px;
  background: #171717;
  color: #a3a3a3;
  font-size: 11px;
  padding: 5px 8px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.setup-card,
.terminal-card,
.code-block {
  border: 1px solid #262626;
  border-radius: 12px;
  background: #171717;
}

.setup-card,
.terminal-card {
  min-width: 0;
  min-height: 332px;
  padding: 18px;
}

.card-heading,
.code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

pre {
  overflow: auto;
  margin: 0;
}

code {
  color: #e5e7eb;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.phone {
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 212px;
  border: 8px solid #111111;
  border-radius: 34px;
  background: #111111;
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.22);
}

.phone-screen {
  min-height: 396px;
  border-radius: 25px;
  background: #ffffff;
  color: var(--ink);
  padding: 18px;
}

.phone-top {
  width: 54px;
  height: 5px;
  margin: 0 auto 28px;
  border-radius: 9999px;
  background: #111111;
}

.phone-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}

.phone h3 {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.16;
}

.phone-card {
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 14px;
}

.phone-card span {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 44%, #171717 44%, #171717 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #171717 44%, #171717 56%, transparent 56%),
    var(--surface-strong);
}

.phone-card strong,
.phone-card small {
  display: block;
}

.phone-card strong {
  font-size: 14px;
}

.phone-card small {
  color: var(--body);
  font-size: 12px;
}

.phone-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.phone-list span {
  height: 10px;
  border-radius: 9999px;
  background: var(--surface-strong);
}

.phone-list span:nth-child(2) {
  width: 74%;
}

.phone-list span:nth-child(3) {
  width: 58%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2,
.split-copy h2,
.docs-band h2,
.cta-band h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -1.44px;
  line-height: 1.1;
}

.section-heading p:last-child,
.split-copy p {
  color: var(--body);
}

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

.feature-card,
.workflow-card,
.price-card {
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--surface-card);
}

.feature-card {
  min-height: 262px;
  padding: 24px;
}

.feature-card:hover,
.workflow-card:hover,
.price-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dark-card,
.featured {
  border-color: var(--surface-dark);
  background: var(--surface-dark);
  color: #ffffff;
}

.feature-kicker {
  margin-bottom: 58px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.feature-card h3,
.workflow-card h3,
.price-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-card p:last-child,
.workflow-card p,
.price-card p,
.price-card li {
  color: var(--body);
}

.dark-card p:last-child,
.featured p,
.featured li {
  color: #b0b4ba;
}

.workflow-band {
  max-width: none;
  background: var(--canvas-soft);
}

.workflow-band > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

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

.workflow-card {
  padding: 20px;
}

.step-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 64px;
}

.code-block {
  padding: 22px;
}

.text-link {
  color: var(--link);
  font-size: 16px;
  font-weight: 500;
}

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

.price-card {
  padding: 32px;
}

.price {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.08px;
  line-height: 1.15;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.featured .price {
  color: #ffffff;
}

.featured .price span {
  color: #b0b4ba;
}

.dark-badge {
  background: var(--surface-dark-elevated);
  color: #ffffff;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.price-card li::before {
  position: absolute;
  left: 0;
  color: var(--success);
  content: "+";
}

.usage-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--surface-card);
}

.usage-panel h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.usage-panel p {
  color: var(--body);
}

.usage-grid {
  display: grid;
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.usage-row {
  display: grid;
  grid-template-columns: 0.75fr 1.55fr 0.75fr 0.85fr;
  min-height: 44px;
  align-items: center;
  border-top: 1px solid var(--hairline);
}

.usage-row:first-child {
  border-top: 0;
}

.usage-row span {
  padding: 12px 14px;
  color: var(--body);
  font-size: 14px;
}

.usage-row span:first-child,
.usage-row span:nth-child(3) {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.usage-head {
  background: var(--surface-strong);
}

.usage-head span {
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.usage-note {
  grid-column: 1 / -1;
  max-width: 820px;
  font-size: 14px;
}

.docs-band {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1fr;
  gap: 48px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ecosystem-grid span {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.cta-band {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.cta-band h2 {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.footer-light {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding: 64px 24px 48px;
}

.footer-light p,
.footer-light a {
  color: var(--body);
  font-size: 14px;
}

.footer-light .brand {
  margin-bottom: 14px;
  color: var(--ink);
}

.footer-light h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.footer-light nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

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

@media (max-width: 1040px) {
  .nav-links {
    gap: 18px;
  }

  .device-stage {
    min-height: 500px;
  }

  .phone {
    right: 2px;
    width: 184px;
  }

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

  .workflow-steps,
  .docs-band,
  .usage-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-nav {
    padding: 0 16px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-band {
    padding: 56px 16px 64px;
  }

  h1 {
    letter-spacing: -0.9px;
  }

  .hero-copy {
    margin-bottom: 32px;
  }

  .device-stage {
    min-height: auto;
  }

  .macbook {
    display: none;
  }

  .phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(278px, 100%);
    margin: 0 auto;
  }

  .section,
  .workflow-band,
  .cta-band {
    padding: 72px 16px;
  }

  .feature-grid,
  .workflow-steps,
  .split,
  .pricing-grid,
  .docs-band,
  .usage-panel,
  .footer-light {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 34px;
  }

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

  .footer-light {
    padding: 48px 16px;
  }
}

@media (max-width: 420px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .section-heading h2,
  .split-copy h2,
  .docs-band h2,
  .cta-band h2 {
    letter-spacing: -0.72px;
  }

  .price-card,
  .feature-card,
  .usage-panel {
    padding: 24px;
  }

  .usage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 0;
  }

  .usage-head {
    display: none;
  }

  .usage-row span:first-child,
  .usage-row span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .usage-row span {
    padding: 8px 12px;
  }

  .usage-row span:nth-child(3)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    content: "Multiplier";
  }

  .usage-row span:nth-child(4)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    content: "Pro includes";
  }
}
