/* ============================================================
   SOVEREIGN CLOUD — style.css
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg:               #020B18;
  --bg-2:             #050f22;
  --cyan:             #00D4FF;
  --violet:           #7B2FFF;
  --text:             #E8F4FF;
  --text-muted:       #6e8fac;
  --glass-bg:         rgba(0, 212, 255, 0.04);
  --glass-border:     rgba(0, 212, 255, 0.14);
  --glass-border-h:   rgba(0, 212, 255, 0.4);
  --error:            #ff4d6a;
  --font-heading:     'Orbitron', sans-serif;
  --font-body:        'Inter', sans-serif;
  --nav-h:            72px;
  --pad:              clamp(5rem, 10vw, 8rem);
  --r:                12px;
  --r-lg:             20px;
  --ease:             0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ---- Holographic grid overlay ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Canvas background ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  z-index: 1000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--cyan);
}

/* ---- Shared utilities ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-sub {
  color: var(--text-muted);
  max-width: 540px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}
h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}
.glow-text {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
  margin-top: 2.25rem;
  margin-bottom: 0.8rem;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72em 1.7em;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}
.btn-full { width: 100%; }

/* ---- Section reveal ---- */
.section-reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(2, 11, 24, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.04);
}
#navbar nav {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
#nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
#nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}
#nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width var(--ease);
}
#nav-links a:hover,
#nav-links a:focus-visible { color: var(--cyan); }
#nav-links a:hover::after,
#nav-links a:focus-visible::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.25rem 5rem;
  z-index: 1;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  animation: pulse-glow 9s ease-in-out infinite alternate;
}
.hero-glow--cyan {
  width: 700px; height: 700px;
  background: var(--cyan);
  top: -220px; left: -180px;
}
.hero-glow--violet {
  width: 600px; height: 600px;
  background: var(--violet);
  bottom: -200px; right: -160px;
  animation-delay: -4.5s;
}
@keyframes pulse-glow {
  from { opacity: 0.1;  transform: scale(1); }
  to   { opacity: 0.22; transform: scale(1.18); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero h1 {
  text-shadow:
    0 0 40px rgba(0, 212, 255, 0.28),
    0 0 90px rgba(0, 212, 255, 0.09);
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  max-width: 640px;
  margin: 0 auto 2.75rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Stat bar */
.stat-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0.5rem 2rem;
  flex: 1;
  min-width: 120px;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.5);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: block;
}
.stat-divider {
  width: 1px;
  background: var(--glass-border);
  flex-shrink: 0;
  align-self: stretch;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.45;
}
.hero-scroll-hint span {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 9px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}
.hero-scroll-hint p {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
  padding: var(--pad) 0;
  position: relative;
  z-index: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.about-text .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.about-text strong { color: var(--text); }

/* SEAL cards */
.seal-levels {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.5rem 0 1.75rem;
}
.seal-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid;
  background: rgba(0, 0, 0, 0.2);
  transition: transform var(--ease);
}
.seal-card:hover { transform: translateX(6px); }
.seal-card--2 { border-color: rgba(0, 212, 255, 0.22); }
.seal-card--3 { border-color: rgba(123, 47, 255, 0.38); }
.seal-card--4 { border-color: rgba(0, 212, 255, 0.55); box-shadow: 0 0 22px rgba(0, 212, 255, 0.08); }

.seal-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35em 0.9em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.seal-card--2 .seal-badge { background: rgba(0,212,255,0.12); color: var(--cyan); }
.seal-card--3 .seal-badge { background: rgba(123,47,255,0.22); color: #b88fff; }
.seal-card--4 .seal-badge { background: rgba(0,212,255,0.22); color: var(--cyan); }
.seal-card strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 0.2em; }
.seal-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }

/* SEAL Pyramid */
.about-visual {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.seal-pyramid {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pyramid-level {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.pyramid-level.lit { opacity: 1; transform: translateY(0); }
.pyramid-level[data-level="4"] { max-width: 36%; }
.pyramid-level[data-level="3"] { max-width: 59%; }
.pyramid-level[data-level="2"] { max-width: 80%; }
.pyramid-level[data-level="1"] { max-width: 100%; }

.pyramid-block {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: box-shadow var(--ease);
}
.pyramid-level[data-level="4"] .pyramid-block {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.28);
  color: var(--cyan);
}
.pyramid-level[data-level="3"] .pyramid-block {
  border-color: rgba(123, 47, 255, 0.55);
  color: #b88fff;
}
.pyramid-level[data-level="2"] .pyramid-block {
  border-color: rgba(0, 212, 255, 0.38);
  color: var(--cyan);
}
.pyramid-level[data-level="1"] .pyramid-block {
  border-color: rgba(255,255,255,0.1);
  color: var(--text-muted);
}
.pyramid-block small {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  font-family: var(--font-body);
  opacity: 0.7;
  margin-top: 0.22em;
  letter-spacing: 0;
}
.pyramid-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
}

/* Category strip */
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}
.category-chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.42em 1.1em;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--cyan);
  letter-spacing: 0.04em;
  transition: all var(--ease);
  cursor: default;
  user-select: none;
}
.category-chip:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.18);
}
.source-attribution {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  font-style: italic;
}

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  padding: var(--pad) 0;
  position: relative;
  z-index: 1;
}
/* 5-card layout: 3 top row + 2 bottom row centered */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.service-card              { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-card {
  padding: 2.5rem 2rem 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 24px 60px rgba(0, 212, 255, 0.1),
    0 0 0 1px rgba(0, 212, 255, 0.22);
  border-color: var(--glass-border-h);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}
.service-card h3 {
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.72;
  position: relative;
  z-index: 1;
}
.service-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-cta {
  opacity: 1;
  transform: translateY(0);
}

/* SVG icon animations on card hover */
.service-card:hover .gear-outer {
  animation: spin-cw 8s linear infinite;
  transform-origin: 40px 40px;
}
.service-card:hover .gear-inner {
  animation: spin-ccw 6s linear infinite;
  transform-origin: 40px 40px;
}
.service-card:hover .hex-outer {
  animation: spin-cw 14s linear infinite;
  transform-origin: 40px 40px;
}
.service-card:hover .shield-check {
  stroke-dasharray: 45;
  animation: draw-stroke 0.6s ease forwards;
}
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes draw-stroke {
  from { stroke-dashoffset: 45; }
  to   { stroke-dashoffset: 0; }
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  padding: var(--pad) 0;
  position: relative;
  z-index: 1;
}
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.form-group:last-of-type { margin-bottom: 1.75rem; }

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
label span { color: var(--cyan); }

input, select, textarea {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--ease), box-shadow var(--ease);
  width: 100%;
}
input::placeholder, textarea::placeholder { color: rgba(110,143,172,0.45); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300D4FF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select option { background: #091525; color: var(--text); }
textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: 0.74rem;
  color: var(--error);
  min-height: 1em;
  display: block;
}
input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.14);
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.75rem;
}
.success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: draw-circle 0.8s ease forwards;
}
.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.5s ease 0.75s forwards;
}
@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check  { to { stroke-dashoffset: 0; } }
.form-success h3 { color: var(--cyan); font-family: var(--font-heading); margin-bottom: 0.5rem; }
.form-success p  { color: var(--text-muted); }

.fade-out { animation: fade-out 0.4s ease forwards; }
.fade-in  { animation: fade-in 0.4s ease 0.4s both; }
@keyframes fade-out {
  to { opacity: 0; transform: scale(0.97); }
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -1px 30px rgba(0, 212, 255, 0.05);
  padding: 3rem 0 1.75rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}
.footer-brand { flex: 1; min-width: 180px; }
.footer-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--cyan); }
.footer-social { display: flex; gap: 0.7rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all var(--ease);
}
.social-btn:hover,
.social-btn:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2);
}
.footer-imprint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.7;
  opacity: 0.7;
  margin-top: 0.65rem;
  font-style: normal;
}
.footer-imprint a {
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-imprint a:hover,
.footer-imprint a:focus-visible { color: var(--cyan); }
.footer-bottom { text-align: center; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }
.footer-bottom p { font-size: 0.74rem; color: var(--text-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  /* 5 cards → 2-col: 2+2 then last card centered */
  .services-grid             { grid-template-columns: repeat(4, 1fr); }
  .service-card:nth-child(4) { grid-column: span 2; }
  .service-card:nth-child(5) { grid-column: 2 / span 2; }
  .about-grid                { grid-template-columns: 1fr; }
  .about-visual              { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  #nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(2, 11, 24, 0.97);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
    z-index: 99;
  }
  #nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  #nav-links li { width: 100%; }
  #nav-links a {
    display: block;
    font-size: 0.95rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .services-grid             { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: auto; }
  .form-row                  { grid-template-columns: 1fr; }

  .stat-bar      { flex-direction: column; align-items: stretch; }
  .stat-divider  { width: 100%; height: 1px; }
  .stat-item     { padding: 0.75rem 1rem; }

  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .section-reveal { opacity: 1; transform: none; }
  .pyramid-level  { opacity: 1; transform: none; }
}


/* ============================================================
   SOVEREIGN WORKSPACES — style.css
   Site-specific styles — base included below
   ============================================================ */

/* ----------------------------------------------------------------
   WORKSPACE ACCENT COLOR
   ---------------------------------------------------------------- */
:root {
  --ws:          #22C55E;
  --ws-dim:      rgba(34, 197, 94, 0.12);
  --ws-border:   rgba(34, 197, 94, 0.22);
  --ws-border-h: rgba(34, 197, 94, 0.55);
}

/* ----------------------------------------------------------------
   NAV — workspace accent
   ---------------------------------------------------------------- */
.nav-ws {
  color: var(--ws);
}

.nav-parent-link a,
.footer-parent-link {
  font-size: 0.75rem !important;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   BUTTONS — workspace variant
   ---------------------------------------------------------------- */
.btn-ws {
  background: var(--ws);
  color: var(--bg);
  border: 2px solid var(--ws);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72em 1.7em;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn-ws:hover {
  background: transparent;
  color: var(--ws);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.4);
}

.btn-ws:focus-visible {
  outline: 2px solid var(--ws);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   HERO — workspace green glow + eyebrow overrides
   ---------------------------------------------------------------- */
.hero-glow--ws {
  width: 700px;
  height: 700px;
  background: var(--ws);
  top: -220px;
  left: -180px;
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.1;
  pointer-events: none;
  animation: pulse-glow 9s ease-in-out infinite alternate;
}

.ws-eyebrow {
  color: var(--ws) !important;
}

.ws-stat {
  color: var(--ws) !important;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.5) !important;
}

/* ----------------------------------------------------------------
   ABOUT — glow text in workspace green
   ---------------------------------------------------------------- */
.ws-glow {
  color: var(--ws) !important;
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.45) !important;
}

/* ----------------------------------------------------------------
   DEPLOYMENT COMPARISON (shared with ai/ but defined here too)
   ---------------------------------------------------------------- */
.deploy-compare {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}

.deploy-col {
  padding: 1.5rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.deploy-col-head {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.deploy-type-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.28em 0.75em;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deploy-type--managed {
  background: rgba(34, 197, 94, 0.14);
  color: var(--ws);
}

.deploy-type--self {
  background: rgba(123, 47, 255, 0.18);
  color: #b88fff;
}

.deploy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.deploy-list li {
  font-size: 0.79rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
}

.deploy-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deploy-list li.pro        { color: var(--text); }
.deploy-list li.pro::before     { background: var(--ws); }
.deploy-list li.neutral::before { background: rgba(110, 143, 172, 0.45); }

.deploy-seal-tag { margin-top: auto; }

/* SEAL badges — workspace variants */
.badge {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.22em 0.65em;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.06em;
}

.badge-seal-3-ws { background: rgba(34, 197, 94, 0.16); color: var(--ws); }
.badge-seal-4-ws { background: rgba(123, 47, 255, 0.22); color: #b88fff; }

/* ----------------------------------------------------------------
   COMPLIANCE CHIP STRIP — workspace green override
   ---------------------------------------------------------------- */
.ws-chip {
  color: var(--ws) !important;
  border-color: var(--ws-border) !important;
}

.ws-chip:hover {
  border-color: var(--ws) !important;
  background: var(--ws-dim) !important;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18) !important;
}

/* ----------------------------------------------------------------
   CAPABILITIES SECTION
   ---------------------------------------------------------------- */
.capabilities {
  padding: var(--pad) 0;
  position: relative;
  z-index: 1;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cap-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.cap-card:hover {
  transform: translateY(-7px);
  border-color: var(--ws-border-h);
  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.08);
}

.cap-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.cap-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.cap-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
  flex: 1;
}

/* ----------------------------------------------------------------
   SERVICE CARD HOVER ANIMATIONS — workspace variants
   ---------------------------------------------------------------- */
.service-card:hover .ws-assess-ring {
  animation: pulse-ws 2s ease-in-out infinite;
}

.service-card:hover .ws-deploy-shield {
  animation: pulse-shield-ws 2.5s ease-in-out infinite;
}

.service-card:hover .ws-shield-outer {
  animation: pulse-ws 2s ease-in-out infinite;
}

.service-card:hover .ws-gear-outer {
  animation: spin-cw 8s linear infinite;
  transform-origin: 40px 40px;
}

@keyframes pulse-ws {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes pulse-shield-ws {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(34,197,94,0.5)); }
  50%       { filter: drop-shadow(0 0 10px rgba(34,197,94,0.9)); }
}

/* ----------------------------------------------------------------
   CONTACT FORM — ws accent on focus
   ---------------------------------------------------------------- */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ws);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-success h3 { color: var(--ws) !important; }

.success-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: draw-circle 0.8s ease forwards;
}

.success-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.5s ease 0.75s forwards;
}

/* ----------------------------------------------------------------
   FOOTER — workspace accent
   ---------------------------------------------------------------- */
.footer-parent-link { color: var(--text-muted) !important; }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .capabilities-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 768px) {
  .deploy-compare {
    grid-template-columns: 1fr;
    position: static;
  }

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

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