/* Color palette and theme (dark default) */
:root,
[data-theme="dark"] {
  --black: #000000ff;
  --white: #ffffffff;
  --deep-saffron: #fe9000ff;
  --lavender-grey: #938ba1ff;
  --egyptian-blue: #0a369dff;

  --color-bg: var(--black);
  --color-surface: #080812;
  --color-surface-alt: #0f0f1c;
  --color-surface-light: #f5f5f8;

  --color-text: var(--white);
  --color-text-muted: var(--lavender-grey);
  --color-text-dark: #050508;
  --color-text-link: var(--egyptian-blue);

  --color-primary: var(--egyptian-blue);
  --color-accent: var(--deep-saffron);
  --color-border-subtle: rgba(147, 139, 161, 0.35);

  /* Section alternation (dark theme) */
  --section-bg-1: #000000;
  --section-bg-2: #0a0a12;
  --section-text: #ffffff;
  --section-text-muted: var(--lavender-grey);
  --body-bg: radial-gradient(circle at top, #05060d 0, #020308 55%, #000000 100%);
  --card-bg: rgba(6, 6, 14, 0.98);
  --card-border: rgba(147, 139, 161, 0.5);
  --pillar-bg: radial-gradient(circle at top left, rgba(147, 139, 161, 0.16), transparent 55%),
    rgba(4, 4, 10, 0.96);
  --section-surface-bg: rgba(4, 4, 10, 0.9);
  --form-input-bg: rgba(3, 3, 10, 0.95);
  --form-input-border: rgba(147, 139, 161, 0.5);
  --form-input-text: var(--white);

  /* CTA gradient stops (shared) */
  --btn-gradient-start: rgba(254, 144, 0, 0.96);
  --btn-gradient-mid: rgba(254, 144, 0, 0.45);
  --btn-gradient-end: rgba(10, 54, 157, 0.85);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.25);

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --font-display: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Segoe UI", sans-serif;
}

/* Light theme */
[data-theme="light"] {
  --section-bg-1: #ffffff;
  --section-bg-2: #f0f0f4;
  --section-text: #050508;
  --section-text-muted: #5b5666;
  --body-bg: #f5f5f8;
  --card-bg: rgba(255, 255, 255, 0.98);
  --card-border: rgba(0, 0, 0, 0.12);
  --pillar-bg: rgba(255, 255, 255, 0.95);
  --section-surface-bg: rgba(248, 248, 252, 0.98);
  --form-input-bg: rgba(255, 255, 255, 0.98);
  --form-input-border: rgba(0, 0, 0, 0.15);
  --form-input-text: #050508;
  --btn-gradient-start: rgba(254, 144, 0, 0.96);
  --btn-gradient-mid: rgba(254, 144, 0, 0.35);
  --btn-gradient-end: rgba(10, 54, 157, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--body-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -2;
  background-image: radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 60% 40%, rgba(254, 144, 0, 0.4), transparent),
    radial-gradient(2px 2px at 85% 70%, rgba(10, 54, 157, 0.4), transparent);
  opacity: 0.55;
  pointer-events: none;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
  opacity: 0.08;
}

body::after {
  opacity: 0.35;
  filter: blur(0.3px);
  animation: starfield-drift 60s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

a {
  color: var(--color-text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

main {
  display: block;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
}

@media (min-width: 960px) {
  .shell {
    padding: 2rem 2rem 4rem;
  }
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.5rem;
  /* Gradient only in a band behind the nav pill so it doesn’t overlay content when scrolling */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 85%);
}

.nav-inner {
  max-width: 1120px;
  width: calc(100% - 2.5rem);
  margin: 0 auto;
  padding: 0.65rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

@media (min-width: 960px) {
  .nav-inner {
    padding-inline: 1.75rem;
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-img {
    height: 34px;
  }
}

.nav-orbit {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(254, 144, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(10, 54, 157, 0.5);
  position: relative;
  overflow: visible;
}

.nav-orbit-core {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--deep-saffron), var(--egyptian-blue));
}

.nav-orbit-satellite {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--lavender-grey);
  top: -2px;
  left: 50%;
  transform-origin: 50% 200%;
  animation: orbit 18s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nav-orbit-satellite {
    animation: none;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav-link {
  color: #5b5666;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-text-dark);
}

.nav-products {
  position: relative;
}

.nav-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #5b5666;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.nav-products-toggle:hover {
  color: var(--color-text-dark);
}

.nav-products-menu {
  position: absolute;
  top: 150%;
  right: 0;
  min-width: 260px;
  background: #05050a;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-subtle);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-products-menu[data-open="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-products-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav-products-item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-products-item-body {
  display: block;
  min-width: 0;
}

.nav-products-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text);
}

.nav-products-item .nav-products-item-body > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

.nav-products-item:hover {
  background: rgba(147, 139, 161, 0.12);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 139, 161, 0.6);
  background: #f5f5f8;
  color: #5b5666;
  cursor: pointer;
}

.nav-lang-toggle span[data-active="true"] {
  color: var(--color-text-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* Theme toggle (light/dark) - accessibility */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(147, 139, 161, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #5b5666;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  color: var(--color-text-dark);
  border-color: rgba(147, 139, 161, 0.8);
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--egyptian-blue);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle .theme-icon-dark {
  display: none;
}

.theme-toggle .theme-icon-light {
  display: block;
}

[data-theme="light"] .theme-toggle .theme-icon-dark {
  display: block;
}

[data-theme="light"] .theme-toggle .theme-icon-light {
  display: none;
}

.nav-lang-pill {
  position: absolute;
  inset: 1px;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 160ms ease,
    border-color 160ms ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--btn-gradient-start) 0%,
    var(--btn-gradient-mid) 45%,
    var(--btn-gradient-end) 100%
  );
  color: var(--color-text-dark);
  box-shadow: var(--shadow-soft);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-ghost:focus-visible,
.nav-link:focus-visible,
.nav-products-toggle:focus-visible,
.home-hero-scroll:focus-visible,
.checkbox-pill:focus-visible,
.page-footer-links a:focus-visible {
  outline: 2px solid var(--egyptian-blue);
  outline-offset: 3px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.btn-outline {
  background: transparent;
  border-color: rgba(147, 139, 161, 0.6);
  color: var(--color-text-muted);
}

.btn-outline:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-outline {
    transition: none;
  }
}

/* Hero */

.hero {
  position: relative;
  padding-top: 6.25rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 4.25rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--deep-saffron);
  box-shadow: 0 0 18px rgba(254, 144, 0, 0.7);
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 32rem;
}

.hero-support {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 139, 161, 0.7);
  background: rgba(5, 5, 12, 0.7);
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-meta-value {
  font-weight: 500;
  color: var(--color-text);
}

.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  transform: translateY(8px);
}

.hero-orbit-core {
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(254, 144, 0, 0.5), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(10, 54, 157, 0.8), transparent 70%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.14), transparent 72%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8);
}

.hero-orbit-ring {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  border: 1px dashed rgba(147, 139, 161, 0.5);
}

.hero-orbit-ring:nth-child(2) {
  inset: 4%;
  opacity: 0.5;
}

.hero-orbit-satellite {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--deep-saffron);
  box-shadow: 0 0 24px rgba(254, 144, 0, 0.9);
  top: 0;
  left: 50%;
  transform-origin: 50% 160%;
  animation: orbit 24s linear infinite;
}

.hero-orbit-satellite--secondary {
  width: 7px;
  height: 7px;
  background: var(--egyptian-blue);
  box-shadow: 0 0 20px rgba(10, 54, 157, 0.9);
  top: auto;
  bottom: -10px;
  transform-origin: 50% -130%;
  animation-duration: 32s;
}

.hero-metric {
  position: absolute;
  right: -12px;
  bottom: 24px;
  background: rgba(4, 4, 10, 0.95);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(147, 139, 161, 0.65);
  box-shadow: var(--shadow-subtle);
  max-width: 210px;
}

.hero-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.hero-metric-value {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.hero-metric-value strong {
  font-size: 1rem;
}

.hero-metric-value span {
  font-size: 0.75rem;
  color: var(--color-text);
}

.hero-metric-caption {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .hero-orbit {
    margin-top: 1.75rem;
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes starfield-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(40px);
  }
}

.hero,
.section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

body.is-ready .hero,
body.is-ready .section {
  opacity: 1;
  transform: translateY(0);
}

/* Standard page hero (shared structure for main heroes) */

.page-hero,
.home-hero {
  position: relative;
  margin-top: 0;
  padding-top: 7.25rem;
  padding-bottom: 4.25rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.page-hero-inner,
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
}

.home-hero .home-hero-inner {
  text-align: center;
}

.page-hero-bg,
.home-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.page-hero-bg::after,
.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65) 40%, #000000 100%);
}

.home-hero-subtitle {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.7rem;
}

.page-hero-shape,
.home-hero-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 0;
  color: #000000;
}

.home-hero-cta {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.home-hero-cta.hero-ctas {
  justify-content: center;
}

.home-hero-scroll {
  position: absolute;
  bottom: calc(2rem + 35px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.home-hero-scroll svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.home-hero-scroll-icon {
  animation: slideDownIcon 1.3s ease-in-out infinite;
}

@keyframes slideDownIcon {
  0% {
    transform: translateY(-4px);
    opacity: 0.2;
  }
  40% {
    transform: translateY(2px);
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* CloudOps hero variant (uses standard page hero) */

.cloudops-hero .page-hero-inner {
  max-width: 1120px;
  padding-inline: max(1.5rem, env(safe-area-inset-left)) max(1.5rem, env(safe-area-inset-right));
}

@media (min-width: 960px) {
  .cloudops-hero .page-hero-inner {
    padding-inline: max(2rem, env(safe-area-inset-left)) max(2rem, env(safe-area-inset-right));
  }
}

.cloudops-hero .hero-grid {
  max-width: 1120px;
  margin: 0 auto;
}

.cloudops-hero .page-hero-bg::after {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.26), transparent),
    radial-gradient(1px 1px at 78% 32%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(1px 1px at 30% 78%, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7) 40%, #000000 100%);
}

/* Floating orbs / micro-engagements */

.home-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.home-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: orb-float 18s ease-in-out infinite;
}

.home-hero-orb--primary {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(147, 139, 161, 0.4), transparent 70%);
  top: 18%;
  left: max(4%, 40px);
  animation-duration: 26s;
}

.home-hero-orb--secondary {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(147, 139, 161, 0.35), transparent 70%);
  top: 35%;
  right: max(6%, 60px);
  animation-duration: 22s;
  animation-direction: reverse;
}

.home-hero-orb--tertiary {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.5), transparent 65%);
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 30s;
}

@keyframes orb-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.0;
  }
  15% {
    opacity: 0.7;
  }
  50% {
    transform: translate3d(30px, -24px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-18px, 20px, 0) scale(1);
    opacity: 0.7;
  }
}

/* Sections - alternating light/dark (theme-aware) */

.section {
  margin-top: 0;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 0;
}

@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Alternating section backgrounds under main (full-width sections) */
main > section.section:nth-of-type(odd) {
  background: var(--section-bg-1);
  color: var(--section-text);
}

main > section.section:nth-of-type(even) {
  background: var(--section-bg-2);
  color: var(--section-text);
}

/* Curved transitions between sections (subtle waves) */
main > section.section:nth-of-type(n + 2)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -56px;
  height: 72px;
  border-radius: 50% 50% 0 0 / 72px 72px 0 0;
  z-index: -1;
  pointer-events: none;
}

main > section.section:nth-of-type(2n)::before {
  background: var(--section-bg-2);
}

main > section.section:nth-of-type(2n + 1)::before {
  background: var(--section-bg-1);
}

/* Reserve muted for short labels only; body/lead/cards/lists use full contrast */
.section .section-kicker,
.section .form-label {
  color: var(--section-text-muted);
}

.section .section-lead,
.section .card-body,
.section .card-list,
.section .pillar-tagline,
.section .pillar-list,
.section .products-card-body,
.section .products-card-list,
.section .who-bullets,
.section .signal-list,
.section .uptime-caption,
.section .tier-card-ideal,
.section .tier-card-list {
  color: var(--section-text);
}

.section .engagement-step {
  color: var(--section-text);
}

.section .engagement-step-label {
  color: var(--section-text-muted);
}

.section .signal-label {
  color: var(--section-text);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.85rem;
}

.section-lead {
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pillar {
  background: var(--pillar-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-subtle);
}

.pillar-title {
  font-size: 0.98rem;
  margin: 0 0 0.25rem;
}

.pillar-tagline {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.pillar-bullet {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  margin-top: 0.4rem;
  background: var(--deep-saffron);
}

.section-surface {
  background: var(--section-surface-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-subtle);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card-title {
  font-size: 0.96rem;
  margin: 0;
}

.card-body {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.card-list li {
  margin-bottom: 0.4rem;
}

.card-footer {
  margin-top: auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(254, 144, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.products-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.products-card-title {
  font-size: 0.96rem;
  margin: 0;
}

.products-card-body {
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.products-card-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.products-card-list li {
  margin-bottom: 0.4rem;
}

.products-card-footer {
  margin-top: auto;
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.who-bullets {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.4rem;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .signal-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.signal-label {
  font-weight: 500;
  color: var(--color-text);
}

.uptime-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--section-surface-bg);
  font-size: 0.8rem;
}

.uptime-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--section-text-muted);
  font-size: 0.75rem;
}

.uptime-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 54, 157, 0.2);
  color: var(--color-text);
}

.uptime-caption {
  color: var(--section-text-muted);
}

.uptime-floating {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--section-surface-bg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.uptime-floating iframe {
  display: block;
  border: 0;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--section-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  line-height: 0;
}

.modal-close:hover {
  color: var(--section-text);
  background: rgba(147, 139, 161, 0.15);
}

.modal-close:focus-visible {
  outline: 2px solid var(--egyptian-blue);
  outline-offset: 2px;
}

.modal-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--section-text);
}

.modal-description {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--section-text);
}

.modal-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--section-text-muted);
}

.modal-form-field {
  margin-bottom: 1rem;
}

.modal-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal-form-status {
  font-size: 0.88rem;
  color: var(--section-text);
}

.modal-form-status.form-status--success {
  color: var(--color-primary);
}

/* Forms */

.form {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.8rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-field {
  margin-bottom: 0.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--form-input-border);
  background: var(--form-input-bg);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  color: var(--form-input-text);
  outline: none;
}

.form-textarea {
  border-radius: 14px;
  min-height: 110px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--deep-saffron);
  box-shadow: 0 0 0 1px rgba(254, 144, 0, 0.7);
}

.form-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.checkbox-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 139, 161, 0.6);
  font-size: 0.78rem;
  cursor: pointer;
}

.checkbox-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-pill span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.checkbox-pill[data-checked="true"] {
  border-color: var(--deep-saffron);
  background: rgba(254, 144, 0, 0.12);
}

.checkbox-pill[data-checked="true"] span {
  color: var(--color-text);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.form-consent input[type="checkbox"] {
  margin-top: 0.15rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.45rem;
}

.form-actions {
  margin-top: 1.1rem;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.form-status--success {
  color: #54e3a5;
}

.form-status--error {
  color: #ff7575;
}

/* CloudOps specific */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .tiers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tier-card {
  background: rgba(6, 6, 14, 0.96);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(147, 139, 161, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.tier-card-title {
  font-size: 0.98rem;
  margin: 0;
}

.tier-card-ideal {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.tier-card-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.7rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.tier-card-list li {
  margin-bottom: 0.25rem;
}

.tier-card-footer {
  margin-top: auto;
}

.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(254, 144, 0, 0.9);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(147, 139, 161, 0.4);
}

.comparison-table th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-muted);
}

.comparison-table td strong {
  color: var(--color-text);
}

.engagement-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .engagement-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.engagement-step {
  background: rgba(6, 6, 14, 0.96);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(147, 139, 161, 0.7);
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.engagement-step-title {
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
  color: var(--color-text);
}

.engagement-step-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.page-footer {
  border-top: 1px solid rgba(147, 139, 161, 0.35);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--section-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.page-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.page-footer-links a {
  color: var(--section-text);
}

.page-footer-links a:hover {
  color: var(--color-text);
}

