/* Infinite Iterations. One stylesheet, no build step.
   Brand from the 2023 site: purple #a437db, lavender tints, Poppins. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); }

:root {
  --purple: #a437db;        /* brand; large text, fills and borders */
  --purple-ink: #8424b8;    /* purple for small text on white (5.9:1) */
  --purple-deep: #5b1a85;
  --lav-50: #fbf7fe;
  --lav-100: #f4eafd;
  --lav-200: #e8d6fa;
  --lav-300: #d4b5f2;
  --ink: #1c1427;
  --ink-2: #4b4458;         /* body text on white (9:1) */
  --ink-3: #6b6478;
  --line: #ece5f3;
  --white: #ffffff;
  --code-bg: #1c1427;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 20, 39, .04), 0 8px 24px rgba(91, 26, 133, .07);
  --shadow-lg: 0 2px 4px rgba(28, 20, 39, .05), 0 24px 48px rgba(91, 26, 133, .14);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --header-h: 72px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--purple-ink); }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-ink);
}
.eyebrow-light { color: var(--lav-300); }

/* Buttons: the 2023 site's purple pill */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  background: linear-gradient(135deg, #b14ee6, var(--purple) 55%, #8f2bc6);
  color: var(--white); font-weight: 600; font-size: .975rem; text-decoration: none;
  box-shadow: 0 6px 18px rgba(164, 55, 219, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(164, 55, 219, .4); }
.button-ghost { background: var(--white); color: var(--purple-ink); border-color: var(--lav-200); box-shadow: none; }
.button-ghost:hover { color: var(--purple-deep); border-color: var(--purple); box-shadow: none; }
.button-small { min-height: 42px; padding: 0 22px; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--purple-ink); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 56px;
  background:
    radial-gradient(60% 70% at 0% 0%, var(--lav-100), transparent 70%),
    radial-gradient(50% 60% at 100% 20%, #f8f0fe, transparent 70%),
    linear-gradient(180deg, var(--white), var(--lav-50));
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .45em; }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.18rem); max-width: 34em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.release-log {
  margin: 0;
  background: var(--code-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #2d2340;
  min-width: 0;
}
.release-log-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #2d2340; }
.release-log-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a2e4f; }
.release-log-bar span:first-child { background: var(--purple); }
.release-log-bar span:nth-child(2) { background: #bb84e8; }
.release-log-bar span:nth-child(3) { background: var(--lav-300); }
.release-log pre { margin: 0; padding: clamp(20px, 2.2vw, 30px) clamp(22px, 2.4vw, 32px); overflow-x: auto; font-family: var(--mono); font-size: clamp(.74rem, 1.1vw, .98rem); line-height: 2.05; color: #e9e3f2; }
.release-log .prompt { color: #9d93ad; }
.release-log .sha { color: #c99cf0; }
.release-log .next { color: var(--white); font-weight: 600; }
.release-log .sha.next { color: #e7c8ff; }
.cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 4px; vertical-align: -.2em; background: #c99cf0; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.proof-label { margin: 56px 0 12px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.proof { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.proof li {
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; font-size: .92rem;
}

/* Sections */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }
.section-tint { background: var(--lav-50); }
.section-head { position: relative; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-left { margin: 0 0 24px; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; }
.section-intro { font-size: 1.05rem; margin-top: 8px; }
/* The 2023 site's faded word behind each heading. It sits behind the eyebrow: its
   baseline lands just above the heading, so the two never overlap, at any width. */
.section-head { --ghost: clamp(4.25rem, 8vw, 6.25rem); }
.ghost-word {
  position: absolute; left: 50%; top: calc(var(--ghost) * -.64); transform: translateX(-50%);
  z-index: -1;
  font-size: var(--ghost); font-weight: 700; line-height: 1; letter-spacing: -.03em;
  color: var(--lav-100); white-space: nowrap; pointer-events: none; user-select: none;
}
.section-tint .ghost-word { color: #f1e5fc; }
.section-head-left .ghost-word { left: -.04em; transform: none; }
.section > .container { position: relative; z-index: 0; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--lav-200); }
.card h3 { font-size: 1.15rem; margin-bottom: .6em; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 18px;
  border-radius: 12px; background: var(--lav-100);
  fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.work { display: flex; flex-direction: column; }
.work-meta { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--purple-ink); margin-bottom: .4em; }
.work h3 { font-size: 1.3rem; }
.work > p:not(.work-meta) { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font-size: .78rem; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--lav-100); color: var(--purple-deep); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding: 24px 0 0; border-top: 3px solid var(--lav-200); }
.step:nth-child(1) { border-top-color: var(--purple); }
.step:nth-child(2) { border-top-color: #bb84e8; }
.step:nth-child(3) { border-top-color: var(--lav-300); }
.step-num { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--lav-300); margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy p { font-size: 1.05rem; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lav-300); }
.text-link:hover { border-bottom-color: var(--purple); }
.text-link::after { content: " \2192"; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.facts dt { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--purple); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .92rem; line-height: 1.5; }

.stack-title { margin: 72px 0 20px; font-size: 1.25rem; }
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stack div { background: var(--white); padding: 20px 22px; }
.stack h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-ink); margin-bottom: 6px; }
.stack p { margin: 0; font-size: .93rem; line-height: 1.6; }

/* Engagements */
.plan h3 { font-size: 1.35rem; }
.plan-featured { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple), var(--shadow-lg); }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--purple); border-bottom: 3px solid var(--purple);
  transform: rotate(-45deg);
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; box-shadow: var(--shadow); }
.faq details[open] { border-color: var(--lav-200); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--purple); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; margin: 0; }

/* Contact */
.contact {
  padding: clamp(64px, 9vw, 104px) 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(187, 132, 232, .35), transparent 60%),
    linear-gradient(135deg, #2a1440, #1c1427 70%);
  color: #ddd3ea;
}
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact h2 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
.contact p { font-size: 1.08rem; max-width: 32em; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--white); text-decoration: none; font-weight: 500;
  transition: background .15s ease, border-color .15s ease;
  overflow-wrap: anywhere;
}
.contact-item:hover { color: var(--white); background: rgba(255, 255, 255, .1); border-color: rgba(212, 181, 242, .5); }
.contact-item .icon { margin: 0; flex: none; background: rgba(164, 55, 219, .25); stroke: #e3cff7; }
.contact-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-300); }

/* Footer */
.site-footer { background: #150f1e; color: #a99fb8; padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { width: 200px; height: auto; margin-bottom: 10px; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ddd3ea; text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Responsive */
@media (max-width: 1099px) {
  .cards-3, .stack { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-inner, .about, .contact-inner { grid-template-columns: 1fr; }
  .release-log { max-width: 560px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--white); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
    transition: transform .2s ease, background .2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .button { margin-top: 12px; }
  /* Without JavaScript the menu button does nothing, so show the links instead. */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { position: static; display: flex; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: none; }
}
@media (max-width: 640px) {
  .cards-3, .cards-2, .steps, .stack { grid-template-columns: 1fr; }
  .brand img { width: 180px; }
  .card { padding: 22px; }
  .hero-actions .button { width: 100%; }
  .release-log pre { font-size: .74rem; padding: 16px; }
  .facts dt { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .hero-actions, .release-log, .ghost-word { display: none; }
  .section, .contact { padding: 24px 0; background: none; color: #000; }
}
