/* Compact project details live inside each phone frame. */
.showcase {
  margin-top: 3.2rem;
}

.showcase-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.showcase-item {
  display: flex;
  justify-content: center;
}

.showcase-device {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 280px;
  min-height: 420px;
  border-radius: 36px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 6px solid #1a1a1a;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.device-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 6px 6px 12px;
  background: linear-gradient(135deg, #0d1a1c, #0f2527);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(71, 213, 196, 0.2);
}

.screen-content {
  width: 100%;
  height: 100%;
  padding: 28px 16px 24px;
  background: linear-gradient(180deg, rgba(13, 26, 28, 0.8), rgba(15, 37, 39, 0.9));
}

.screen-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.preview-icon {
  font-size: 2.2rem;
  line-height: 1.2;
}

.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-home {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: rgba(71, 213, 196, 0.4);
  border-radius: 2px;
}

.showcase-info {
  width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.showcase-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}

.showcase-info h3 {
  margin: 0.5rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
}

.showcase-info p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1rem;
}

.feature-tag {
  padding: 0.3rem 0.5rem;
  background: rgba(71, 213, 196, 0.08);
  border: 1px solid rgba(71, 213, 196, 0.2);
  border-radius: 10px;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

:root {
  --bg: #0d1718;
  --bg-soft: #122325;
  --surface: rgba(22, 37, 39, 0.72);
  --surface-strong: #193133;
  --line: rgba(172, 226, 219, 0.25);
  --text: #eaf7f5;
  --muted: #9fc5c0;
  --accent: #47d5c4;
  --accent-2: #ff9b54;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  
  /* Sector-specific mood colors */
  --mood-primary: #0d1718;
  --mood-accent-1: #47d5c4;
  --mood-accent-2: #ff9b54;
  --mood-transition: 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] {
  --bg: #f6fbff;
  --bg-soft: #edf7ff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --line: rgba(44, 92, 116, 0.18);
  --text: #132a38;
  --muted: #4f6d7b;
  --accent: #1282a2;
  --accent-2: #f78c6b;
  --shadow: 0 14px 32px rgba(21, 54, 71, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(18, 130, 162, 0.1) 0, transparent 45%),
    radial-gradient(circle at 88% 14%, rgba(247, 140, 107, 0.1) 0, transparent 50%),
    linear-gradient(145deg, #f7fcff 0%, #eef8ff 54%, #fbfeff 100%);
}

[data-theme="light"] .noise-layer {
  opacity: 0.02;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(30, 73, 96, 0.2) 1px, transparent 2px);
  mix-blend-mode: normal;
}

[data-theme="light"] .universe-canvas {
  opacity: 0.22;
  filter: saturate(0.7);
}

[data-theme="light"] .hero,
[data-theme="light"] .case-slider-wrap,
[data-theme="light"] .governance-engine-wrap,
[data-theme="light"] .case-comparison,
[data-theme="light"] .case-column,
[data-theme="light"] .phase-proof-card,
[data-theme="light"] .engine-canvas-container,
[data-theme="light"] .ai-chat-panel,
[data-theme="light"] .showcase-device,
[data-theme="light"] .device-screen,
[data-theme="light"] .screen-content,
[data-theme="light"] .showcase-card {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .showcase-device {
  border-color: rgba(37, 82, 101, 0.22);
  box-shadow:
    0 18px 44px rgba(18, 62, 84, 0.14),
    inset 0 0 26px rgba(18, 130, 162, 0.08);
}

[data-theme="light"] .device-notch,
[data-theme="light"] .device-home {
  background: rgba(40, 88, 108, 0.2);
  box-shadow: inset 0 3px 6px rgba(36, 80, 99, 0.18);
}

[data-theme="light"] .ai-chat-input-wrap {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .hero::before {
  background: radial-gradient(circle at 78% 25%, rgba(247, 140, 107, 0.16), transparent 42%);
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(71, 213, 196, 0.16) 0, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(255, 155, 84, 0.17) 0, transparent 50%),
    linear-gradient(135deg, #081112 0%, #101f21 55%, #0f1a1b 100%);
  overflow-x: hidden;
  cursor: default;
}

.universe-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, #000 1px, transparent 2px);
  mix-blend-mode: soft-light;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}

.bg-orb-one {
  width: 22rem;
  height: 22rem;
  background: #2dc9bb;
  top: -5rem;
  right: -7rem;
  animation: floaty 13s ease-in-out infinite;
}

.bg-orb-two {
  width: 20rem;
  height: 20rem;
  background: #ffa46a;
  bottom: -8rem;
  left: -6rem;
  animation: floaty 17s ease-in-out infinite reverse;
}

.site-shell {
  width: min(1140px, 92vw);
  margin: 0 auto;
  padding: 1.2rem 0 3rem;
  position: relative;
  z-index: 2;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0.7rem;
  z-index: 20;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.lang-switch,
.theme-toggle {
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, rgba(18, 130, 162, 0.2), rgba(247, 140, 107, 0.18));
  color: var(--text);
}

[data-theme="light"] .lang-btn.is-active {
  background: linear-gradient(135deg, rgba(18, 130, 162, 0.16), rgba(247, 140, 107, 0.12));
}

.theme-toggle {
  padding: 0 0.78rem;
  cursor: pointer;
}

.theme-toggle:hover,
.lang-switch:hover {
  border-color: var(--accent);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-pulse {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(71, 213, 196, 0.7);
  animation: pulse 2.4s infinite;
}

.brand-name {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-badge {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 200ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.cta-btn,
.btn-primary,
.btn-secondary {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cta-btn {
  color: #06201d;
  background: linear-gradient(135deg, #63e4d6, #fcb57f);
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
}

.hero {
  margin-top: 1.35rem;
  padding: clamp(2rem, 6vw, 4.3rem);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(19, 34, 36, 0.92), rgba(20, 34, 35, 0.65));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 25%, rgba(255, 155, 84, 0.14), transparent 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  z-index: 1;
  transition: opacity 420ms ease;
}

.neural-canvas.is-loading {
  opacity: 0.45;
  filter: saturate(0.8) blur(0.8px);
}

.neural-canvas.is-three {
  opacity: 0.98;
  mix-blend-mode: screen;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.hero h1,
.section-head h2,
.contact-panel h2 {
  font-family: "Sora", sans-serif;
}

.hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.07;
  max-width: 15ch;
}

.hero-copy {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.82rem 1.2rem;
  font-size: 0.92rem;
}

.btn-primary {
  color: #052724;
  background: linear-gradient(145deg, #6ee2d6, #f7b789);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-primary:hover,
.btn-secondary:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.magnetic {
  will-change: transform;
}

.hero-meta {
  margin-top: 1.4rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.9rem;
}

/* Interactive hero terms */
.hero-term {
  position: relative;
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  transition: all 200ms ease;
  display: inline-block;
}

.hero-term::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.4;
  transform: scaleX(1);
  transition: opacity 200ms ease;
}

.hero-term:hover {
  text-shadow: 0 0 12px rgba(71, 213, 196, 0.5);
  color: var(--accent-2);
}

.hero-term:hover::after {
  opacity: 0.8;
  text-shadow: 0 0 8px rgba(255, 155, 84, 0.6);
}

.positioning {
  margin-top: 1.2rem;
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.positioning-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
}

.positioning-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.7;
}

.positioning-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.positioning-detail {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section-block {
  margin-top: 2.8rem;
}

.section-block,
.positioning {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.story-chapter {
  will-change: transform, opacity;
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-card,
.gov-card,
.timeline-item,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1rem;
}

.feature-card h3,
.gov-card h3,
.timeline-item h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

.feature-card ul,
.gov-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.governance-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0.8rem;
}

/* Governance Engine */
.governance-engine-wrap {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(19, 34, 36, 0.5), rgba(22, 37, 39, 0.4));
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.engine-canvas-container {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(71, 213, 196, 0.06), transparent 70%);
  overflow: hidden;
  border: 1px solid rgba(71, 213, 196, 0.2);
}

.governance-engine {
  width: 100%;
  height: 100%;
  display: block;
}

.engine-center-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.core-label {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 24px rgba(71, 213, 196, 0.15);
  letter-spacing: 0.05em;
}

.engine-phases {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.engine-phase {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(71, 213, 196, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: all 300ms ease;
  position: relative;
  width: 100%;
  text-align: left;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}

.engine-phase::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 8px 0 0 8px;
  opacity: 0.6;
  animation: phaseGlow 2s ease-in-out infinite;
}

@keyframes phaseGlow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.engine-phase:hover {
  background: rgba(71, 213, 196, 0.15);
  transform: translateX(4px);
}

.engine-phase[aria-expanded="true"] {
  background: rgba(71, 213, 196, 0.2);
  border-left-color: var(--accent-2);
  transform: translateX(4px);
}

.phase-focus {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.phase-proof-card {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(71, 213, 196, 0.28);
  background: rgba(8, 17, 18, 0.65);
}

.phase-proof-card.is-active {
  display: block;
}

.phase-proof-card[hidden] {
  display: none !important;
}

.proof-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.phase-proof-card h4 {
  margin: 0.5rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
}

.proof-description {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.proof-metric {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.proof-metric-value {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  color: var(--accent-2);
  font-weight: 700;
}

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

.proof-list {
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.proof-list li {
  margin: 0.32rem 0;
  line-height: 1.45;
  font-size: 0.87rem;
}

.phase-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  position: relative;
  flex-shrink: 0;
  animation: rotatePulse 3s linear infinite;
}

@keyframes rotatePulse {
  from {
    transform: rotate(0deg);
    opacity: 0.6;
  }
  to {
    transform: rotate(360deg);
    opacity: 0.3;
  }
}

.phase-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.phase-num {
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.phase-title {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Responsive governance engine */
@media (max-width: 1024px) {
  .governance-engine-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .engine-canvas-container {
    max-width: 300px;
  }
}

.gov-card {
  padding: 1rem;
}

.gov-card p,
.timeline-item p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.timeline-wrap {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline-item {
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: auto -15% -58% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 213, 196, 0.2), transparent 72%);
}

.timeline-phase {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.contact-panel {
  padding: clamp(1rem, 4vw, 2rem);
}

/* Case Studies Slider */
.case-studies {
  margin-top: 3.2rem;
}

.section-subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 60ch;
}

.case-slider-wrap {
  margin-top: 2rem;
  position: relative;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 26, 28, 0.78), rgba(15, 24, 26, 0.58));
}

.case-slider-wrap.is-linked-highlight {
  animation: linkedPulse 700ms ease;
}

@keyframes linkedPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(71, 213, 196, 0);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(71, 213, 196, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(71, 213, 196, 0);
  }
}

.case-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.case-slide {
  display: none;
  opacity: 0;
  animation: slideInFade 600ms ease-out forwards;
}

.case-slide[data-active="true"] {
  display: block;
  opacity: 1;
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.case-header {
  padding: 1.15rem 1.2rem 0.9rem;
  background: rgba(20, 36, 38, 0.72);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}

.case-sector {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.case-header h3 {
  margin: 0.4rem 0 0;
  font-family: "Sora", sans-serif;
  font-size: 1.22rem;
  color: var(--text);
}

.case-title-note {
  margin: 0.42rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.case-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(10, 19, 20, 0.62), rgba(18, 32, 34, 0.48));
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}

.case-column {
  position: relative;
  background: rgba(9, 18, 20, 0.55);
  border: 1px solid rgba(172, 226, 219, 0.2);
  border-radius: 12px;
  padding: 0.92rem;
}

.column-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.8rem;
  background: rgba(71, 213, 196, 0.1);
  border-radius: 999px;
  border: 1px solid rgba(71, 213, 196, 0.3);
  width: fit-content;
}

.column-badge.success {
  background: rgba(46, 184, 158, 0.15);
  border-color: rgba(46, 184, 158, 0.4);
}

.badge-icon {
  font-size: 1.3rem;
}

.badge-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.case-column h4 {
  margin: 0 0 0.8rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.case-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: none;
}

.case-list li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.case-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.case-list.results li {
  color: #9fc5c0;
}

.case-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
}

.arrow-icon {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 213, 196, 0.45);
  color: var(--accent);
  background: rgba(71, 213, 196, 0.1);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.case-metric {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(71, 213, 196, 0.2);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  background: linear-gradient(135deg, #2eb89e, #47d5c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.case-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
  padding: 0.8rem 0 0.1rem;
}

.case-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 200ms ease;
}

.case-nav:hover {
  background: var(--surface-strong);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.case-nav:active {
  transform: scale(0.95);
}

.case-indicators {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.case-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.case-indicator:hover {
  background: rgba(71, 213, 196, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.case-indicator[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #052724;
}

.indicator-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  border-radius: 50%;
}

.indicator-label {
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .case-divider {
    display: flex;
    padding: 0.5rem 0;
    min-height: 2rem;
  }

  .arrow-icon {
    font-size: 1.5rem;
    transform: rotate(90deg);
  }

  .case-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .case-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .case-indicators {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

  /* AI Chat Widget */
  .ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: "Manrope", sans-serif;
  }

  .ai-chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #47d5c4, #ff9b54);
    border: none;
    border-radius: 50px;
    color: #052724;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 300ms ease;
    box-shadow: 0 8px 24px rgba(71, 213, 196, 0.3);
    will-change: transform, box-shadow;
  }

  .ai-chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(71, 213, 196, 0.4);
  }

  .ai-chat-toggle:active {
    transform: translateY(0);
  }

  .ai-chat-toggle.is-active {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .chat-icon {
    font-size: 1.2rem;
  }

  .ai-chat-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 600px;
    background: linear-gradient(180deg, rgba(13, 23, 24, 0.98), rgba(15, 30, 32, 0.98));
    border: 1px solid var(--line);
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 20px));
    opacity: 0;
    pointer-events: none;
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
  }

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

  .ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
  }

  .ai-chat-header h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    color: var(--text);
  }

  .ai-chat-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 200ms ease;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ai-chat-close:hover {
    color: var(--text);
  }

  .ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scroll-behavior: smooth;
  }

  .ai-message {
    display: flex;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
  }

  .bot-message {
    background: rgba(71, 213, 196, 0.15);
    border-left: 3px solid var(--accent);
    color: var(--muted);
    align-self: flex-start;
  }

  .bot-message p {
    margin: 0;
    color: var(--muted);
  }

  .bot-message a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(71, 213, 196, 0.45);
  }

  .bot-message a:hover {
    color: var(--text);
    border-bottom-color: var(--accent-2);
  }

  .user-message {
    background: linear-gradient(135deg, rgba(71, 213, 196, 0.25), rgba(255, 155, 84, 0.1));
    border-left: 3px solid var(--accent-2);
    color: var(--text);
    align-self: flex-end;
    max-width: 85%;
  }

  .user-message p {
    margin: 0;
    color: var(--text);
  }

  .typing span {
    animation: blink 1.4s infinite;
    margin-left: 0.1rem;
  }

  .typing span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .typing span:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes blink {
    0%, 60%, 100% {
      opacity: 0.5;
    }
    30% {
      opacity: 1;
    }
  }

  .ai-quick-prompts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.2rem;
    border-top: 1px solid rgba(71, 213, 196, 0.15);
    padding-top: 1rem;
  }

  .quick-prompt {
    padding: 0.65rem 1rem;
    background: rgba(71, 213, 196, 0.08);
    border: 1px solid rgba(71, 213, 196, 0.3);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 200ms ease;
    text-align: left;
    font-weight: 500;
  }

  .quick-prompt:hover {
    background: rgba(71, 213, 196, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateX(2px);
  }

  .ai-chat-input-wrap {
    display: flex;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 20px 20px;
  }

  .ai-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(71, 213, 196, 0.2);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    font-family: "Manrope", sans-serif;
    transition: all 200ms ease;
  }

  .ai-chat-input::placeholder {
    color: var(--muted);
    opacity: 0.6;
  }

  .ai-chat-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(71, 213, 196, 0.1);
  }

  .ai-chat-send {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #47d5c4, #ff9b54);
    border: none;
    border-radius: 8px;
    color: #052724;
    font-weight: 700;
    cursor: pointer;
    transition: all 200ms ease;
    font-size: 1rem;
  }

  .ai-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(71, 213, 196, 0.3);
  }

  .ai-chat-send:active {
    transform: scale(0.95);
  }

  /* Responsive chat widget */
  @media (max-width: 480px) {
    .ai-chat-widget {
      bottom: 1rem;
      right: 1rem;
    }

    .ai-chat-panel {
      max-width: 100%;
      max-height: 70vh;
      border-radius: 16px;
    }

    .ai-chat-toggle {
      padding: 0.8rem 1rem;
      font-size: 0.8rem;
    }

    .chat-label {
      display: none;
    }
  }

.contact-list p {
  margin: 0.26rem 0;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(159, 197, 192, 0.45);
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-list a:visited {
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-list a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-bottom-color: transparent;
}

.divider {
  color: var(--muted);
  margin: 0 0.18rem;
}

.contact-list strong {
  color: var(--text);
}

.contact-note {
  font-size: 0.86rem;
  opacity: 0.88;
}

.inquiry-shell {
  padding-bottom: 4rem;
}

.inquiry-panel {
  max-width: 860px;
  margin: 0 auto;
}

.inquiry-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inquiry-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

.inquiry-form input,
.inquiry-form textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.82rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(71, 213, 196, 0.15);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 140px;
}

.inquiry-form .btn-primary {
  margin-top: 0.2rem;
  border: none;
  cursor: pointer;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 80;
  margin-left: -8px;
  margin-top: -8px;
  background: radial-gradient(circle, rgba(111, 232, 222, 0.9), rgba(111, 232, 222, 0.15));
  box-shadow: 0 0 18px rgba(71, 213, 196, 0.45);
  transition: transform 120ms ease, width 180ms ease, height 180ms ease, margin 180ms ease;
}

.cursor-follower.is-active {
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 560ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(71, 213, 196, 0.65);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(71, 213, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(71, 213, 196, 0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .cta-btn {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .positioning-grid,
  .feature-grid,
  .timeline-wrap {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 640px) {
  .site-shell {
    width: min(100%, 94vw);
    padding-top: 0.8rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .positioning-grid,
  .feature-grid,
  .timeline-wrap {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (pointer: coarse) {
  .cursor-follower {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb-one,
  .bg-orb-two {
    animation: none;
  }

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