/* ============================================================
   REEVES DIGITAL SYSTEMS — Design System
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ---------- Design Tokens ---------- */
:root {
  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Container */
  --container: 1140px;
  --container-narrow: 760px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transition */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 180ms var(--ease);
  --transition-slow: 400ms var(--ease);

  /* Layout */
  --nav-height: 64px;
}

/* Dark mode (default) */
:root,
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-alt: #0e0e11;
  --surface: #131316;
  --surface-2: #18181c;
  --surface-3: #1e1e24;
  --border: #26262e;
  --border-light: #33333c;
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #1d84d8;
  --accent-hover: #3b9ce8;
  --accent-active: #0a6bb8;
  --accent-2: #22d3ee;
  --accent-subtle: rgba(29, 132, 216, 0.12);
  --accent-border: rgba(29, 132, 216, 0.35);
  --glow-1: rgba(29, 132, 216, 0.16);
  --glow-2: rgba(34, 211, 238, 0.1);

  /* Hero visual */
  --visual-line: rgba(255, 255, 255, 0.08);
  --visual-node: rgba(255, 255, 255, 0.25);
  --visual-label: rgba(161, 161, 170, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 20px rgba(29, 132, 216, 0.25);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-border);
}

/* Light mode */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --surface: #f4f4f5;
  --surface-2: #ebebed;
  --surface-3: #e0e0e3;
  --border: #d4d4d8;
  --border-light: #c4c4c8;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --accent: #06529e;
  --accent-hover: #0a6bb8;
  --accent-active: #04417d;
  --accent-2: #0891b2;
  --accent-subtle: rgba(6, 82, 158, 0.08);
  --accent-border: rgba(6, 82, 158, 0.25);
  --glow-1: rgba(6, 82, 158, 0.1);
  --glow-2: rgba(8, 145, 178, 0.07);

  --visual-line: rgba(0, 0, 0, 0.08);
  --visual-node: rgba(0, 0, 0, 0.2);
  --visual-label: rgba(82, 82, 91, 0.5);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 20px rgba(6, 82, 158, 0.18);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--accent-border);
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

strong {
  color: var(--text);
  font-weight: 600;
}

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

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: var(--space-2xl);
  max-width: 640px;
}

.section__head--split {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: end;
}

.section__head--split .section__desc {
  padding-bottom: 0.5rem;
}

.section__title {
  margin-top: var(--space-xs);
}

.section__desc {
  margin-top: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-active));
  color: #fff;
  border-color: var(--accent);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 600ms var(--ease);
  pointer-events: none;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover::after {
  left: 130%;
}

.btn--primary:active {
  background: var(--accent-active);
  transform: translateY(0);
}

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

.btn--ghost:hover {
  border-color: var(--text-tertiary);
  background: var(--surface);
  color: var(--text);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Logo ---------- */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-mark-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text__main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-text__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.85);
}

.nav--scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0 8px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

.nav__toggle--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav__mobile--open {
  display: flex;
}

.nav__mobile a {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child {
  border-bottom: none;
  margin-top: 0.5rem;
  color: #fff;
}

.nav__mobile a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -12%;
  width: 60%;
  height: 90%;
  background: radial-gradient(ellipse at center, var(--glow-1), transparent 65%);
  filter: blur(48px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -8%;
  width: 50%;
  height: 85%;
  background: radial-gradient(ellipse at center, var(--glow-2), transparent 65%);
  filter: blur(48px);
  animation: aurora-drift 20s ease-in-out infinite alternate-reverse;
}

@keyframes aurora-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6%, 8%, 0) scale(1.15);
  }
}

.hero__grid {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.65;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  max-width: 580px;
}

.hero__title {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero__title .accent {
  background: linear-gradient(100deg, var(--accent-hover), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  animation: hero-float 8s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero__visual svg g:first-of-type line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-line 1.4s var(--ease) forwards;
}

.hero__visual svg g:first-of-type line:nth-child(2) { animation-delay: 150ms; }
.hero__visual svg g:first-of-type line:nth-child(3) { animation-delay: 300ms; }
.hero__visual svg g:first-of-type line:nth-child(4) { animation-delay: 450ms; }
.hero__visual svg g:first-of-type line:nth-child(5) { animation-delay: 600ms; }
.hero__visual svg g:first-of-type line:nth-child(6) { animation-delay: 750ms; }
.hero__visual svg g:first-of-type line:nth-child(7) { animation-delay: 900ms; }
.hero__visual svg g:first-of-type line:nth-child(8) { animation-delay: 1050ms; }
.hero__visual svg g:first-of-type line:nth-child(9) { animation-delay: 1200ms; }

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.hero__visual svg circle[r="14"] {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 2.8s ease-in-out infinite;
}

.hero__visual svg circle[r="14"]:last-of-type {
  animation-delay: 1.4s;
}

@keyframes node-pulse {
  0%, 100% {
    transform: scale(1);
    stroke-opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    stroke-opacity: 0.05;
  }
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-item {
  background: var(--bg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  transition: background var(--transition);
}

.service-item:hover {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.service-item:hover .service-item__num {
  color: var(--accent-2);
}

.service-item__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.25rem;
  flex-shrink: 0;
  transition: color var(--transition);
}

.service-item__body h3 {
  margin-bottom: 0.5rem;
}

.service-item__body p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- Portfolio / Selected Work (Tabbed) ---------- */
.work {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.work__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.work__tabs::-webkit-scrollbar {
  height: 4px;
}

.work__tabs::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 2px;
}

.work__tab {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.work__tab:hover {
  color: var(--text-secondary);
  background: var(--surface-2);
}

.work__tab--active {
  color: var(--text);
  border-bottom-color: var(--accent);
  background: var(--bg-alt);
}

.work__tab-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
}

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

.work__panel {
  display: none;
  padding: var(--space-lg);
}

.work__panel--active {
  display: block;
}

.work__panel-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
}

.work__panel-hero {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.work__panel-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.work__panel-logo--svg {
  padding: 6px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
}

.work__panel-category {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.work__panel-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.work__panel-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

.work__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.work__feature {
  background: var(--bg);
  padding: var(--space-md);
  transition: background var(--transition);
}

.work__feature:hover {
  background: var(--surface);
}

.work__feature:hover h4 {
  color: var(--accent-hover);
}

.work__feature h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color var(--transition);
}

.work__feature p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.work__panel-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-left: 1px solid var(--border);
  padding-left: var(--space-lg);
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

.work__panel-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work__panel-meta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.work__panel-meta-value {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  grid-column: 1 / -1;
}

.work__tags span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-tertiary);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}

.work__tags span:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

/* ---------- Free Quote CTA ---------- */
.quote-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.quote-cta .section-label {
  justify-content: center;
}

.quote-cta .section__title {
  margin-top: var(--space-sm);
}

.quote-cta__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: var(--space-lg) 0;
}

.quote-cta__feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}

.quote-cta__feature:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.quote-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.quote-cta__note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

@media (max-width: 600px) {
  .quote-cta__features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing: Dev Packages (legacy, unused) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.price-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent)) border-box;
  position: relative;
  box-shadow: var(--shadow-accent);
}

.price-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.price-card__badge {
  position: absolute;
  top: -0.625rem;
  left: var(--space-lg);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
}

.price-card__head {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.price-card__head h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-card__prefix {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: 0;
}

.price-card__tagline {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.price-card__body {
  flex: 1;
  margin-bottom: var(--space-md);
}

.price-card__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.price-card__label--gap {
  margin-top: var(--space-lg);
}

/* ---------- Feature Lists ---------- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.feature-list--muted li::before {
  background: var(--text-tertiary);
  opacity: 0.5;
}

/* ---------- Support Plans ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.support-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.support-card--featured {
  border-color: var(--accent-border);
}

.support-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.support-card__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.support-card__price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.support-card__note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

/* ---------- Ownership ---------- */
.ownership {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.ownership__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  color: var(--text-secondary);
}

.ownership__list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.ownership-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ownership-items li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

.ownership-items__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---------- Operating Costs ---------- */
.costs-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.cost-row:last-child {
  border-bottom: none;
}

.cost-row:hover {
  background: var(--surface);
}

.cost-row__label {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}

.cost-row__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.cost-row__value span {
  color: var(--text-tertiary);
  font-weight: 400;
}

.costs-summary {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.costs-summary__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--bg);
  padding: var(--space-lg);
  position: relative;
  transition: background var(--transition);
}

[data-theme="light"] .process-step {
  background: var(--bg);
}

.process-step:hover {
  background: var(--surface);
}

.process-step:hover .process-step__num {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.process-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--text-tertiary);
  transition: all var(--transition);
}

.faq-item__icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

.faq-item__icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
  border-radius: 1px;
}

.faq-item[open] .faq-item__icon::after {
  transform: scaleY(0);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
}

.faq-item__answer p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ---------- Final CTA ---------- */
.cta-section {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-1), transparent 70%);
  pointer-events: none;
}

.cta {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.cta__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta__note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ---------- Calendly Embed ---------- */
.calendly-embed {
  margin-top: var(--space-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calendly-inline-widget {
  border-radius: var(--radius-lg);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.footer__tagline {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__contact a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.footer__bottom {
  padding-top: var(--space-md);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero__bg::before,
  .hero__bg::after,
  .hero__visual svg,
  .hero__visual svg g:first-of-type line,
  .hero__visual svg circle[r="14"] {
    animation: none;
  }

  .hero__visual svg g:first-of-type line {
    stroke-dashoffset: 0;
  }

  .btn--primary::after {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero__visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .support-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .ownership {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .work__panel-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .work__panel-meta {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--space-md);
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-xl);
  }

  .work__panel-meta-item {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__actions .btn--sm {
    display: none;
  }

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

@media (max-width: 600px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .cta__actions {
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }

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

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

  .work__panel-meta {
    flex-direction: column;
  }

  .costs-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .price-card__badge {
    left: 1rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 1.25rem;
  }

  .logo-text__sub {
    display: none;
  }
}
