:root {
  --bg: #0d0d10;
  --bg-raised: #16161b;
  --text: #ecebf0;
  --muted: #9a99a6;
  --line: #2a2a32;
  --rainbow: linear-gradient(90deg, #ff3d7f, #ff8a3d, #ffd23d, #4dff8a, #3dc8ff, #6a5cff, #c84dff, #ff3d7f);
  --max: 1120px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

figure { margin: 0; }

h1, h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }

p { margin: 0 0 1em; }

.eyebrow {
  margin: 0 0 0.75em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--rainbow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 13, 16, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.site-nav ul {
  display: flex;
  gap: clamp(20px, 4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 9vw, 112px) 24px 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  margin-bottom: 0.2em;
}

.hero .lede {
  max-width: 40ch;
  margin: 0 auto;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
}

/* Buttons */

.button {
  position: relative;
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.15s ease;
}

/* Thin, muted rainbow ring around the button */
.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--rainbow);
  opacity: 0.6;
  z-index: -1;
  transition: opacity 0.2s ease;
}

/* Faint underglow, only on hover */
.button::after {
  content: "";
  position: absolute;
  inset: 30% 15% -15%;
  border-radius: inherit;
  background: var(--rainbow);
  filter: blur(16px);
  opacity: 0;
  z-index: -2;
  transition: opacity 0.2s ease;
}

.button:hover { transform: translateY(-1px); }
.button:hover::before { opacity: 1; }
.button:hover::after { opacity: 0.3; }

.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.hero-sub {
  margin: 1.5em 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.option .button { margin-top: 1em; }

/* Not yet for sale: a quiet label, not a link */
.button.soon {
  color: var(--muted);
  cursor: default;
}

.button.soon::before { opacity: 0.35; }

.button.soon:hover { transform: none; }
.button.soon:hover::before { opacity: 0.35; }
.button.soon:hover::after { opacity: 0; }

.hero-image {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}

/* Soft rainbow underglow behind the hero photo, echoing the product */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 12% 6% -4%;
  background: var(--rainbow);
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
}

.rainbow-rule {
  height: 3px;
  background: var(--rainbow);
  background-size: 200% 100%;
  animation: drift 12s linear infinite;
}

@keyframes drift {
  to { background-position: 200% 0; }
}

/* Sections */

main section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 24px;
}

.intro {
  text-align: center;
}

.intro p {
  max-width: 34ch;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feature,
.api {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

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

.feature.reverse figure { order: 2; }

.feature img {
  width: 100%;
  border-radius: var(--radius);
}

.feature-text p:not(.eyebrow),
.api-text p:not(.eyebrow) {
  color: var(--muted);
}

/* API */

.api {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checks {
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--rainbow);
  background-size: 800% 100%;
}

.checks li:nth-child(1)::before { background-position: 0% 0; }
.checks li:nth-child(2)::before { background-position: 40% 0; }
.checks li:nth-child(3)::before { background-position: 65% 0; }
.checks li:nth-child(4)::before { background-position: 90% 0; }

.code {
  position: relative;
  margin: 0;
  padding: 28px 28px 28px 32px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  box-shadow: 0 30px 80px -30px rgba(106, 92, 255, 0.45);
}

.code::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff3d7f, #ffd23d, #4dff8a, #3dc8ff, #c84dff);
}

.code .c { color: #6f6e7b; }
.code .k { color: #c84dff; }
.code .s { color: #4dff8a; }
.code .n { color: #ffd23d; }

/* Options */

.options {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 52px; /* clear the sticky nav */
}

.options-head {
  text-align: center;
  max-width: 40ch;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.options-head p:not(.eyebrow) { color: var(--muted); }

.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.option {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.option h3 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.option p:not(.option-tag) { color: var(--muted); }

.option-tag {
  display: inline-block;
  margin: 0 0 1em;
  padding: 0.2em 0.8em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Specs */

.specs h2 { text-align: center; margin-bottom: 1.25em; }

.specs dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs dl > div {
  background: var(--bg);
  padding: 24px;
}

.specs dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35em;
}

.specs dd { margin: 0; }

/* Footer */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 48px;
}

footer .rainbow-rule { margin-bottom: 40px; }

footer p { margin: 0 0 0.4em; }

footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
}

footer .fine { font-size: 0.78rem; opacity: 0.7; }

/* Responsive */

@media (max-width: 800px) {
  .feature,
  .api {
    grid-template-columns: 1fr;
  }

  .feature.reverse figure { order: 0; }

  .option-cards { grid-template-columns: 1fr; }

  .specs dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .specs dl { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rainbow-rule { animation: none; }
  .button { transition: none; }
}
