:root {
  --bg: #0b1120;
  --bg-elevated: #0f172a;
  --panel: #111827;
  --panel-strong: #0f1b2d;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --good: #22c55e;
  --warn: #f59e0b;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, #0f1f3a 0%, #0b1120 40%, #080d1a 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -2;
  background:
    repeating-linear-gradient(
      110deg,
      rgba(56, 189, 248, 0.04) 0,
      rgba(56, 189, 248, 0.04) 2px,
      transparent 2px,
      transparent 22px
    );
  opacity: 0.25;
  animation: drift 28s linear infinite;
}

body.perf-lite::before {
  animation: none;
  opacity: 0.12;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: inherit;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.4;
}

.bg-glow-a {
  width: 22rem;
  height: 22rem;
  background: #22d3ee;
  top: -7rem;
  left: -5rem;
}

.bg-glow-b {
  width: 26rem;
  height: 26rem;
  background: #0369a1;
  right: -8rem;
  bottom: -10rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.perf-lite .site-header {
  backdrop-filter: none;
  background: rgba(11, 17, 32, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: clamp(1.35rem, 1.7vw, 1.75rem);
  height: clamp(1.35rem, 1.7vw, 1.75rem);
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.35));
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #cffafe;
  background: linear-gradient(145deg, #1d4f7a, #0b2f50);
  border: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  display: none;
}

.brand.no-logo .brand-mark {
  display: inline-grid;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

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

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

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

main {
  width: min(1100px, 92vw);
  margin: 1.5rem auto 4rem;
}

.hero,
.section {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(155deg, rgba(15, 27, 45, 0.94), rgba(11, 23, 42, 0.88));
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 52vh, 560px);
  display: grid;
  align-items: start;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.15) contrast(1.08);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, rgba(8, 15, 28, 0.62), rgba(8, 14, 24, 0.8)),
    radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.16), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.14), transparent 44%);
  pointer-events: none;
  z-index: 1;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: start;
  margin-top: 0;
  text-align: center;
  min-height: clamp(320px, 44vh, 470px);
  display: flex;
  flex-direction: column;
}

.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.trust-hero {
  min-height: auto;
}

.trust-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.trust-copy {
  text-align: left;
  min-height: 100%;
  justify-content: center;
}

.trust-copy .lead {
  text-align: left;
  max-width: 56ch;
}

.trust-copy .hero-cta {
  justify-content: flex-start;
}

.trust-hero-media {
  margin: 0;
  padding: 0.4rem;
  overflow: hidden;
  position: relative;
}

.trust-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 12, 24, 0.12), rgba(5, 12, 24, 0.42));
  pointer-events: none;
}

.trust-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.hero-copy .badge {
  display: inline-block;
}

.hero-copy .lead {
  margin: 0;
}

.hero-lead-wrap {
  min-height: clamp(150px, 22vh, 220px);
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  margin-bottom: 1.9rem;
}

.badge {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 0.86rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.lead {
  color: #bfdbfe;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 62ch;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: auto 0 0;
  justify-content: center;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #031323;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-grid,
.spec-grid,
.cap-grid,
.license-panels,
.proof-grid {
  display: grid;
  gap: 0.8rem;
}

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

.spec-grid,
.cap-grid,
.license-panels,
.proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric,
.card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(17, 24, 39, 0.92), rgba(12, 25, 45, 0.9));
  padding: 1rem;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.metric:hover,
.card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.38);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.34);
}

.waitlist-card {
  margin-bottom: 0.9rem;
}

.waitlist-subtle {
  margin: -0.2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.waitlist-form {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.waitlist-form label {
  display: grid;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.waitlist-form input,
.waitlist-form textarea,
.waitlist-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  font: inherit;
  padding: 0.58rem 0.65rem;
}

.waitlist-form textarea {
  resize: vertical;
}

.waitlist-form .full {
  grid-column: 1 / -1;
}

.waitlist-status {
  color: #bfdbfe;
  font-size: 0.88rem;
}

.metric h3,
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.metric p,
.card p,
ul,
.contact-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

ul {
  padding-left: 1.05rem;
}

.section-head {
  margin-bottom: 0.8rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.advisory-why {
  margin-top: 0.7rem;
  color: #c7d7ee;
  font-weight: 500;
  max-width: 76ch;
}

.advisory-impact {
  margin-top: 0.8rem;
}

.advisory-impact p {
  margin-top: 0.6rem;
  color: #b7cbe8;
  font-style: italic;
  font-size: 0.92rem;
}

.advisory-card {
  position: relative;
}

.advisory-card::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.2));
}

.advisory-card h3 {
  padding-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.advisory-icon {
  color: #6dd3ff;
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 0.95;
}

.advisory-anchor {
  margin-top: 0.72rem !important;
  padding-top: 0.62rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #c1d3ea !important;
  font-size: 0.92rem;
}

.advisory-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.advisory-image-card {
  padding: 0.72rem;
}

.advisory-image-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
  display: block;
  background: rgba(15, 23, 42, 0.9);
}

.advisory-image-card figcaption {
  margin-top: 0.55rem;
  color: #bfd3ed;
  font-size: 0.89rem;
  text-align: center;
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
  gap: 0.8rem;
  align-items: stretch;
}

.control-diagram {
  margin: 0;
  padding: 0.55rem;
}

.control-diagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  display: block;
}

.ui-note {
  margin: 0 0 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  font-size: 0.92rem;
}

.proof-grid {
  margin-bottom: 0.8rem;
}

.stat-card {
  text-align: center;
}

.stat-value {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #7dd3fc;
  font-weight: 700;
}

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

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.9rem;
}

.flow-step {
  padding: 0.45rem 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.08);
  color: #cbeafe;
  font-size: 0.88rem;
  white-space: nowrap;
}

.flow-arrow {
  color: #60a5fa;
  font-size: 0.95rem;
}

.shot-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.memory-note {
  margin-top: 0.9rem;
}

.trust-badge {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shot-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 12px 28px rgba(7, 18, 33, 0.5);
}

.license-ok {
  border-color: rgba(34, 197, 94, 0.4);
}

@media (max-width: 920px) {
  .trust-hero-grid,
  .control-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-copy {
    text-align: center;
  }

  .trust-copy .lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-copy .hero-cta {
    justify-content: center;
  }

  .trust-hero-media img {
    min-height: 220px;
  }
}

.license-warn {
  border-color: rgba(245, 158, 11, 0.5);
}

.contact-card {
  text-align: center;
}

.contact-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-link {
  display: inline-block;
  margin: 0.4rem 0 0.55rem;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  color: #bae6fd;
}

.site-footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2.4rem;
  text-align: center;
  color: #7c93b8;
  font-size: 0.86rem;
}

.blog-article h1,
.blog-article h2,
.blog-article h3 {
  margin: 0.95rem 0 0.5rem;
}

.blog-article p {
  margin: 0.65rem 0;
}

.blog-article ul {
  margin: 0.5rem 0 0.8rem;
}

.blog-article a {
  color: #7dd3fc;
}

.blog-article code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.92em;
}

.blog-article img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  border-radius: 12px;
  margin: 0.9rem 0;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.34);
}

.admin-tabs-wrap {
  padding: 0.9rem 1.1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-tab {
  min-width: 120px;
  text-align: center;
}

.admin-tab-panel {
  display: block;
}

.blog-toolbar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.55rem;
}

.blog-tool-btn {
  padding: 0.45rem 0.62rem;
  font-size: 0.84rem;
}

#blogUploadImage {
  border-color: rgba(34, 211, 238, 0.42);
}

body.intro-pending .site-header,
body.intro-pending main > .section:not(.hero),
body.intro-pending .site-footer {
  opacity: 0;
}

body.intro-pending .hero {
  opacity: 0;
  transform: translateX(-22vw) scale(0.96);
}

body.intro-active .site-header {
  animation: fadeInBasic 0.35s ease forwards;
}

body.intro-active .hero {
  opacity: 1;
  animation: heroSlideIn 700ms cubic-bezier(0.2, 0.9, 0.28, 1) forwards;
}

body.intro-active .hero-bg-video {
  transform: translateX(36vw) translateY(-16vh) scale(1.95);
  opacity: 0;
}

body.logo-launch .hero-bg-video {
  opacity: 1;
  animation: logoSlam 700ms cubic-bezier(0.18, 0.82, 0.22, 1.15) forwards;
}

body.hero-impact .hero {
  animation: heroImpact 220ms ease-out forwards;
}

body.reveal-rest main > .section:not(.hero),
body.reveal-rest .site-footer {
  animation: sectionFadeIn 600ms ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(120px, 40px, 0);
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.015);
  }
}

@keyframes fadeInBasic {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(-22vw) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes logoSlam {
  0% {
    opacity: 0;
    transform: translateX(36vw) translateY(-16vh) scale(1.95);
    filter: blur(2px);
  }
  70% {
    opacity: 1;
    transform: translateX(-6px) translateY(3px) scale(0.97);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroImpact {
  0% {
    transform: translateX(0) scale(1);
  }
  45% {
    transform: translateX(0) scale(0.988);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-inline {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.7rem;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .brand-logo,
  .brand-mark {
    width: 1.3rem;
    height: 1.3rem;
  }

  .brand-text {
    font-size: 0.95rem;
  }

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

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

  .hero {
    min-height: clamp(500px, 74vh, 640px);
    padding: 1.15rem 1rem;
  }

  .hero-copy {
    min-height: clamp(360px, 62vh, 520px);
  }

  .hero-copy h1 {
    margin-bottom: 1.35rem;
  }

  .hero-lead-wrap {
    min-height: auto;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 44ch;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    width: min(100%, 260px);
    text-align: center;
  }

  .hero-bg-video {
    opacity: 0.24;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(170deg, rgba(8, 14, 24, 0.7), rgba(8, 14, 24, 0.86)),
      radial-gradient(circle at 20% 18%, rgba(236, 72, 153, 0.12), transparent 40%),
      radial-gradient(circle at 82% 28%, rgba(34, 211, 238, 0.1), transparent 40%);
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  #adminTabProjects .spec-grid {
    grid-template-columns: 1fr !important;
  }

  .flow-arrow {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.intro-pending .site-header,
  body.intro-pending main > .section:not(.hero),
  body.intro-pending .site-footer,
  body.intro-pending .hero {
    opacity: 1;
    transform: none;
  }

  body.intro-active .hero,
  body.logo-launch .hero-bg-video,
  body.hero-impact .hero,
  body.reveal-rest main > .section:not(.hero),
  body.reveal-rest .site-footer {
    animation: none;
  }

}
