/* ControlBytes, LLC — site stylesheet */

:root {
  --bg: #0a0b0d;
  --bg-alt: #131418;
  --bg-card: #17181d;
  --border: #24262c;
  --text: #f2f2f0;
  --text-muted: #9a9ba1;
  --accent: #2dd4bf;
  --accent-dim: #1a8f82;
  --accent-text: #04211d;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo .caret { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-family: var(--mono);
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { display: block; }
  .nav-links a {
    display: block;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-toggle { display: block; min-width: 48px; min-height: 44px; padding: 10px 14px; }
}

/* Hero */

.hero {
  padding: 120px 0 96px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 16ch;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover { background: #5eead4; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */

section { padding: 88px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

.section-head { max-width: 640px; margin-bottom: 48px; }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 16px;
}

.section-head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.section-head p + p { margin-top: 18px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.card .num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

.markets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.markets .card h3 { color: var(--accent); font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }

.diff-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.diff-list li {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.diff-list strong { display: block; margin-bottom: 6px; }
.diff-list span { color: var(--text-muted); font-size: 0.95rem; }

/* App teaser (home page) */

.app-teaser {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.app-teaser h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.app-teaser p { color: var(--text-muted); margin: 0; max-width: 48ch; }

/* App hub cards */

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card .tag.status-live { color: var(--accent); border-color: var(--accent-dim); }
.app-card .tag.status-soon { color: #f2c94c; border-color: #7a6320; }

.app-card p { flex-grow: 1; }

.app-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 20px;
}

.app-card .card-link:hover { color: #5eead4; }

.app-card.coming-soon { opacity: 0.6; }

/* Process steps ("How We Work") */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.process li {
  counter-increment: step;
  border-top: 2px solid var(--accent-dim);
  padding-top: 20px;
}

.process li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

.process h3 { font-size: 1.05rem; margin: 0 0 8px; }
.process p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Capabilities tag cloud */

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.capabilities span {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}


/* Status badge (app page) */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: rgba(45, 212, 191, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Feature list (app page) */

.feature {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.feature:first-child { border-top: none; }

.feature .icon {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  width: 28px;
}

.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); }

/* Privacy note box */

.note-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 40px;
}

.note-box p { color: var(--text-muted); margin: 0; }
.note-box p + p { margin-top: 12px; }

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.contact-item .label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-item a, .contact-item div.value {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.contact-item a:hover { color: var(--accent); }

/* Legal pages */

.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 44px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); }
.legal .updated { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 8px; }
.legal ul { padding-left: 20px; }

/* Footer */

footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col .footer-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

/* ============================= */
/* Ambient background            */
/* ============================= */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black 30%, transparent 85%);
}

.bg-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.28;
  will-change: transform;
}

.bg-glow-a { background: var(--accent); top: -180px; left: -140px; animation: float-a 20s ease-in-out infinite; }
.bg-glow-b { background: #6d5ef0; bottom: -220px; right: -160px; opacity: 0.18; animation: float-b 24s ease-in-out infinite; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, 50px); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, -40px); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none; }
}

/* ============================= */
/* Scroll reveal                 */
/* ============================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================= */
/* Header scroll state           */
/* ============================= */

header.scrolled { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }

/* ============================= */
/* Hero split layout + terminal  */
/* ============================= */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

.terminal {
  background: #0d0e12;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #141519;
  border-bottom: 1px solid var(--border);
}

.terminal-bar .tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot.red { background: #ff5f57; }
.tdot.yellow { background: #febc2e; }
.tdot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
}

.terminal-body .kw { color: var(--accent); }
.terminal-body .val { color: #f2c94c; }
.terminal-body .cmt { color: #5c5e66; }

.blink-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ============================= */
/* Icon badges (service cards)   */
/* ============================= */

.card { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }

.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-badge svg { width: 22px; height: 22px; }

.app-card:hover .icon-badge {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.35);
}

.icon-badge.round {
  border-radius: 50%;
  margin-bottom: 0;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}


/* ============================= */
/* Stats bar                     */
/* ============================= */

.stats-bar {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat .value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  font-weight: 700;
}

.stat .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================= */
/* Buttons: shine on hover        */
/* ============================= */

.btn-primary { position: relative; overflow: hidden; }

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after { opacity: 1; }

/* Pulsing status dot */

.status-badge .dot { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0); }
}

/* ============================= */
/* Phone mockup (AVDoc page)      */
/* ============================= */

.phone { width: 260px; margin: 0 auto; }

.phone-screen {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 22px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.phone-topbar {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-topbar .caret { color: var(--accent); }

.phone-row, .phone-card {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--border) 25%, #2a2c32 37%, var(--border) 63%);
  background-size: 400% 100%;
  animation: shimmer 2.2s infinite linear;
}

.phone-row { height: 12px; margin-bottom: 10px; }
.phone-card { height: 64px; margin: 16px 0; border-radius: 10px; }

.phone-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-row, .phone-card { animation: none; }
}

/* ============================= */
/* Boot overlay                  */
/* ============================= */

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.boot-overlay.hide { opacity: 0; pointer-events: none; }
.boot-overlay.skip { display: none; }

.boot-lines {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  min-width: 280px;
}

.boot-lines div {
  opacity: 0;
  transform: translateY(6px);
  animation: boot-in 0.35s ease forwards;
}

@keyframes boot-in {
  to { opacity: 1; transform: none; }
}

.boot-lines .dim { color: var(--text-muted); }

/* ============================= */
/* 404 page                      */
/* ============================= */

.error-code {
  font-family: var(--mono);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  position: relative;
  color: var(--text);
}

.error-code.glitch {
  animation: glitch-shift 3.2s infinite;
}

.error-code.glitch::before,
.error-code.glitch::after {
  content: "404";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.error-code.glitch::before {
  color: #ff5f8f;
  animation: glitch-clip-a 3.2s infinite;
  transform: translate(-3px, 0);
}

.error-code.glitch::after {
  color: #2dd4bf;
  animation: glitch-clip-b 3.2s infinite;
  transform: translate(3px, 0);
}

@keyframes glitch-shift {
  0%, 92%, 100% { transform: translate(0, 0); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); }
}

@keyframes glitch-clip-a {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; }
  93% { clip-path: inset(10% 0 60% 0); opacity: 0.8; }
  94% { clip-path: inset(60% 0 5% 0); opacity: 0.8; }
  96% { clip-path: inset(30% 0 40% 0); opacity: 0.6; }
  97% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

@keyframes glitch-clip-b {
  0%, 91%, 100% { clip-path: inset(0 0 100% 0); opacity: 0; }
  92% { clip-path: inset(70% 0 5% 0); opacity: 0.8; }
  94% { clip-path: inset(15% 0 55% 0); opacity: 0.7; }
  96% { clip-path: inset(45% 0 20% 0); opacity: 0.6; }
  97% { clip-path: inset(0 0 100% 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .error-code.glitch { animation: none; }
  .error-code.glitch::before,
  .error-code.glitch::after { display: none; }
}

.error-scanlines {
  position: relative;
  overflow: hidden;
}

.error-scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

/* ============================= */
/* App icon display              */
/* ============================= */

.app-icon-display {
  position: relative;
  width: 220px;
  margin: 0 auto;
}

.app-icon-display .glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--app-glow, rgba(124, 58, 237, 0.45)), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.app-icon-display img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 22%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.app-icon-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}


/* ============================= */
/* Showcase / featured work      */
/* ============================= */

.shot { margin: 0; }

.shot a { display: block; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.shot a:hover img { border-color: var(--accent-dim); transform: translateY(-3px); }

.shot figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 28px;
}

@media (max-width: 720px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.work-feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .work-feature { grid-template-columns: 1fr; gap: 28px; }
}

.work-feature h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.work-feature p { color: var(--text-muted); margin: 0 0 24px; }

.fine-print {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 78ch;
  margin: 0;
}

/* Flow diagram (custom software story) */
.flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  flex: 1;
  padding: 16px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
}

.flow li strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.flow li span { color: var(--text-muted); }
.flow li.ours { border-color: var(--accent-dim); }
.flow li + li::before {
  content: "\2192";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dim);
  background: var(--bg, #0a0b0d);
  line-height: 1;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .flow { flex-direction: column; gap: 18px; }
  .flow li + li::before { content: "\2193"; left: 50%; top: -15px; transform: translateX(-50%); }
}

/* Concept-preview frame (platform page) */
.concept-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.platform-hero-shot { margin: 0; }
.platform-hero-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.platform-hero-shot figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--text-muted); }

.status-badge.soon { color: #f2c94c; border-color: #7a6320; }
.status-badge.soon .dot { background: #f2c94c; }

/* Static fact row (no count-up) */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.fact .value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  font-weight: 700;
}
.fact .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Whole app card is the link (hover effects only on things that click) */
.app-card { position: relative; cursor: pointer; }
.app-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card .card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Collapsible detail panels (showcase) */
.more { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
.more summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.more[open] summary::after { content: "\2212"; }
.more[open] summary { border-bottom: 1px solid var(--border); }
.more { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.more:hover, .more[open] { border-color: var(--accent); }
.more:hover { box-shadow: 0 0 24px rgba(45, 212, 191, 0.12); }
.more summary { transition: background 0.2s ease; border-radius: 10px; }
.more summary:hover { background: rgba(45, 212, 191, 0.06); }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-body { padding: 8px 22px 24px; }
.more-intro { color: var(--text-muted); margin: 18px 0; max-width: 70ch; }

/* Contact page: topic cards and form */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.topic-card {
  display: flex; flex-direction: column; justify-content: flex-start;
  text-align: left; cursor: pointer; font: inherit; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.topic-card:hover, .topic-card.selected { border-color: var(--accent); }
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 0 24px rgba(45, 212, 191, 0.12); }
.topic-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.topic-card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }
.topic-card:focus-visible, .contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form { max-width: 680px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.contact-form label { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.contact-form .field { margin-bottom: 22px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px;
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f87171; }
@media (max-width: 600px) { .contact-form { padding: 22px; } }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 6px; font-family: var(--mono); font-size: 0.85rem;
  text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
