:root {
  color-scheme: dark;
  --bg: #04070b;
  --bg-1: #08111a;
  --bg-2: #0d1925;
  --panel: rgba(11, 21, 33, 0.78);
  --text: #ebf8ff;
  --text-soft: #acc8d8;
  --text-dim: #7893a6;
  --cyan: #24d7ff;
  --lime: #a8ff1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ebf8ff;
  line-height: 1.6;
  background: radial-gradient(circle at 15% 10%, rgba(36, 215, 255, 0.12), transparent 24%), radial-gradient(circle at 82% 22%, rgba(168, 255, 31, 0.08), transparent 18%), linear-gradient(180deg, #020406 0%, #05090d 42%, #08111a 100%);
}

body.home-sci-fi,
body.sci-page {
  background: radial-gradient(circle at 14% 14%, rgba(36, 215, 255, 0.14), transparent 24%), radial-gradient(circle at 84% 20%, rgba(168, 255, 31, 0.08), transparent 16%), linear-gradient(90deg, rgba(36, 215, 255, 0.12) 0 4%, transparent 4% 12%, rgba(36, 215, 255, 0.06) 12% 16%, transparent 16% 100%), linear-gradient(180deg, #020406 0%, #06101a 38%, #050b13 100%);
}

body.home-sci-fi::before,
body.sci-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(36, 215, 255, 0.08), transparent 36%), radial-gradient(circle at 70% 70%, rgba(168, 255, 31, 0.04), transparent 24%);
  opacity: 0.9;
}

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

p {
  margin: 0 0 1rem;
  color: #acc8d8;
}

h1, h2, h3 {
  margin: 0 0 1rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ebf8ff;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.7rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

strong {
  color: #ebf8ff;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #acc8d8;
}

li + li {
  margin-top: 0.45rem;
}

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

.container {
  position: relative;
  width: min(100% - 1.5rem, 1240px);
  margin-inline: auto;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    width: min(100% - 3rem, 1240px);
  }
}
@media (min-width: 1024px) {
  .container {
    width: min(100% - 4rem, 1240px);
  }
}

.narrow {
  max-width: 860px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.two-col {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
}

.section {
  position: relative;
  padding: 4.5rem 0;
}
@media (max-width: 767px) {
  .section {
    padding: 3.25rem 0;
  }
}

.section-alt {
  background: linear-gradient(180deg, rgba(9, 17, 27, 0.5), rgba(7, 13, 21, 0.1));
}

.section-dark {
  background: linear-gradient(180deg, rgba(5, 11, 17, 0.8), rgba(5, 10, 16, 0.96));
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: #24d7ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.16rem);
  max-width: 62ch;
  color: #c6dcea;
}

.fine-print {
  color: #7893a6;
  font-size: 0.92rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 8, 14, 0.72);
  border-bottom: 1px solid rgba(36, 215, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}
@media (max-width: 767px) {
  .header-inner {
    min-height: 68px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  color: #05131a;
  background: linear-gradient(135deg, #24d7ff 0%, #73edff 52%, #a8ff1f 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 28px rgba(36, 215, 255, 0.22);
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.site-nav a {
  color: #acc8d8;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  transition: 0.18s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: #ebf8ff;
  background: rgba(36, 215, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(36, 215, 255, 0.14);
}
@media (max-width: 767px) {
  .site-nav {
    display: none;
  }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem;
    background: rgba(9, 18, 30, 0.92);
    border: 1px solid rgba(36, 215, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  }
  .site-nav.open a {
    border-radius: 12px;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.nav-toggle:hover {
  transform: translateY(-1px);
}
.nav-toggle {
  min-height: 42px;
  padding: 0.75rem 0.95rem;
  color: #24d7ff;
  background: rgba(10, 18, 28, 0.92);
  border-color: rgba(36, 215, 255, 0.18);
}
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.button:hover {
  transform: translateY(-1px);
}
.button {
  background: linear-gradient(135deg, #a8ff1f, #d5ff6e);
  color: #041018;
  box-shadow: 0 0 22px rgba(168, 255, 31, 0.14);
}

.button-secondary {
  background: rgba(36, 215, 255, 0.08);
  color: #24d7ff;
  border-color: rgba(36, 215, 255, 0.22);
  box-shadow: 0 0 22px rgba(36, 215, 255, 0.14);
}

.button-ghost {
  background: transparent;
  color: #acc8d8;
  border-color: rgba(36, 215, 255, 0.12);
}

.small-button {
  min-height: 42px;
  padding: 0.75rem 1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .button {
    width: 100%;
  }
}
.card {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(36, 215, 255, 0.75), rgba(168, 255, 31, 0.28), transparent 80%);
}

.hero-card {
  padding: 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #a8ff1f;
  box-shadow: 0 0 12px rgba(168, 255, 31, 0.35);
}

.compact-list li + li {
  margin-top: 0.35rem;
}

.section-heading {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}
@media (max-width: 767px) {
  .page-hero {
    padding: 3rem 0 2rem;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid rgba(36, 215, 255, 0.1);
  background: rgba(3, 8, 14, 0.82);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer p, .site-footer a {
  color: #7893a6;
  font-size: 0.95rem;
}

.hero.sci-hero {
  padding: 4.5rem 0 2rem;
}
@media (max-width: 767px) {
  .hero.sci-hero {
    padding-top: 3.25rem;
  }
}

.sci-hero-frame {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(1.1rem, 2vw, 2rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.92), rgba(5, 10, 16, 0.95)), radial-gradient(circle at top left, rgba(36, 215, 255, 0.12), transparent 32%);
}

.sci-hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(36, 215, 255, 0.11), transparent 20%), radial-gradient(circle at 80% 15%, rgba(168, 255, 31, 0.07), transparent 16%), linear-gradient(90deg, rgba(36, 215, 255, 0.08) 0 1px, transparent 1px 120px), linear-gradient(180deg, rgba(36, 215, 255, 0.05) 0 1px, transparent 1px 120px);
  opacity: 0.65;
}

.sci-orbit {
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(36, 215, 255, 0.18);
  box-shadow: 0 0 0 20px rgba(36, 215, 255, 0.03), 0 0 0 44px rgba(36, 215, 255, 0.015);
  opacity: 0.9;
}

.sci-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .sci-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2rem;
  }
}

.sci-hero-copy h1 {
  max-width: 11ch;
}

.sci-badge {
  display: inline-flex;
  padding: 0.55rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #a8ff1f;
  background: rgba(168, 255, 31, 0.07);
  border: 1px solid rgba(168, 255, 31, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
}

.sci-meta-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 1024px) {
  .sci-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sci-meta-card, .sci-proof-card, .sci-service-card, .sci-platform-card, .sci-principle-card, .sci-process-step, .sci-monitor-tile, .feature-card {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.25rem;
}

.sci-meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #24d7ff;
  margin-bottom: 0.5rem;
}

.sci-meta-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ebf8ff;
  margin-bottom: 0.5rem;
}

.sci-panel {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.15rem;
}

.sci-panel + .sci-panel {
  margin-top: 1rem;
}

.sci-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: #acc8d8;
}

.sci-panel-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.sci-panel-dots span {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(36, 215, 255, 0.34);
}

.sci-status-grid {
  display: grid;
  gap: 0.9rem;
}

.sci-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(36, 215, 255, 0.08);
}

.sci-status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sci-status-row small {
  display: block;
  margin-top: 0.2rem;
  color: #7893a6;
  line-height: 1.55;
}

.sci-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a8ff1f;
  background: rgba(168, 255, 31, 0.08);
  border: 1px solid rgba(168, 255, 31, 0.16);
  white-space: nowrap;
}

.sci-clock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(36, 215, 255, 0.1);
  color: #acc8d8;
}

.sci-clock-row strong {
  color: #24d7ff;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.sci-signal-bars {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  margin-top: 1rem;
  min-height: 2.75rem;
}

.sci-signal-bars i {
  flex: 1 1 0;
  height: 40%;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #24d7ff, #a8ff1f);
  opacity: 0.9;
  animation: signal 1.8s ease-in-out infinite;
}

.sci-signal-bars i:nth-child(2) {
  height: 72%;
  animation-delay: 0.15s;
}

.sci-signal-bars i:nth-child(3) {
  height: 48%;
  animation-delay: 0.28s;
}

.sci-signal-bars i:nth-child(4) {
  height: 92%;
  animation-delay: 0.38s;
}

.sci-signal-bars i:nth-child(5) {
  height: 62%;
  animation-delay: 0.48s;
}

.sci-signal-bars i:nth-child(6) {
  height: 82%;
  animation-delay: 0.58s;
}

@keyframes signal {
  0%, 100% {
    transform: scaleY(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}
.sci-proof-band, .sci-services-grid, .sci-platform-stack, .sci-principles-grid, .sci-process-grid, .sci-monitor-grid, .service-stack {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .sci-proof-band {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sci-services-grid, .service-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sci-services-grid, .service-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sci-platform-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .sci-platform-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .sci-platform-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .sci-principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sci-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sci-process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .sci-monitor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sci-icon, .sci-step-index {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #06141a;
  background: linear-gradient(135deg, #24d7ff 0%, #7deeff 52%, #a8ff1f 100%);
  box-shadow: 0 0 18px rgba(36, 215, 255, 0.18);
}

.sci-inline-actions {
  margin-top: 1.5rem;
}

.sci-chat-home .sci-chat-layout, .sci-cta-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .sci-chat-home .sci-chat-layout, .sci-cta-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.sci-chat-card, .sci-cta-shell {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.3rem;
}

.sci-chat-stack {
  display: grid;
  gap: 0.85rem;
}

.sci-chat-bubble {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 1.1rem;
  border-radius: 18px;
}

.sci-chat-bubble.user {
  border-color: rgba(168, 255, 31, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(168, 255, 31, 0.14);
}

.sci-chat-window, .sci-chat-console {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem;
}

.sci-chat-input {
  margin-top: 0.9rem;
}

.sci-platform-monitor {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.3rem;
}

.cta-panel {
  background: linear-gradient(180deg, rgba(18, 31, 48, 0.88), rgba(7, 13, 21, 0.92));
  border: 1px solid rgba(36, 215, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(36, 215, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sci-final-cta .sci-cta-shell {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.sci-text-link {
  color: #acc8d8;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.contact-form {
  padding: 1.4rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  color: #acc8d8;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  background: rgba(3, 10, 16, 0.92);
  color: #ebf8ff;
  border: 1px solid rgba(36, 215, 255, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  outline: none;
  transition: 0.15s ease;
}

input:focus, textarea:focus {
  border-color: rgba(36, 215, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(36, 215, 255, 0.08);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.form-status, .chat-status {
  min-height: 1.25rem;
  margin-top: 0.65rem;
  color: #7893a6;
  font-size: 0.95rem;
}

.form-status.error, .chat-status.error {
  color: #ffb4b4;
}

.form-status.success, .chat-status.success {
  color: #bfffd0;
}

.chat-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .chat-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: start;
  }
}

.chat-sidebar, .chat-shell {
  padding: 1.3rem;
}

.mode-picker {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.15rem;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}
.mode-pill:hover {
  transform: translateY(-1px);
}
.mode-pill {
  justify-content: flex-start;
  min-height: 46px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(36, 215, 255, 0.04);
  color: #acc8d8;
  border-color: rgba(36, 215, 255, 0.1);
}

.mode-pill.active {
  background: rgba(36, 215, 255, 0.1);
  color: #ebf8ff;
  border-color: rgba(36, 215, 255, 0.24);
  box-shadow: 0 0 22px rgba(36, 215, 255, 0.14);
}

.mode-panel {
  display: none;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.mode-panel.active {
  display: block;
}

.chat-examples {
  margin-top: 1.5rem;
}

.example-buttons {
  display: grid;
  gap: 0.55rem;
}

.example-prompt {
  appearance: none;
  border: 1px solid rgba(36, 215, 255, 0.12);
  background: rgba(8, 14, 22, 0.9);
  color: #acc8d8;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  text-align: left;
  font: inherit;
}

.example-prompt:hover {
  color: #ebf8ff;
  border-color: rgba(36, 215, 255, 0.24);
  box-shadow: 0 0 22px rgba(36, 215, 255, 0.14);
}

.chat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .chat-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.chat-window {
  min-height: 420px;
  max-height: 640px;
  overflow: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(5, 11, 18, 0.82);
  border: 1px solid rgba(36, 215, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.chat-message {
  display: flex;
  margin-bottom: 0.9rem;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(720px, 92%);
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 29, 44, 0.92), rgba(8, 14, 22, 0.96));
  border: 1px solid rgba(36, 215, 255, 0.12);
  box-shadow: 0 0 22px rgba(36, 215, 255, 0.14);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(180deg, rgba(24, 52, 22, 0.88), rgba(11, 24, 9, 0.94));
  border-color: rgba(168, 255, 31, 0.16);
  box-shadow: 0 0 22px rgba(168, 255, 31, 0.14);
}

.chat-bubble p {
  margin: 0;
  color: #ebf8ff;
}

.chat-form {
  margin-top: 1rem;
}

.chat-form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}
@media (max-width: 767px) {
  .chat-form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.legal {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.legal h2, .legal h3 {
  margin-top: 1.35rem;
}

.legal p + h2, .legal p + h3 {
  margin-top: 1.75rem;
}

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

@media (max-width: 767px) {
  .brand-text strong {
    font-size: 0.92rem;
  }
  .hero.sci-hero {
    padding-bottom: 1.25rem;
  }
  .sci-hero-copy h1 {
    max-width: none;
  }
  .sci-orbit {
    display: none;
  }
  .sci-meta-grid,
  .sci-proof-band,
  .sci-services-grid,
  .sci-platform-stack,
  .sci-principles-grid,
  .sci-process-grid,
  .sci-monitor-grid,
  .service-stack {
    grid-template-columns: 1fr;
  }
  .chat-window {
    min-height: 300px;
  }
}
