/* =========================================================
   SpaceAi – Landing (style.css)
   - Dark AI "galaxy" aesthetic
   - Sticky, glassy header with image logo
   - Hero with moving galaxy background & pie chart
   - Top illustration grid
   - Button loading states (animated dots)
   - Full-page preloader with logo + title
   - Desktop-only mobile gate overlay
   ========================================================= */

/* -------------------- RESET & BASE -------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  --sa-bg: #020617;
  --sa-bg-alt: #020718;
  --sa-surface: rgba(15, 23, 42, 0.96);
  --sa-surface-soft: rgba(15, 23, 42, 0.9);

  --sa-border-subtle: rgba(148, 163, 184, 0.25);
  --sa-border-strong: rgba(148, 163, 184, 0.5);

  --sa-text: #e5e7eb;
  --sa-text-soft: #9ca3af;
  --sa-text-muted: #6b7280;

  --sa-accent: #38bdf8;
  --sa-accent-soft: rgba(56, 189, 248, 0.18);
  --sa-accent-strong: #0ea5e9;

  --sa-accent-2: #a855f7;
  --sa-accent-2-soft: rgba(168, 85, 247, 0.22);

  --sa-danger: #fb7185;
  --sa-success: #4ade80;

  --sa-radius-lg: 1rem;
  --sa-radius-xl: 1.5rem;
  --sa-radius-pill: 999px;

  --sa-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.95);
  --sa-shadow-card: 0 18px 40px rgba(15, 23, 42, 0.9);

  --sa-header-height: 64px;
  /* WIDER layout so content doesn’t feel squeezed in the middle */
  --sa-max-width: 1320px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 55%),
    var(--sa-bg);
  color: var(--sa-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.is-preloading,
html.is-preloading body {
  overflow: hidden;
}

a {
  color: var(--sa-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Utility: shared max-width containers */

.sa-header-inner,
.sa-section-inner,
.hero-inner {
  max-width: var(--sa-max-width);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 3vw, 2rem);
}

/* -------------------- PRELOADER -------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.3), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(129, 140, 248, 0.3), transparent 65%),
    radial-gradient(circle at 50% 120%, rgba(8, 47, 73, 0.9), #020617);
  transition: opacity 400ms ease, visibility 400ms ease;
}

.preloader-inner {
  padding: 1.9rem 2.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.preloader-logo {
  width: 90px;
  height: 90px;
  border-radius: 1.3rem;
  object-fit: contain;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.9);
}

.preloader-title {
  margin: 0.6rem 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.preloader-subtitle,
.preloader-text {
  font-size: 0.85rem;
  color: var(--sa-text-soft);
  text-align: center;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* -------------------- DESKTOP-ONLY MOBILE GATE -------------------- */

.mobile-gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 1));
  text-align: center;
}

.mobile-gate-inner {
  max-width: 420px;
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  padding: 1.8rem 1.6rem 1.7rem;
}

.mobile-gate-logo {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  object-fit: contain;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
  margin-bottom: 0.6rem;
}

.mobile-gate-title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.mobile-gate-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

.mobile-gate--visible {
  display: flex;
}

/* Blur + disable content when gated */
body.mobile-gated .sa-header,
body.mobile-gated .sa-main {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* -------------------- ORBIT BACKGROUND -------------------- */

.bg-orbits {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(129, 140, 248, 0.24), transparent 65%),
    radial-gradient(circle at 50% 120%, rgba(8, 47, 73, 0.9), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: sa-orbits-move 24s ease-in-out infinite alternate;
}

@keyframes sa-orbits-move {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    transform: translate3d(-12px, 10px, 0) scale(1.02);
    filter: blur(1px);
  }
}

/* -------------------- PAGE SHELL -------------------- */

.sa-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sa-main {
  flex: 1 1 auto;
}

/* -------------------- STICKY HEADER -------------------- */

.sa-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--sa-border-subtle);
  backdrop-filter: blur(14px);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.sa-header-inner {
  padding-block: 0.6rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* we keep everything on one line longer by using more width + tighter gaps */
.sa-header-inner {
  flex-wrap: nowrap;
}

.sa-header.sa-header--scrolled {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.99));
  border-bottom-color: var(--sa-border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

/* Brand */

.sa-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.sa-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.65);
}

.sa-brand-text {
  display: flex;
  flex-direction: column;
}

.sa-brand-name {
  font-size: 1.02rem;
  font-weight: 600;
}

.sa-brand-tagline {
  font-size: 0.78rem;
  color: var(--sa-text-soft);
}

/* Nav */

.sa-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem; /* a bit tighter so it doesn’t wrap too early */
  margin-left: 1.3rem;
  flex: 1 1 auto;
}

.sa-nav-link {
  position: relative;
  font-size: 0.86rem;
  color: var(--sa-text-soft);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--sa-radius-pill);
  border: 1px solid transparent;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.sa-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sa-accent), var(--sa-accent-2));
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sa-nav-link:hover {
  color: var(--sa-text);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
}

.sa-nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Header actions */

.sa-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* -------------------- BUTTONS -------------------- */

.sa-cta-button,
.sa-ghost-button {
  border-radius: var(--sa-radius-pill);
  border: 1px solid transparent;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    filter 160ms ease,
    opacity 160ms ease;
}

/* CTA button */

.sa-cta-button {
  color: #020617;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
}

.sa-cta-button--primary {
  padding-inline: 1.5rem;
}

.sa-cta-button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.04);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.sa-cta-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

/* Ghost button */

.sa-ghost-button {
  background: transparent;
  color: var(--sa-text-soft);
  border-color: rgba(148, 163, 184, 0.65);
}

.sa-ghost-button:hover {
  background: rgba(15, 23, 42, 0.96);
  color: var(--sa-text);
  border-color: var(--sa-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
}

/* Discord version */

.sa-ghost-button--discord {
  border-color: rgba(88, 101, 242, 0.9);
}

/* Button loading states – animated dots */

.sa-cta-button[data-loading="true"],
.sa-ghost-button[data-loading="true"] {
  opacity: 0.9;
  pointer-events: none;
  position: relative;
}

.sa-cta-button[data-loading="true"]::after,
.sa-ghost-button[data-loading="true"]::after {
  content: "•••";
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.9em;
  letter-spacing: 0.16em;
  animation: sa-dots 0.9s infinite ease-in-out;
}

/* Nav toggle (mobile) */

.sa-nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  cursor: pointer;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.22rem;
}

.sa-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  transition: transform 160ms ease, opacity 160ms ease;
}

.sa-header--nav-open .sa-nav-toggle span:first-child {
  transform: translateY(2px) rotate(45deg);
}

.sa-header--nav-open .sa-nav-toggle span:last-child {
  transform: translateY(-2px) rotate(-45deg);
}

/* -------------------- HERO -------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--sa-header-height));
  display: flex;
  align-items: stretch;
  padding: 3.2rem 0 3.2rem;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 1));
}

/* Moving galaxy background specifically for hero */

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(circle at 20% 90%, rgba(8, 47, 73, 0.9), transparent 70%);
  opacity: 0.8;
  mix-blend-mode: screen;
  filter: blur(1px);
  animation: sa-galaxy-pan 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes sa-galaxy-pan {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-30px, 15px, 0) scale(1.03);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 2.6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero left card */

.hero-left {
  position: relative;
  padding: 1.6rem 1.8rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: var(--sa-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sa-text-muted);
  margin: 0 0 0.75rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 2.5rem + 1vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title-highlight {
  background: linear-gradient(to right, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

/* Rotating paragraphs */

.hero-animated-wrapper {
  position: relative;
  margin-bottom: 1.4rem;
  min-height: 5.4rem;
}

.hero-paragraph {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 0.98rem;
  color: var(--sa-text-soft);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-paragraph.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Chips */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.chip {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--sa-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  color: var(--sa-text-soft);
}

/* Hero actions */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Hero metrics */

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.06),
      rgba(129, 140, 248, 0.04)
    ),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
}

.hero-metric {
  min-width: 140px;
}

.hero-metric-label {
  font-size: 0.78rem;
  color: var(--sa-text-muted);
}

.hero-metric-group {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.hero-metric-value {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
}

.hero-metric-value--small {
  font-size: 1.1rem;
}

.hero-metric-suffix {
  font-size: 0.85rem;
  color: var(--sa-text-soft);
}

.hero-metric--movement {
  flex: 1 1 220px;
}

.hero-metric-movement {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.hero-metric-badge {
  font-size: 0.78rem;
  border-radius: var(--sa-radius-pill);
  padding: 0.16rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.96);
}

.hero-metric-badge--positive {
  border-color: rgba(74, 222, 128, 0.7);
  background: rgba(22, 163, 74, 0.14);
}

/* -------------------- HERO RIGHT – PIE CARD -------------------- */

.hero-right {
  position: relative;
}

.pie-card {
  position: relative;
  padding: 1.4rem 1.3rem 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 65%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
  overflow: hidden;
}

.pie-header {
  margin-bottom: 0.9rem;
}

.pie-title {
  margin: 0 0 0.26rem;
  font-size: 1.02rem;
}

.pie-subtitle {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sa-text-soft);
}

/* Layout: no squeezing of pie chart */
.pie-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: center;
}

.pie-chart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Big pie chart – ALWAYS perfectly circular */
.pie-chart {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;        /* keeps it a circle, no more oval */
  height: auto;
  border-radius: 50%;
  background: conic-gradient(
    var(--sa-accent) 0deg 290deg,
    var(--sa-accent-2) 290deg 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.4);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.pie-card:hover .pie-chart {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.7);
}

.pie-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-center {
  text-align: center;
}

.pie-center-label {
  display: block;
  font-size: 0.75rem;
  color: var(--sa-text-muted);
}

.pie-center-value {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.pie-center-unit {
  font-size: 0.85rem;
  margin-left: 0.1rem;
  color: var(--sa-text-soft);
}

/* Legend */

.pie-legend {
  font-size: 0.86rem;
  color: var(--sa-text-soft);
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.pie-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.pie-swatch--projects {
  background: var(--sa-accent);
}

.pie-swatch--taskers {
  background: var(--sa-accent-2);
}

.pie-legend-label {
  font-weight: 500;
  color: var(--sa-text);
  display: block;
}

.pie-legend-value {
  display: block;
  color: var(--sa-text-soft);
  font-size: 0.84rem;
}

.pie-footnote {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: var(--sa-text-muted);
}

/* Discord callout under pie */

.discord-callout {
  margin-top: 1rem;
  border-radius: var(--sa-radius-lg);
  border: 1px solid var(--sa-border-subtle);
  padding: 0.9rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.23), rgba(15, 23, 42, 0.98));
  font-size: 0.85rem;
  color: var(--sa-text-soft);
  box-shadow: var(--sa-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* -------------------- GENERIC SECTION LAYOUT -------------------- */

.sa-section {
  padding: 4.4rem 0 4.1rem;
}

.sa-section-inner {
  /* already has max-width + padding via global rule */
}

.sa-section--visual {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.sa-section--striped {
  background: linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.98),
      rgba(15, 23, 42, 0.98)
    );
}

.sa-section--workspace {
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

.sa-section--metrics {
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 1), rgba(2, 6, 23, 1));
}

.sa-section-header {
  max-width: 680px;
  margin-bottom: 2.1rem;
}

.sa-section-title {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
}

.sa-section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sa-text-soft);
}

/* Section CTA (centered buttons) */

.section-cta {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

/* -------------------- VISUAL GRID -------------------- */

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.visual-card {
  border-radius: var(--sa-radius-lg);
  border: 1px solid var(--sa-border-subtle);
  padding: 1rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.32), transparent 65%),
    radial-gradient(circle at bottom right, rgba(8, 47, 73, 0.9), rgba(15, 23, 42, 1));
  box-shadow: var(--sa-shadow-card);
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

.visual-card--image {
  padding: 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 1);
}

.visual-card--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms ease;
}

.visual-card--image:hover img {
  transform: scale(1.06);
}

.visual-title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--sa-text);
}

.visual-text {
  margin: 0 0 0.4rem;
}

.visual-list {
  margin: 0;
  padding-left: 1.1rem;
}

.visual-list li {
  margin-bottom: 0.28rem;
}

/* -------------------- DUAL LAYOUT (WEALTH SECTION) -------------------- */

.dual-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.7rem;
}

.dual-card {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem 1.15rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 70%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

.dual-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--sa-text);
}

.dual-text {
  margin: 0 0 0.45rem;
}

.dual-list {
  margin: 0 0 0.4rem;
  padding-left: 1.1rem;
}

.dual-list li {
  margin-bottom: 0.3rem;
}

/* -------------------- WORKSPACE PREVIEW -------------------- */

.workspace-preview {
  border-radius: var(--sa-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.99);
  box-shadow: var(--sa-shadow-soft);
  overflow: hidden;
}

.workspace-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 780;
}

.workspace-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 500ms ease;
}

.workspace-preview:hover .workspace-shot {
  transform: scale(1.07);
}

.workspace-details {
  margin-top: 1.8rem;
}

.workspace-lead {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  color: var(--sa-text-soft);
}

.workspace-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.workspace-detail {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.9rem 1rem;
  box-shadow: var(--sa-shadow-card);
}

.workspace-detail-title {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
}

.workspace-detail-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sa-text-soft);
}

/* -------------------- HOW IT WORKS (STEPS) -------------------- */

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.step-item {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 1rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
}

.step-title {
  margin: 0 0 0.3rem;
  font-size: 0.96rem;
}

.step-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

.steps-side {
  opacity: 1;
}

.callout {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(248, 250, 252, 0.2);
  padding: 1.05rem 1.2rem;
  background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.22), transparent 60%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
}

.callout-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.callout-text {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

/* -------------------- SECURITY & METRICS -------------------- */

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.security-copy {
  font-size: 0.95rem;
  color: var(--sa-text-soft);
}

.security-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.security-text {
  margin: 0 0 0.85rem;
}

.security-list {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.security-list li {
  margin-bottom: 0.35rem;
}

/* Stat cards */

.security-visuals {
  display: grid;
  gap: 1rem;
}

.stat-card {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.95rem 1rem;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
  font-size: 0.9rem;
  color: var(--sa-text-soft);
}

.stat-title {
  margin: 0 0 0.2rem;
  font-size: 0.96rem;
  color: var(--sa-text);
}

.stat-subtitle {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--sa-text-soft);
}

.stat-footnote {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: var(--sa-text-soft);
}

/* Donut chart */

.donut {
  position: relative;
  width: 180px;
  height: 180px;
  margin-top: 0.4rem;
}

.donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: conic-gradient(
    var(--sa-success) 0deg 350deg,
    rgba(148, 163, 184, 0.25) 350deg 360deg
  );
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.4);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.donut-inner {
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-value {
  font-size: 1.3rem;
  font-weight: 600;
}

.donut-label {
  font-size: 0.8rem;
  color: var(--sa-text-soft);
  text-align: center;
}

.stat-card:hover .donut-ring {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.7);
}

/* Bar charts */

.bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.bar-label {
  color: var(--sa-text-soft);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(to right, var(--sa-accent-2), var(--sa-accent));
  width: var(--fill, 0%);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
  transform-origin: center;
}

.stat-card--bars:hover .bar-fill {
  transform: scaleY(1.15);
  box-shadow: 0 0 18px rgba(129, 140, 248, 0.7);
}

/* Noise chart */

.noise-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.noise-label {
  color: var(--sa-text-soft);
}

.noise-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.noise-bar-fill {
  height: 100%;
  border-radius: inherit;
  width: var(--fill, 0%);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
  transform-origin: center;
}

.noise-bar-fill--red {
  background: linear-gradient(to right, #fb7185, #f97316);
}

.noise-bar-fill--green {
  background: linear-gradient(to right, #4ade80, #22c55e);
}

.stat-card--noise:hover .noise-bar-fill--green {
  transform: scaleY(1.18);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

.stat-card--noise:hover .noise-bar-fill--red {
  transform: scaleY(1.18);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.7);
}

/* -------------------- FAQ -------------------- */

.faq-list {
  border-radius: var(--sa-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--sa-shadow-card);
  padding: 0.8rem 1rem 1.1rem;
}

.faq-item {
  border-radius: 0.75rem;
  padding: 0.45rem 0.25rem;
}

.faq-item + .faq-item {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
}

.faq-question {
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  color: var(--sa-text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  transform-origin: center;
  transition: transform 150ms ease;
  color: var(--sa-accent);
}

.faq-item[open] .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--sa-text-soft);
}

.faq-answer p {
  margin: 0.05rem 0 0.5rem;
}

.faq-footer {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--sa-text-soft);
}

/* -------------------- SCROLL ANIMATION HOOK -------------------- */

.js-animate-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    filter 320ms ease;
}

.js-animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* -------------------- KEYFRAMES -------------------- */

@keyframes sa-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sa-dots {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

/* -------------------- RESPONSIVE -------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.1rem;
  }

  .steps-layout,
  .security-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .security-layout {
    gap: 2rem;
  }

  .dual-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .sa-header-inner {
    padding-inline: 1.2rem;
  }

  .sa-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 0.9rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      max-height 220ms ease;
  }

  .sa-header--nav-open .sa-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 260px;
  }

  .sa-nav-link {
    padding: 0.55rem 0.75rem;
  }

  .sa-header-actions {
    margin-left: auto;
    gap: 0.55rem;
  }

  .sa-nav-toggle {
    display: inline-flex;
  }

  .sa-cta-button {
    padding-inline: 1.05rem;
  }

  .hero {
    padding-top: 2.7rem;
    padding-bottom: 3rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .hero-animated-wrapper {
    min-height: 6rem;
  }

  .visual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dual-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-section-inner {
    padding-inline: 1.2rem;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .pie-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pie-chart {
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sa-cta-button,
  .sa-ghost-button {
    width: 100%;
    justify-content: center;
  }

  .hero-metrics {
    gap: 1.1rem;
  }
}

