:root {
  --ink: #0c1a24;
  --ink-soft: #243746;
  --paper: #eef4f7;
  --paper-2: #dce8ee;
  --mist: #f7fafb;
  --accent: #0e7490;
  --accent-deep: #155e75;
  --line: rgba(12, 26, 36, 0.12);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(14, 116, 144, 0.16), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(20, 90, 120, 0.12), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 42%, var(--paper-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(12, 26, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 26, 36, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  padding: 1.1rem 1.25rem;
}

.site-header nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-header a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-header a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 6rem) 1.25rem 2.5rem;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-right: 0.5rem;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: var(--ink);
}

.headline {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
}

.cta:hover {
  color: #fff;
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
}

.cta-secondary:hover {
  background: rgba(14, 116, 144, 0.1);
  color: var(--ink);
  border-color: var(--accent-deep);
}

.hero-visual {
  position: relative;
  min-height: clamp(16rem, 48vh, 28rem);
  margin-right: calc(-1 * max(0px, (100vw - var(--max)) / 2 + 1.25rem));
  width: calc(100% + max(0px, (100vw - var(--max)) / 2 + 1.25rem));
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 5.5rem) 1.25rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section > p {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: var(--ink-soft);
}

.signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.signal-list li {
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.demo-form {
  max-width: 36rem;
}

.demo-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.demo-form input[type="email"] {
  flex: 1 1 14rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

.demo-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.demo-form button {
  cursor: pointer;
  border-style: solid;
  font: inherit;
}

.demo-form button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.demo-hint {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.demo-out {
  margin-top: 1.25rem;
  max-height: 22rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.endpoint {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: rgba(12, 26, 36, 0.92);
  color: #e2e8f0;
  overflow-x: auto;
  border: 0;
}

.endpoint .key {
  color: #5eead4;
}

.price-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.link-list a {
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration-thickness: 1.5px;
}

.link-list span {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.95rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent-deep);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: atmosphere-drift 28s linear infinite;
  }

  @keyframes atmosphere-drift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 48px 24px, -24px 48px; }
  }

  .cta:hover {
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease;
  }

  .hero-visual svg {
    animation: hero-drift 12s var(--ease) infinite alternate;
  }

  @keyframes hero-drift {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
  }

  .signal-list li {
    transition: border-color 0.25s ease, color 0.25s ease;
  }

  .signal-list li:hover {
    border-color: var(--ink);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.25rem;
    gap: 1.25rem;
  }

  .hero-visual {
    order: -1;
    margin-right: -1.25rem;
    margin-left: -1.25rem;
    width: calc(100% + 2.5rem);
    min-height: 14rem;
  }

  .brand {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
}
