/* ==========================================================================
   Orqentra Public Website Theme v3
   Central CSS file for the Cloudflare Pages marketing site.

   Design direction:
   - Single premium dark-blue visual system across the whole page.
   - White text on dark sections.
   - Lighter, calmer large headings.
   - No duplicate top-left badge/logo.
   - Brand logo used as a central hero asset.
   ========================================================================== */

:root {
  --bg-0: #020814;
  --bg-1: #04101f;
  --bg-2: #07182e;
  --bg-3: #0b2450;
  --ink: #f8fbff;
  --muted: rgba(214, 226, 245, 0.72);
  --muted-2: rgba(214, 226, 245, 0.58);
  --panel: rgba(8, 18, 39, 0.72);
  --panel-strong: rgba(9, 18, 42, 0.88);
  --panel-border: rgba(105, 162, 255, 0.23);
  --blue: #44b9ff;
  --blue-2: #6f8cff;
  --green: #3fe7ba;
  --red: #ff545f;
  --white: #ffffff;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 20px 54px rgba(0, 0, 0, 0.22);
  --radius-xl: 34px;
  --radius-card: 26px;
}

* {
  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: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 84, 95, 0.09), transparent 25%),
    radial-gradient(circle at 84% 12%, rgba(68, 185, 255, 0.14), transparent 28%),
    radial-gradient(circle at 52% 42%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 34%, var(--bg-2) 72%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, rgba(0, 0, 0, 0.72) 34%, transparent 84%);
  z-index: -1;
}

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

.site-shell {
  width: min(1540px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-hero {
  position: relative;
  min-height: 650px;
  padding: 28px 34px 48px;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 84, 95, 0.07), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(68, 185, 255, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.82), rgba(5, 14, 31, 0.74));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.82), transparent 78%);
  pointer-events: none;
}

.site-hero > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.nav-spacer {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(248, 251, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.78fr);
  align-items: center;
  gap: 58px;
  min-height: 520px;
  padding-top: 18px;
}

.hero-copy {
  max-width: 850px;
}

.hero-wordmark-main {
  width: min(560px, 82%);
  max-height: 170px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 34px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.38));
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 5.4vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: #fff;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.15rem, 3.8vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 650;
  color: #fff;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #fff;
}

.hero-sub {
  max-width: 710px;
  margin: 0;
  color: rgba(214, 226, 245, 0.80);
  font-size: 1.08rem;
  line-height: 1.64;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(146, 183, 255, 0.22);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.light {
  background: rgba(255, 255, 255, 0.92);
  color: #102b73;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-panel {
  display: grid;
  align-content: center;
  justify-items: stretch;
}

.command-card {
  width: min(520px, 100%);
  margin-left: auto;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 8%, rgba(68, 185, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.74), rgba(5, 14, 31, 0.68));
  border: 1px solid rgba(146, 183, 255, 0.20);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.command-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(248, 251, 255, 0.78);
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(63, 231, 186, 0.72);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(214, 226, 245, 0.76);
  font-size: 14px;
}

.metric-row strong {
  color: #fff;
  font-weight: 650;
}

.section {
  padding: 84px 0 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading p,
.control-copy p,
.visual-band p,
.cta p {
  max-width: 800px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
  font-weight: 400;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.principle,
.cta,
.visual-band {
  background:
    radial-gradient(circle at 12% 10%, rgba(68, 185, 255, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(13, 28, 64, 0.62), rgba(5, 14, 31, 0.54));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 214px;
  padding: 22px;
}

.feature-card p,
.principle p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-number {
  display: inline-flex;
  margin-bottom: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.control-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 20px;
}

.principle span {
  display: inline-flex;
  margin-right: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.principle strong {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.principle p {
  margin-top: 8px;
  margin-left: 36px;
}

.visual-band {
  margin-top: 84px;
  padding: 58px;
}

.cta {
  margin-top: 84px;
  padding: 58px 34px;
  text-align: center;
}

.cta-q {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.34));
}

.cta p {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 26px;
}

@media (max-width: 1060px) {
  .site-shell {
    width: min(100% - 36px, 1540px);
  }

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

  .hero-grid,
  .control-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .command-card {
    margin-left: 0;
  }

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

  .hero-wordmark-main {
    max-width: 500px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 1540px);
    padding-top: 16px;
  }

  .site-hero {
    padding: 22px;
    border-radius: 28px;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero-wordmark-main {
    width: 100%;
    max-width: 330px;
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .visual-band,
  .cta {
    padding: 34px 22px;
    border-radius: 28px;
  }
}


/* === v4: subtle full-width operational motion behind main hero === */

.hero-motion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  overflow: hidden;
}

.hero-motion-svg {
  position: absolute;
  inset: -4% -3%;
  width: 106%;
  height: 108%;
  display: block;
}

.motion-grid-lines path {
  stroke: rgba(255, 255, 255, 0.018);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.motion-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 12 18;
  vector-effect: non-scaling-stroke;
  animation: heroLineFlow 22s linear infinite;
}

.motion-red-lines .motion-line {
  stroke: rgba(255, 84, 95, 0.24);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(255, 84, 95, 0.20));
}

.motion-green-lines .motion-line {
  stroke: rgba(63, 231, 186, 0.30);
  stroke-width: 1.9;
  filter: drop-shadow(0 0 8px rgba(63, 231, 186, 0.20));
}

.motion-blue-lines .motion-line {
  stroke: rgba(68, 185, 255, 0.22);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 8px rgba(68, 185, 255, 0.16));
}

.motion-line-b {
  animation-duration: 28s;
  animation-direction: reverse;
  opacity: 0.55;
}

.motion-line-c {
  animation-duration: 18s;
}

.motion-line-d {
  animation-duration: 26s;
  animation-direction: reverse;
  opacity: 0.50;
}

.motion-line-e {
  animation-duration: 34s;
  opacity: 0.42;
}

.motion-scanner {
  stroke: rgba(68, 185, 255, 0.16);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: heroScanner 8s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(68, 185, 255, 0.18));
}

.site-hero > .topbar,
.site-hero > .hero-grid {
  position: relative;
  z-index: 2;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 20, 0.14), transparent 38%, rgba(2, 8, 20, 0.12)),
    radial-gradient(circle at 44% 50%, rgba(4, 16, 31, 0.08), transparent 44%);
}

@keyframes heroLineFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -320;
  }
}

@keyframes heroScanner {
  0%, 100% {
    transform: translateX(-260px);
    opacity: 0;
  }
  18% {
    opacity: 0.18;
  }
  48% {
    transform: translateX(1120px);
    opacity: 0.22;
  }
  78% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-line,
  .motion-scanner {
    animation: none;
  }
}
