:root {
  --landing-bg-a: #0b1f5c;
  --landing-bg-b: #1e4fd6;
  --landing-bg-c: #5c9fd8;
  --landing-ink: #f4f7ff;
  --landing-ink-soft: rgba(244, 247, 255, 0.78);
  --landing-pill: rgba(6, 12, 28, 0.88);
  --landing-pill-border: rgba(255, 255, 255, 0.08);
  --landing-cta: #060c1c;
  --landing-launch: #f4f7ff;
  --landing-launch-ink: #0b1430;
  --landing-font-sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --landing-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --landing-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body.hg-landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--landing-ink);
  font-family: var(--landing-font-sans);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(8, 20, 60, 0.42), transparent 36%),
    linear-gradient(165deg, var(--landing-bg-b) 0%, var(--landing-bg-a) 42%, #08153f 100%);
  overflow-x: hidden;
}

.hg-landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hg-landing-contours {
  position: absolute;
  inset: -8% -12%;
  width: 124%;
  height: 116%;
  opacity: 0.34;
}

.hg-landing-contours path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
}

.hg-landing-header,
.hg-landing-main,
.hg-landing-stats {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hg-landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px) clamp(20px, 4vw, 40px);
}

.hg-landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--landing-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hg-landing-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.hg-landing-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--landing-radius-pill);
  background: var(--landing-pill);
  border: 1px solid var(--landing-pill-border);
  box-shadow: 0 18px 50px rgba(3, 8, 24, 0.28);
}

.hg-landing-nav-link {
  padding: 10px 16px;
  border-radius: var(--landing-radius-pill);
  color: rgba(244, 247, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.hg-landing-nav-link:hover,
.hg-landing-nav-link:focus-visible {
  color: var(--landing-ink);
  background: rgba(255, 255, 255, 0.06);
}

.hg-landing-nav-link.is-active {
  color: var(--landing-ink);
  background: rgba(255, 255, 255, 0.1);
}

.hg-landing-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hg-landing-text-link {
  color: var(--landing-ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.hg-landing-text-link:hover,
.hg-landing-text-link:focus-visible {
  color: var(--landing-ink);
}

.hg-landing-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--landing-radius-pill);
  background: var(--landing-launch);
  color: var(--landing-launch-ink);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(4, 10, 30, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hg-landing-launch:hover,
.hg-landing-launch:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(4, 10, 30, 0.28);
}

.hg-landing-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 6vw, 48px) clamp(20px, 5vw, 40px) clamp(40px, 8vw, 72px);
}

.hg-landing-eyebrow {
  margin: 0 0 18px;
  color: rgba(244, 247, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hg-landing-title {
  margin: 0;
  max-width: 12ch;
  color: var(--landing-ink);
  font-family: var(--landing-font-display);
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hg-landing-title em {
  font-style: italic;
  font-weight: 600;
}

.hg-landing-lede {
  margin: 22px 0 0;
  max-width: 42rem;
  color: var(--landing-ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.55;
}

.hg-landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--landing-radius-pill);
  background: var(--landing-cta);
  color: var(--landing-ink);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(3, 8, 24, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hg-landing-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hg-landing-cta-row .hg-landing-cta {
  margin-top: 0;
}

.hg-landing-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--landing-radius-pill);
  color: var(--landing-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
}

.hg-landing-api-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 46rem);
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(244, 247, 255, 0.84);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: rgba(6, 12, 28, 0.42);
}

.hg-landing-cta:hover,
.hg-landing-cta:focus-visible,
.hg-landing-secondary-cta:hover,
.hg-landing-secondary-cta:focus-visible,
.hg-landing-api-line:hover,
.hg-landing-api-line:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(3, 8, 24, 0.4);
}

.hg-landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 5vw, 48px) clamp(28px, 5vw, 42px);
}

.hg-landing-stat {
  text-align: center;
}

.hg-landing-stat strong {
  display: block;
  color: var(--landing-ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hg-landing-stat span {
  display: block;
  margin-top: 10px;
  color: rgba(244, 247, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hg-checkout-main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) 0 clamp(36px, 7vw, 72px);
}

.hg-checkout-hero {
  max-width: 780px;
}

.hg-checkout-title {
  margin: 0;
  color: var(--landing-ink);
  font-family: var(--landing-font-display);
  font-size: clamp(3rem, 8vw, 6.6rem);
  font-weight: 600;
  line-height: 0.95;
}

.hg-checkout-lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--landing-ink-soft);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.65;
}

.hg-checkout-lede code,
.hg-checkout-panel code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.hg-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hg-checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(30px, 5vw, 48px);
}

.hg-checkout-panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 12, 34, 0.5);
  box-shadow: 0 24px 60px rgba(3, 8, 24, 0.22);
}

.hg-checkout-panel h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: 1rem;
  font-weight: 700;
}

.hg-checkout-panel p {
  margin: 12px 0 0;
  color: var(--landing-ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hg-checkout-panel pre {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(3, 8, 24, 0.82);
  color: #f7fbff;
  font-size: 0.82rem;
  line-height: 1.55;
  white-space: pre;
}

.hg-checkout-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 0;
  color: var(--landing-ink-soft);
  font-size: 0.9rem;
}

.hg-checkout-proof a {
  color: var(--landing-ink);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 960px) {
  .hg-landing-header {
    flex-wrap: wrap;
  }

  .hg-landing-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hg-landing-nav::-webkit-scrollbar {
    display: none;
  }

  .hg-checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hg-landing-text-link {
    display: none;
  }

  .hg-landing-stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hg-landing-title {
    max-width: none;
  }

  .hg-landing-cta-row,
  .hg-landing-cta,
  .hg-landing-secondary-cta,
  .hg-checkout-actions {
    width: 100%;
  }

  .hg-checkout-main {
    width: min(100% - 28px, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-landing-cta,
  .hg-landing-secondary-cta,
  .hg-landing-api-line,
  .hg-landing-launch,
  .hg-landing-nav-link {
    transition: none;
  }
}
