:root {
  color-scheme: light;
  --bg: #f6f6f8;
  --bg-soft: #ffffff;
  --ink: #0d0f12;
  --muted: #5b6068;
  --line: rgba(14, 18, 22, 0.12);
  --accent: #d31222;
  --accent-strong: #ff263a;
  --accent-soft: rgba(211, 18, 34, 0.12);
  --graphite: #171a1f;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 20px 60px rgba(18, 24, 33, 0.1);
  --shadow-strong: 0 30px 80px rgba(18, 24, 33, 0.18);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-display: "Space Grotesk", sans-serif;
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(211, 18, 34, 0.08), transparent 40%),
    linear-gradient(0deg, transparent 24%, rgba(15, 20, 25, 0.04) 25%, rgba(15, 20, 25, 0.04) 26%, transparent 27%, transparent 74%, rgba(15, 20, 25, 0.04) 75%, rgba(15, 20, 25, 0.04) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(15, 20, 25, 0.04) 25%, rgba(15, 20, 25, 0.04) 26%, transparent 27%, transparent 74%, rgba(15, 20, 25, 0.04) 75%, rgba(15, 20, 25, 0.04) 76%, transparent 77%, transparent);
  background-size: 100% 100%, 100% 100%, 80px 80px, 80px 80px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

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

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(211, 18, 34, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(211, 18, 34, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: rgba(211, 18, 34, 0.3);
  box-shadow: 0 12px 30px rgba(18, 24, 33, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(14, 18, 22, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(211, 18, 34, 0.6);
}

.nav-panel {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-panel a {
  position: relative;
  padding-bottom: 4px;
}

.nav-panel a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-panel a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: var(--graphite);
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  padding: 140px 0 100px;
}

.hero[data-variant="startup"] {
  --accent: #ff1f36;
  --accent-strong: #ff4b60;
  --accent-soft: rgba(255, 31, 54, 0.16);
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.04);
  border: 1px solid rgba(15, 20, 25, 0.08);
  margin-bottom: 20px;
  gap: 8px;
}

.chip {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(14, 18, 22, 0.12);
}

.hero-bullets {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
}

.hero-bullets li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.hero-bullets li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 6px;
  box-shadow: 0 0 12px rgba(211, 18, 34, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.metric {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 20, 25, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.metric-value {
  font-family: var(--font-mono);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-scene {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 242, 0.95));
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 35%, rgba(255, 255, 255, 0.9), transparent 50%);
  opacity: 0.9;
}

.scene-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.hero-scene .scene-layer {
  transform: translate3d(var(--parallax-x, 0px), var(--parallax-y, 0px), 0);
}

.layer-orbit {
  width: var(--orbit-size, 340px);
  height: var(--orbit-size, 340px);
  top: calc(50% - var(--orbit-size, 340px) / 2);
  left: calc(52% - var(--orbit-size, 340px) / 2);
}

.scene-orbit {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(15, 20, 25, 0.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(240, 240, 242, 0.2));
  box-shadow: inset 0 0 40px rgba(15, 20, 25, 0.08);
}

.layer-core {
  width: var(--core-size, 200px);
  height: var(--core-size, 200px);
  top: calc(50% - var(--core-size, 200px) / 2);
  left: calc(52% - var(--core-size, 200px) / 2);
}

.scene-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(15, 20, 25, 0.1);
  box-shadow: 0 0 50px rgba(211, 18, 34, 0.25);
  animation: glow 4s ease-in-out infinite;
}

.layer-panel {
  width: 240px;
  height: 150px;
  top: 60px;
  left: 40px;
}

.scene-panel {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 20, 25, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.18em;
}

.panel-line {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 20, 25, 0.08), rgba(15, 20, 25, 0.2));
}

.panel-line.short {
  width: 65%;
}

.panel-metrics {
  display: grid;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.layer-cube {
  width: var(--cube-size, 120px);
  height: var(--cube-size, 120px);
  right: 70px;
  bottom: 60px;
}

.scene-cube {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(15, 20, 25, 0.08));
  border: 1px solid rgba(15, 20, 25, 0.12);
  transform: rotate(45deg);
  box-shadow: 0 20px 40px rgba(15, 20, 25, 0.12);
}

.layer-path {
  width: 280px;
  height: 6px;
  top: 58%;
  left: 12%;
}

.scene-path {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(211, 18, 34, 0.5), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.layer-dot {
  width: 18px;
  height: 18px;
  top: 32%;
  right: 22%;
}

.scene-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(211, 18, 34, 0.5);
}

.hero-caption {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

section {
  padding: 96px 0;
  scroll-margin-top: 96px;
}

.stats-grid,
.feature-grid,
.services-grid,
.case-grid {
  display: grid;
  gap: 24px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.feature-card {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.service-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.service-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--accent);
}

.service-result {
  color: var(--muted);
}

.service-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.service-cols h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--graphite);
}

.service-cols ul {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.case-metric {
  font-family: var(--font-mono);
  color: var(--accent);
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.case-card ul {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.process-list h3 {
  font-family: var(--font-display);
  margin-bottom: 6px;
}

.process-list p {
  color: var(--muted);
}

.stack-grid {
  display: grid;
  gap: 24px;
}

.stack-block {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.stack-block h3 {
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-grid .chip {
  background: rgba(15, 20, 25, 0.04);
  border: 1px solid rgba(15, 20, 25, 0.08);
  color: var(--graphite);
  cursor: default;
}

.packages {
  position: relative;
}

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

.pricing-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.pricing-sub {
  color: var(--muted);
}

.pricing-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.pricing-card ul {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-card.is-featured {
  border-color: rgba(211, 18, 34, 0.3);
  box-shadow: 0 24px 50px rgba(211, 18, 34, 0.18);
}

.custom-callout {
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(211, 18, 34, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-soft);
}

.custom-callout h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.custom-callout p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-list p {
  margin-top: 10px;
  color: var(--muted);
}

.final-cta {
  padding-bottom: 120px;
}

.cta-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 248, 0.95));
  border: 1px solid rgba(15, 20, 25, 0.08);
  box-shadow: var(--shadow-strong);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 12px;
}

.cta-aside {
  display: grid;
  gap: 16px;
}

.cta-tile {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 20, 25, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.cta-tile h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.cta-tile ul {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 60px 0;
  border-top: 1px solid rgba(15, 20, 25, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

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

.logo-footer {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(211, 18, 34, 0.2);
  }
  50% {
    box-shadow: 0 0 60px rgba(211, 18, 34, 0.35);
  }
}

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

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

  .hero-visual {
    order: -1;
  }

  .hero {
    padding-top: 120px;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-panel {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 20, 25, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }

  .nav-open .nav-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

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

  .container {
    padding: 0 18px;
  }

  .header-inner {
    padding: 14px 0;
  }

  .logo {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }

  .nav-panel {
    top: 70px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .hero {
    padding: 110px 0 80px;
  }

  section {
    padding: 72px 0;
    scroll-margin-top: 86px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .hero-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-scene {
    height: 360px;
  }

  .layer-panel {
    left: 20px;
    top: 40px;
  }

  .layer-cube {
    right: 40px;
    bottom: 40px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric {
    padding: 12px 14px;
  }

  .feature-card,
  .service-card,
  .case-card,
  .pricing-card,
  .stack-block,
  .stat-card,
  .faq-list details {
    padding: 18px;
  }

  .service-head {
    flex-direction: column;
  }

  .case-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .custom-callout {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-card {
    padding: 24px;
  }

  .site-footer {
    padding: 48px 0;
  }

  .footer-inner {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-panel {
    left: 12px;
    right: 12px;
  }

  .header-actions .btn-primary {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 100px 0 72px;
  }

  .hero-scene {
    height: 300px;
    --orbit-size: 240px;
    --core-size: 150px;
    --cube-size: 80px;
  }

  .layer-panel {
    width: 200px;
    height: 120px;
    left: 16px;
    top: 28px;
  }

  .layer-cube {
    right: 24px;
    bottom: 28px;
  }

  .layer-path {
    width: 220px;
    left: 8%;
  }

  .hero-toggle {
    padding: 4px;
  }

  .chip {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .hero-bullets {
    margin: 20px 0 24px;
  }

  .hero-bullets li {
    padding-left: 22px;
    font-size: 0.95rem;
  }

  .hero-caption {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 12px 0;
  }

  .logo {
    letter-spacing: 0.12em;
  }

  .nav-panel {
    top: 64px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.6rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-scene {
    height: 260px;
    --orbit-size: 210px;
    --core-size: 130px;
    --cube-size: 70px;
  }

  .layer-panel {
    width: 180px;
    height: 110px;
  }

  .panel-metrics {
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
