@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0b9387;
  --teal-light: #2bd3bf;
  --teal-dark: #124d49;
  --teal-pale: #cbfaf0;
  --ink: #f7f7f9;
  --black: #101010;

  --bg: #0b0e11;
  --bg-deep: #08090b;
  --surface: #14181d;
  --surface-2: #171c22;
  --panel: #14181d;
  --stroke: #2a3138;

  --text: #e6e9ec;
  --faint: #9aa3ad;
  --muted: color-mix(in srgb, var(--text) 72%, var(--faint));

  --line: color-mix(in srgb, var(--stroke) 62%, transparent);
  --line-strong: var(--stroke);

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-lg: 0 40px 100px color-mix(in srgb, var(--black) 55%, transparent);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -12%, color-mix(in srgb, var(--surface) 78%, transparent), transparent 70%),
    var(--bg);
}

::selection {
  background: var(--teal);
  color: var(--black);
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 800;
  text-wrap: balance;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

code,
pre {
  font-family: "JetBrains Mono", "Cascadia Code", monospace;
}

:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.container {
  width: min(var(--container), calc(100% - 4rem));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--teal-pale);
  color: var(--black);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.nowrap {
  white-space: nowrap;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.site-nav > a:not(.button) {
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav > a:not(.button):hover {
  color: var(--text);
}

.site-nav > a:not(.button):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 1.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button-small {
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 9px;
  font-size: 0.86rem;
}

.button-primary {
  background: linear-gradient(180deg, #3ce3cd, var(--teal) 72%);
  color: #04211f;
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--teal) 32%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 34%, transparent);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px color-mix(in srgb, var(--teal) 42%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 40%, transparent);
}

.button-ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button-ghost:hover {
  border-color: color-mix(in srgb, var(--teal-light) 62%, transparent);
  background: color-mix(in srgb, var(--teal-light) 8%, transparent);
  color: var(--teal-light);
  transform: translateY(-2px);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 158px 0 176px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -14% -6% auto;
  z-index: -2;
  height: 92%;
  background: url("assets/editor.png") center top / cover no-repeat;
  opacity: 0.14;
  filter: blur(34px);
  transform: scale(1.08);
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(920px 520px at 50% 4%, color-mix(in srgb, var(--surface) 65%, transparent), transparent 70%),
    linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(180deg, transparent 40%, var(--bg) 92%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.eyebrow a {
  color: var(--teal-light);
  font-weight: 600;
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal-light) 18%, transparent);
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 6.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 .accent {
  color: var(--teal-light);
}

.lede {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.3rem;
}

.hero-facts {
  display: flex;
  width: fit-content;
  margin: 3rem auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  list-style: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.95rem 1.9rem;
  border-left: 1px solid var(--line);
  text-align: center;
}

.hero-facts li:first-child {
  border-left: 0;
}

.hero-facts strong {
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-facts span {
  color: var(--faint);
  font-size: 0.76rem;
}

/* Hero showcase */

.hero-showcase {
  position: relative;
  max-width: 1080px;
  margin: 4.75rem auto 0;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 16% -8% -18%;
  z-index: -1;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--teal) 8%, transparent), transparent 68%);
  filter: blur(46px);
}

.editor-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 color-mix(in srgb, var(--ink) 7%, transparent);
}

.editor-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
}

.editor-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 18%, transparent);
}

.editor-chrome p {
  margin: 0 0 0 0.65rem;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
}

.editor-chrome em {
  margin-left: auto;
  color: color-mix(in srgb, var(--faint) 75%, transparent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-style: normal;
}

.editor-frame img {
  width: 100%;
}

.floating-card {
  position: absolute;
  right: -2.75rem;
  bottom: -3.25rem;
  width: 370px;
  padding: 0.95rem 1.15rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--black) 62%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(-1.5deg);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
}

.floating-card pre {
  margin: 0;
  overflow: auto;
  color: var(--text);
  font-size: 0.66rem;
  line-height: 1.75;
}

/* Sections */

.section {
  position: relative;
  padding: 112px 0;
}

section[id] {
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 46rem;
  margin: 0 0 3.25rem;
}

.kicker {
  margin-bottom: 0.85rem;
  color: var(--teal-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section h2 {
  margin-bottom: 1.05rem;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-head p,
.split-copy > p,
.quickstart-copy > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
  text-wrap: pretty;
}

/* Features */

.features {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 55%, transparent), transparent 46%),
    var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--panel));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--teal-light) 30%, transparent);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--black) 45%, transparent);
}

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 166px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(220px 150px at 22% 20%, color-mix(in srgb, var(--teal) 7%, transparent), transparent 72%),
    linear-gradient(145deg, var(--surface-2), var(--panel));
}

.feature-card:nth-child(2) .feature-visual {
  background:
    radial-gradient(220px 150px at 78% 18%, color-mix(in srgb, var(--teal-light) 6%, transparent), transparent 72%),
    linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 80%, var(--panel)), var(--panel));
}

.feature-card:nth-child(3) .feature-visual {
  background:
    radial-gradient(240px 160px at 50% 0%, color-mix(in srgb, var(--teal-pale) 4%, transparent), transparent 70%),
    linear-gradient(165deg, var(--panel), var(--bg-deep));
}

.feature-card:nth-child(4) .feature-visual {
  background:
    radial-gradient(220px 150px at 18% 80%, color-mix(in srgb, var(--teal) 6%, transparent), transparent 70%),
    linear-gradient(140deg, var(--surface-2), var(--bg-deep));
}

.feature-card:nth-child(5) .feature-visual {
  background:
    radial-gradient(240px 160px at 82% 84%, color-mix(in srgb, var(--teal-light) 5%, transparent), transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--surface-2) 65%, var(--panel)), var(--panel));
}

.feature-card:nth-child(6) .feature-visual {
  background:
    radial-gradient(220px 150px at 50% 10%, color-mix(in srgb, var(--teal) 6%, transparent), transparent 72%),
    linear-gradient(170deg, var(--surface-2), var(--panel));
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 78%);
}

.feature-visual::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 70px;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  filter: blur(30px);
}

.feature-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--teal-light) 34%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--teal-light);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 10%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-icon .icon {
  width: 26px;
  height: 26px;
}

.visual-tag {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: color-mix(in srgb, var(--text) 40%, transparent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-body {
  padding: 1.6rem 1.55rem 1.75rem;
}

.feature-body h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Scripting */

.scripting {
  background:
    radial-gradient(900px 520px at 12% 45%, color-mix(in srgb, var(--surface) 55%, transparent), transparent 70%),
    var(--bg);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 5rem;
  align-items: center;
}

.split-grid > *,
.feature-grid > *,
.quickstart-panel > *,
.footer-grid > *,
.hero-inner > * {
  min-width: 0;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.code-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.code-dots {
  display: flex;
  gap: 0.35rem;
}

.code-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.code-file {
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.code-head .copy-button {
  margin-left: auto;
}

.code-window pre {
  margin: 0;
  padding: 1.6rem 1.7rem;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.87rem;
  line-height: 1.9;
}

.tok-key {
  color: var(--teal-light);
}

.tok-fn {
  color: var(--ink);
}

.tok-type,
.tok-num,
.tok-str {
  color: var(--teal-pale);
}

.code-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
}

.code-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: color-mix(in srgb, var(--teal-light) 80%, var(--text));
}

.code-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-light) 18%, transparent);
}

.split-copy h2 {
  max-width: 12ch;
}

.split-copy > p {
  margin-bottom: 1.8rem;
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.check-list li > span {
  min-width: 0;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--teal-light);
}

.check-list code {
  padding: 0.1em 0.34em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--teal-pale);
  font-size: 0.86em;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal-light);
  font-weight: 650;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.text-link:hover {
  gap: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Quickstart */

.quickstart {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 45%, transparent) 42%, transparent);
}

.quickstart-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.75rem;
  align-items: center;
  overflow: hidden;
  padding: 3.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 460px at 86% 14%, color-mix(in srgb, var(--teal) 6%, transparent), transparent 70%),
    linear-gradient(150deg, var(--surface), var(--bg-deep) 78%);
  box-shadow: 0 36px 90px color-mix(in srgb, var(--black) 40%, transparent);
}

.quickstart-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -14%;
  width: 38rem;
  height: 38rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--teal) 6%, transparent), transparent 66%);
  pointer-events: none;
}

.quickstart-copy {
  position: relative;
}

.quickstart-copy h2 {
  max-width: 12ch;
}

.quickstart-copy > p {
  margin-bottom: 1.6rem;
}

.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 94%, var(--black));
  box-shadow: 0 30px 80px color-mix(in srgb, var(--black) 48%, transparent);
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.terminal-dots {
  display: flex;
  gap: 0.35rem;
  padding-left: 0.3rem;
}

.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0.22rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--black) 34%, transparent);
}

.tabs button {
  padding: 0.33rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 550;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.tabs button[aria-selected="true"] {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  color: var(--teal-pale);
}

.tabs button:hover {
  color: var(--text);
}

.terminal-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.terminal-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.6rem;
  padding: 0.24rem 0;
  font-size: 0.81rem;
  line-height: 1.75;
}

.prompt {
  color: var(--teal-light);
  user-select: none;
}

.terminal-line code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.copy-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--teal-light);
  opacity: 1;
}

.copy-button .icon {
  width: 15px;
  height: 15px;
}

.copy-button.is-copied {
  color: var(--teal-light);
  opacity: 1;
}

.terminal-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

.terminal-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  color: var(--teal-light);
}

/* CTA */

.cta {
  padding-top: 48px;
  padding-bottom: 128px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 320px at 50% 0%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-deep));
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: 30rem;
  height: 30rem;
  background: url("assets/logo-white.svg") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}

.cta-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
}

.cta-panel h2 {
  margin: 0 auto 0.85rem;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
}

.cta-panel > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.cta-panel .hero-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 4.5rem;
}

.footer-brand p {
  max-width: 27rem;
  margin: 1.1rem 0 0;
  color: var(--faint);
  font-size: 0.93rem;
}

.footer-brand .copyright {
  color: color-mix(in srgb, var(--faint) 78%, transparent);
  font-size: 0.8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links h3 {
  margin-bottom: 1rem;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  padding: 0.26rem 0;
  color: var(--faint);
  font-size: 0.91rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.79rem;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--teal-light);
}

/* 404 */

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.not-found main {
  width: min(34rem, 100%);
}

.not-found .brand {
  justify-content: center;
  margin-bottom: 2rem;
}

.not-found h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.3rem, 6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.not-found p {
  color: var(--faint);
}

.not-found .hero-actions {
  justify-content: center;
}

/* Reveal animation */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .feature-card:nth-child(2),
.js .split-grid > :nth-child(2) {
  transition-delay: 0.06s;
}

.js .feature-card:nth-child(3) {
  transition-delay: 0.12s;
}

.js .feature-card:nth-child(5) {
  transition-delay: 0.06s;
}

.js .feature-card:nth-child(6) {
  transition-delay: 0.12s;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    padding-top: 140px;
  }

  .hero h1 .accent {
    white-space: nowrap;
  }

  .hero-showcase {
    max-width: 940px;
  }

  .floating-card {
    right: 1.25rem;
  }
}

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

  .split-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .split-copy h2 {
    max-width: none;
  }

  .quickstart-panel {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 2.75rem;
  }

  .quickstart-copy h2 {
    max-width: 16ch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 2rem 1.3rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: 0.75rem 0.6rem;
    border-radius: 8px;
    font-size: 0.98rem;
  }

  .site-nav > a:not(.button)::after {
    display: none;
  }

  .site-nav > a:not(.button):hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }

  .site-nav .button {
    margin-top: 0.45rem;
  }
}

@media (max-width: 760px) {
  .floating-card {
    display: none;
  }

  .hero {
    padding-bottom: 110px;
  }

  .hero-showcase {
    margin-top: 3.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .header-inner {
    height: 70px;
  }

  .hero {
    padding: 118px 0 96px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-facts {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 14px;
  }

  .hero-facts li {
    flex: 1 1 30%;
    padding: 0.8rem 0.7rem;
  }

  .hero-facts span {
    font-size: 0.7rem;
  }

  .editor-chrome em {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-visual {
    height: 150px;
  }

  .split-grid {
    gap: 2rem;
  }

  .code-window pre {
    padding: 1.25rem;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .quickstart-panel {
    padding: 1.6rem;
    border-radius: 20px;
  }

  .terminal-head {
    flex-wrap: wrap;
  }

  .terminal-dots {
    display: none;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    flex: 1;
  }

  .terminal-body {
    padding: 0.95rem;
  }

  .terminal-line {
    font-size: 0.74rem;
  }

  .cta {
    padding-top: 24px;
    padding-bottom: 88px;
  }

  .cta-panel {
    padding: 3.25rem 1.3rem;
    border-radius: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
