/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* ---------- theme ---------- */
:root {
  --bg: #07050d;
  --footer: #08070d;
  --fg: #f5f3ff;
  --fg-muted: #b8aecf;
  --fg-dim: #6b6480;
  --accent: #22d3ee;
  --accent-2: #d946ef;
  --rule: rgba(255, 255, 255, 0.06);
  --max: 1100px;
  --pad: clamp(20px, 5vw, 56px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: #67e8f9;
}

/* ---------- site nav ---------- */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.brand:hover {
  color: var(--fg);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--fg);
}

/* ---------- hero (lava lamp) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--pad) 220px;
  isolation: isolate;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.blob-1 {
  width: 720px;
  height: 720px;
  bottom: -300px;
  left: 4%;
  background: radial-gradient(circle, #d946ef 0%, transparent 70%);
  animation: float-a 22s ease-in-out infinite;
}
.blob-2 {
  width: 620px;
  height: 620px;
  bottom: -240px;
  right: 6%;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  animation: float-b 26s ease-in-out infinite;
}
.blob-3 {
  width: 820px;
  height: 820px;
  bottom: -380px;
  left: 32%;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  animation: float-c 30s ease-in-out infinite;
}
.blob-4 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 50%;
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  opacity: 0.35;
  animation: float-d 28s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(90px, -130px) scale(1.1); }
  66% { transform: translate(-70px, -80px) scale(0.95); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-110px, -160px) scale(1.15); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(70px, -210px) scale(1.05); }
  80% { transform: translate(-90px, -110px) scale(0.9); }
}
@keyframes float-d {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -120px) scale(1.1); }
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--fg);
  max-width: 18ch;
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}
.hero p {
  position: relative;
  z-index: 1;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 50ch;
  line-height: 1.5;
}
.cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 6px 30px rgba(217, 70, 239, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.3);
}
.cta:hover {
  background: #ffffff;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(217, 70, 239, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ---------- space (starfield) ---------- */
.space {
  position: relative;
}
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 0;
}
.stars-1 {
  background: white;
}
.stars-2 {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
}
.stars-3 {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(217, 70, 239, 0.9);
  box-shadow: 0 0 6px rgba(217, 70, 239, 0.55);
}

/* ---------- content sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 12vw, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.manifesto {
  text-align: center;
}
.manifesto p {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 auto 0.9em;
  max-width: 40ch;
  line-height: 1.18;
}
.manifesto p:last-child {
  margin-bottom: 0;
}

.section.pitch {
  max-width: 900px;
}
.pitch .lead {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 2em;
}
.pitch p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 1.4em;
  line-height: 1.7;
}
.pitch p:last-child {
  margin-bottom: 0;
}

/* ---------- performance section ---------- */
.performance {
  text-align: center;
}

.perf-headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 36px;
}

.perf-line {
  display: block;
  white-space: nowrap;
}

.perf-footnote {
  font-size: 0.88rem;
  color: var(--fg-dim);
  font-style: italic;
  margin: 0 auto 72px;
  max-width: 60ch;
  line-height: 1.55;
}

.compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-card {
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-align: left;
}

.compare-card.compare-feature {
  background: rgba(34, 211, 238, 0.07);
  border-color: rgba(34, 211, 238, 0.25);
}

.compare-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.compare-card.compare-feature .compare-name {
  color: var(--accent);
}

.compare-data {
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.4;
}

.compare-data:last-child {
  margin-bottom: 0;
}

.compare-label {
  color: var(--fg-muted);
  margin-right: 4px;
}

@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .perf-headline {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }
  .compare-card {
    padding: 20px 22px;
  }
}

/* ---------- about page ---------- */
.page-header {
  text-align: center;
  padding: 160px var(--pad) 80px;
  max-width: 900px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-header p {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--fg-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.5;
}

.section.about-copy {
  max-width: 900px;
}
.about-copy .about-lead {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 2em;
}
.about-copy p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 1.4em;
  line-height: 1.7;
}
.about-copy p:last-child {
  margin-bottom: 0;
}

.section.team,
.section.contact {
  max-width: 900px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 32px;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.team-member {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.team-member .portrait {
  margin-bottom: 0;
}
.team-member .portrait {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.team-member .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-member h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.team-member .role {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.team-member .bio {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.team-member .fun-fact {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(217, 70, 239, 0.06);
  border-left: 2px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  color: var(--fg);
  font-style: italic;
  line-height: 1.55;
}

.careers .careers-lead {
  font-size: 1.2rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.5;
  max-width: 65ch;
  margin-bottom: 2.4em;
}

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}
.contact-form button {
  align-self: flex-start;
  padding: 12px 24px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.18s ease;
}
.contact-form button:hover {
  background: #ffffff;
}
.contact-confirmation {
  max-width: 560px;
  padding: 20px 24px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .team-grid {
    gap: 36px;
  }
  .team-member {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- docs page (2-column) ---------- */
.docs-shell {
  position: relative;
  padding: 120px var(--pad) 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.docs-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 88px;
  align-self: start;
}
.docs-side h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.docs-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--rule);
}
.docs-side li {
  margin: 0;
}
.docs-side a {
  display: block;
  padding: 7px 14px;
  font-size: 0.92rem;
  color: var(--fg-muted);
  border-left: 1px solid transparent;
  margin-left: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.docs-side a:hover {
  color: var(--fg);
  border-left-color: var(--fg-dim);
}
.docs-side a.active {
  color: var(--accent-2);
  border-left-color: var(--accent-2);
}

.docs-main {
  min-width: 0;
  max-width: 760px;
}
.docs-main h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.docs-main .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.55;
  margin-bottom: 56px;
  max-width: 60ch;
}
.docs-main h2 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 72px;
  margin-bottom: 18px;
  scroll-margin-top: 80px;
}
.docs-main h2:first-of-type {
  margin-top: 0;
}
.docs-main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-main p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.1em;
}
.docs-main strong {
  color: var(--fg);
  font-weight: 600;
}
.docs-main a {
  color: var(--accent-2);
}
.docs-main a:hover {
  color: #f0abfc;
}
.docs-main ul {
  margin: 0 0 1.2em 1.2em;
  color: var(--fg-muted);
}
.docs-main li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.prim-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  font-size: 0.94rem;
}
.prim-table th,
.prim-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prim-table th {
  color: var(--fg-dim);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prim-table td {
  color: var(--fg-muted);
}
.prim-table td code {
  color: var(--accent-2);
}
.prim-table code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

pre.code-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e9e4f0;
}
pre.code-block code {
  font-family: inherit;
  color: inherit;
}
.tok-key { color: #f0abfc; }
.tok-str { color: #a5f3fc; }
.tok-num { color: #fde68a; }
.tok-com { color: #6b6480; font-style: italic; }

.method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.method-row .verb {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(217, 70, 239, 0.14);
  color: var(--accent-2);
}
.method-row .path {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--fg);
}

.callout {
  margin: 18px 0 26px;
  padding: 14px 18px;
  border-left: 2px solid var(--accent-2);
  background: rgba(217, 70, 239, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.callout strong {
  color: var(--fg);
}

.docs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.docs-cta:hover {
  background: #ffffff;
  color: var(--bg);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .docs-side {
    position: static;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 18px;
  }
  .docs-side ul {
    display: flex;
    gap: 4px;
    border-left: 0;
  }
  .docs-side a {
    margin-left: 0;
    border-left: 0;
    border-bottom: 1px solid transparent;
    padding: 6px 10px;
  }
  .docs-side a.active {
    border-bottom-color: var(--accent-2);
  }
}

/* ---------- footer (Anthropic-style) ---------- */
.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--rule);
  padding: 80px var(--pad) 40px;
  color: var(--fg-muted);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
}
.footer-mark .brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--fg);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-bottom .copyright {
  color: var(--fg-dim);
  font-size: 0.85rem;
}
.footer-encoded {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  user-select: all;
  opacity: 0.7;
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .site-nav {
    padding: 18px var(--pad);
  }
  .nav-links {
    gap: 18px;
  }
  .hero {
    padding-top: 110px;
    padding-bottom: 180px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}
