/* Plum promotional site.
   Near-black canvas, violet accent, Playfair serif wordmark and headlines,
   Inter body, JetBrains Mono for code. Palette sampled from brand-reference.png. */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111014;
  --bg-card: #131217;
  --line: #211f27;
  --line-soft: #1a1820;
  --accent: #8b2fce;
  --accent-deep: #7a20b8;
  --accent-soft: #a95fe0;
  --text: #fdfeff;
  --muted: #9d97a8;
  --muted-dim: #6f6a7a;
  --pass: #4ea981;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 92% 88%, rgba(139, 47, 206, 0.10), transparent 55%),
    radial-gradient(80% 60% at 100% 0%, rgba(139, 47, 206, 0.05), transparent 60%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent-soft); }
em, .serif-i { font-family: var(--serif); font-style: italic; }
img { max-width: 100%; display: block; }

.textlink {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(169, 95, 224, 0.35);
  transition: border-color 0.2s var(--ease);
}
.textlink:hover { border-color: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: transparent;
  box-shadow: 0 8px 30px -12px rgba(139, 47, 206, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(139, 47, 206, 0.9); }
.btn-ghost { border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.74);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
}
/* Matches the app nav: "Pl" in Playfair + accent, "um" in DM Sans. */
.wordmark {
  font-family: "DM Sans", var(--sans);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.wordmark b {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--accent);
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a,
.nav-drop > .drop-trigger {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.22s var(--ease);
}
.nav-links > a:hover,
.nav-drop > .drop-trigger:hover,
.nav-links > a.current,
.nav-drop.current > .drop-trigger { color: var(--text); }
.nav-links .gh { display: inline-flex; align-items: center; }
.nav-links .gh svg { width: 18px; height: 18px; }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop > .drop-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop > .drop-trigger .chev { width: 10px; height: 10px; transition: transform 0.22s var(--ease); }
.nav-drop:hover > .drop-trigger .chev,
.nav-drop.open > .drop-trigger .chev { transform: rotate(180deg); }
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 230px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.nav-drop:hover .nav-menu,
.nav-drop.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-menu a:hover { background: var(--bg-card); color: var(--text); }
.nav-menu a span { display: block; font-size: 0.78rem; color: var(--muted-dim); margin-top: 2px; }

/* mobile nav */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 760px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(169, 95, 224, 0.35);
  border-radius: 999px;
  background: rgba(139, 47, 206, 0.1);
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.hero-badge:hover { border-color: rgba(169, 95, 224, 0.6); background: rgba(139, 47, 206, 0.16); }
.hero-badge .ai-ic { width: 13px; height: 13px; flex-shrink: 0; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}
.hero h1 em { font-style: italic; }
.hero h1 .accent { color: var(--accent-soft); }

.hero .lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 38px;
}
.hero .lede i { font-family: var(--serif); font-style: italic; color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* orbital decoration */
.orbits {
  position: absolute;
  top: 0; right: -8%;
  width: 60%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
.orbits svg { width: 100%; height: 100%; overflow: visible; }
.orbit-spin { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.orbit-spin.slow { animation-duration: 110s; animation-direction: reverse; }
.node { animation: pulse 4s ease-in-out infinite; }
.node.b { animation-delay: 1.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Sub-page hero ---------- */
.subhero {
  position: relative;
  padding: 160px 0 70px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.subhero .wrap { position: relative; z-index: 2; }
.subhero .kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 18px;
}
.subhero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.subhero h1 em { color: var(--accent-soft); }
.subhero p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.subhero .orbit-glow {
  position: absolute;
  top: -30%; right: -10%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 206, 0.16), transparent 65%);
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { position: relative; z-index: 2; padding: 100px 0; }
.section.tight { padding: 70px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-head h2 em { color: var(--accent-soft); }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Install block (home) ---------- */
.install {
  position: relative;
  z-index: 2;
  padding: 20px 0 110px;
}
.install-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.install-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.install-copy h2 em { color: var(--accent-soft); }
.install-copy p { color: var(--muted); margin-bottom: 22px; max-width: 380px; }
.install-steps { list-style: none; display: grid; gap: 14px; }
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.95rem;
}
.install-steps li b {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 500;
  flex-shrink: 0;
}

.terminal {
  background: #0c0b0f;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(139, 47, 206, 0.55);
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.terminal .bar span:not(.name) { width: 11px; height: 11px; border-radius: 50%; background: #2a2830; }
.terminal .bar .name {
  margin-left: 12px; color: var(--muted-dim);
  font-size: 0.8rem; font-family: var(--sans);
  white-space: nowrap;
}
.terminal-body { padding: 20px 20px 22px; font-family: var(--mono); font-size: 0.9rem; line-height: 1.55; }
.tline { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.tline .pr { color: var(--accent-soft); user-select: none; }
.tline code { color: #d9d3e2; flex: 1; }
.tline code .cmt { color: var(--muted-dim); }
.copy-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted-dim);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
.copy-btn.done { color: var(--pass); border-color: var(--pass); }
.terminal-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.82rem;
}
.terminal-foot b { color: var(--muted); font-weight: 500; }

/* ---------- Feature cards / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.split-three { grid-template-columns: 1fr 1fr 1fr; }
.split-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 32px 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.split-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 47, 206, 0.5);
  box-shadow: 0 30px 60px -34px rgba(139, 47, 206, 0.6);
}
.split-card .tag {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 14px;
}
.split-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.split-card > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.split-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}
.split-card li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted);
  font-size: 0.92rem;
}
.split-card li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-top: 8px;
  flex-shrink: 0;
}
.split-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: gap 0.22s var(--ease);
}
.split-card:hover .go { gap: 12px; }

/* ---------- Feature rows (alternating text / screenshot) ---------- */
.frow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}
.frow:first-of-type { border-top: none; }
.frow.flip .frow-text { order: 2; }
.frow-text .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.frow-text h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.frow-text p { color: var(--muted); font-size: 0.98rem; margin-bottom: 14px; }
.frow-text p:last-child { margin-bottom: 0; }
.frow-text .mini {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.frow-text .mini span {
  font-size: 0.76rem;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 40px 80px -50px rgba(139, 47, 206, 0.4);
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.shot:hover,
.shot:focus-visible {
  border-color: rgba(139, 47, 206, 0.5);
  box-shadow: 0 40px 80px -46px rgba(139, 47, 206, 0.55);
  outline: none;
}
.shot img { width: 100%; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(6, 5, 9, 0.88);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
}
.shot.pad { padding: 8px; border-radius: 16px; }
.shot.pad img { border-radius: 8px; }

/* ---------- Light mode callout (section-head, gallery) ---------- */
/* A .shot so the same lightbox JS opens it; reset its card styling to a plain
   one-line link and hide the image it carries (only the lightbox shows it). */
.light-mode-link {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  cursor: zoom-in;
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(169, 95, 224, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.light-mode-link:hover,
.light-mode-link:focus-visible {
  color: var(--text);
  border-color: var(--accent-soft);
  outline: none;
}
.light-mode-link .sun-ic { width: 15px; height: 15px; flex-shrink: 0; }
.light-mode-link img { display: none; }

/* ---------- Homepage screenshot gallery ---------- */
/* Compact horizontal filmstrip; edges feathered so it reads as continuing. */
#gallery .section-head { margin-bottom: 30px; }

.gallery { position: relative; margin-top: 28px; }

.gallery-strip {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.gallery-strip:hover::-webkit-scrollbar-thumb { background: var(--accent-deep); }

.gallery-strip .shot {
  flex: 0 0 auto;
  width: clamp(210px, 24vw, 272px);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 10px;
  box-shadow: 0 24px 48px -34px rgba(139, 47, 206, 0.45);
}
.gallery-strip .shot img { display: block; width: 100%; height: auto; }

/* Arrow buttons that page the filmstrip; JS hides each one at its end. */
.strip-nav {
  position: absolute;
  top: calc(50% - 7px);
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 0 0.14em;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  background: rgba(17, 16, 20, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.strip-nav.prev { left: -8px; }
.strip-nav.next { right: -8px; }
.strip-nav:hover {
  background: rgba(139, 47, 206, 0.4);
  border-color: rgba(139, 47, 206, 0.6);
}
.strip-nav[hidden] { display: none; }

/* Lightbox prev / next + close, shown when a gallery shot is enlarged */
.lightbox { flex-direction: column; }
.lightbox img {
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  background: rgba(20, 18, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.lb-nav {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(12px, 3vw);
  pointer-events: none;
}
.lb-nav[hidden] { display: none; }
.lb-nav button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 0 0.16em;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
  background: rgba(20, 18, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.lb-nav button:hover {
  background: rgba(139, 47, 206, 0.35);
  border-color: rgba(139, 47, 206, 0.6);
}
.lb-close:hover { border-color: rgba(139, 47, 206, 0.6); }

/* ---------- Tech strip (Playwright / Cucumber) ---------- */
.tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tech-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 30px;
}
.tech-card .logo {
  width: 64px; height: 64px;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.tech-card .logo img { width: 100%; height: 100%; object-fit: contain; }
.tech-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 5px;
}
.tech-card h4 a { color: inherit; transition: color 0.2s var(--ease); }
.tech-card h4 a:hover { color: var(--accent-soft); }
.tech-card p { color: var(--muted); font-size: 0.9rem; }
.verdict-dot { width: 20px; height: 20px; border-radius: 50%; }
.verdict-testcode { background: var(--accent-soft); box-shadow: 0 0 16px 2px rgba(169, 95, 224, 0.5); }
.verdict-bug { background: #e0607f; box-shadow: 0 0 16px 2px rgba(224, 96, 127, 0.45); }
.verdict-flake { background: #e0b95f; box-shadow: 0 0 16px 2px rgba(224, 185, 95, 0.4); }
.verdict-unknown { background: var(--muted-dim); }

/* ---------- Code / Gherkin showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.code {
  background: #0c0b0f;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(139, 47, 206, 0.5);
}
.code .bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.code .bar span:not(.name) { width: 11px; height: 11px; border-radius: 50%; background: #2a2830; }
.code .bar .name { margin-left: 12px; color: var(--muted-dim); font-size: 0.82rem; font-family: var(--sans); white-space: nowrap; line-height: 1; }
.code pre {
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  color: #cfc9d6;
}
.code .kw { color: var(--accent-soft); }
.code .str { color: #7fd0b0; }
.code .cm { color: var(--muted-dim); font-style: italic; }
.code .ok { color: #7fd0b0; }
.code .no { color: #e0607f; }

/* ---------- Framework tabs (Playwright / Cucumber) ---------- */
/* Wraps a screenshot or code block whose Playwright and Cucumber variants
   are toggled by a small pill bar. Sits in the same grid slot as a .shot. */
.shot-tabs,
.code-tabs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.tabbar {
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  padding: 3px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tab {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--text); background: var(--accent-deep); }
.tab:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.shot-tabs [hidden],
.code-tabs [hidden] { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; z-index: 2;
  margin: 40px auto 0;
  text-align: center;
  padding: 84px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 130% at 50% 0%, rgba(139, 47, 206, 0.12), transparent 60%);
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 16px;
}
.cta-band h2 em { color: var(--accent-soft); }
.cta-band p { color: var(--muted); max-width: 460px; margin: 0 auto 30px; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-aside h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.5rem; margin-bottom: 14px;
}
.contact-aside p { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.contact-aside .direct { display: grid; gap: 12px; }
.contact-aside .direct a {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.contact-aside .direct a:hover { color: var(--text); }
.contact-aside .direct svg { width: 15px; height: 15px; opacity: 0.7; flex-shrink: 0; }

form.contact {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 18px;
}
form.contact .field { display: grid; gap: 7px; }
form.contact label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
form.contact input,
form.contact textarea {
  background: #0c0b0f;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease);
}
form.contact input:focus,
form.contact textarea:focus { outline: none; border-color: var(--accent); }
form.contact textarea { resize: vertical; min-height: 130px; }
form.contact .btn-primary { justify-content: center; margin-top: 4px; }
form.contact .note { font-size: 0.8rem; color: var(--muted-dim); text-align: center; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2;
  padding: 54px 0 64px;
  border-top: 1px solid var(--line-soft);
}
.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .wordmark { font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted-dim); font-size: 0.88rem; transition: color 0.22s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer .copy { color: var(--muted-dim); font-size: 0.84rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .install-grid,
  .split,
  .tech,
  .showcase,
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .frow { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .frow.flip .frow-text { order: 0; }
  .gallery-strip { gap: 12px; }
  .gallery-strip .shot { width: 68vw; }
  .strip-nav { display: none; }
  .orbits { opacity: 0.3; right: -35%; width: 95%; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav.mobile-open {
    flex-wrap: wrap;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 18px 0 8px;
  }
  .nav.mobile-open .nav-links > a,
  .nav.mobile-open .nav-drop { width: 100%; padding: 10px 0; }
  .nav.mobile-open .nav-drop > .drop-trigger { font-size: 1rem; }
  .nav.mobile-open .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 6px 0 0 14px;
    min-width: 0;
  }
  .nav.mobile-open .nav-drop > .drop-trigger .chev { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .split-card, form.contact { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
