/* IMP-0011: utility class so templates need no inline style= (CSP style-src drops 'unsafe-inline') */
.text-muted { color: var(--text-muted); }

/* ========== TOKENS — Chrome / Silver ========== */
:root {
  --chrome: #71717a;
  --chrome-light: #a1a1aa;
  --chrome-dark: #52525b;
  --chrome-shine: #d4d4d8;
  --chrome-dim: rgba(113, 113, 122, 0.07);
  --chrome-glow: rgba(113, 113, 122, 0.10);
  --silver: linear-gradient(135deg, #e4e4e7 0%, #fafafa 40%, #d4d4d8 100%);
  --silver-text: linear-gradient(135deg, #3f3f46 0%, #71717a 100%);
  --bg-base: #fafafa;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f4f4f5;
  --text: #18181b;
  --text-muted: #52525b;
  --text-faint: #a1a1aa;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --accent-cyan: #00d4ff;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 20px;
  background: var(--chrome);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--chrome);
  outline-offset: 2px;
}

/* ========== LAYOUT ========== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Audit #342 (BUG-0370): public content is never hidden behind JavaScript. */
.reveal {
  opacity: 1;
  transform: none;
}

/* ========== NAVIGATION ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
}

.nav-wordmark {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.network-product-nav .nav-wordmark {
  line-height: 1.05;
}

.network-product-nav .nav-wordmark small {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 550;
  letter-spacing: 0.015em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  margin-left: 8px;
  padding: 7px 16px !important;
  background: var(--text) !important;
  color: #fff !important;
  font-weight: 500 !important;
  border-radius: 980px !important;
  font-size: 13px !important;
  transition: opacity 0.15s !important;
}
.nav-cta:hover {
  opacity: 0.8 !important;
  background: var(--text) !important;
  transform: none;
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  padding: 6px 10px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 900px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px 20px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
  .nav-cta { margin-left: 0 !important; text-align: center; margin-top: 8px; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 36px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(161, 161, 170, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 75% 70%, rgba(113, 113, 122, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero { padding: 24px 0 0; min-height: auto; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chrome);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 20px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .hero-sub { margin: 0 auto 20px; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.85;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text);
}
.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--chrome-light);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 9px 6px;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ========== HERO VISUAL ========== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-visual { display: none; }
}

.mesh-map {
  width: 100%;
  max-width: 560px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

/* ========== STATS BAR ========== */
.stats-bar {
  position: relative;
  z-index: 1;
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats-grid > div {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.stats-grid > div:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stats-grid > div:nth-child(2)::after { display: none; }
}

/* ========== TRUST BAR ========== */
.trust-bar {
  padding: 18px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.trust-bar p {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.trust-bar .trust-highlights {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.trust-highlights span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 450;
}
.trust-highlights span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--chrome-light);
  flex-shrink: 0;
}

/* ========== SECTIONS ========== */
.section {
  padding: clamp(48px, 8vw, 80px) 0;
}
.section-alt {
  background: var(--bg-raised);
}

.section-header {
  margin-bottom: 24px;
}
.section-header.center { text-align: center; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--chrome);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
}
.section-header.center .section-desc {
  margin: 0 auto;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--chrome-dark);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== VISUAL PORTFOLIO (IMP-0023) ========== */
.portfolio-page {
  --portfolio-violet: #6d5dfc;
  --portfolio-cyan: #0f9fbd;
  --portfolio-green: #178a67;
  --portfolio-coral: #d85f52;
  margin: 0 -20px;
}

.portfolio-page > .hero,
.portfolio-page > .section {
  border-radius: 20px;
}

.portfolio-hero {
  min-height: min(74vh, 680px);
  margin-top: 12px;
  background:
    radial-gradient(circle at 83% 18%, rgba(109, 93, 252, 0.13), transparent 27%),
    radial-gradient(circle at 72% 78%, rgba(15, 159, 189, 0.13), transparent 31%),
    linear-gradient(145deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid rgba(23, 23, 29, 0.06);
}

.portfolio-hero .hero-text {
  max-width: 570px;
}

.portfolio-hero .hero h1,
.portfolio-hero h1 {
  font-size: clamp(42px, 5.6vw, 72px);
  max-width: 690px;
}

.portfolio-hero .hero-sub {
  max-width: 610px;
  font-size: 17px;
}

.portfolio-constellation {
  position: relative;
  min-height: 465px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 1fr 0.78fr;
  gap: 14px;
  padding: 30px 8px 30px 30px;
}

.portfolio-constellation::before,
.portfolio-constellation::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(82, 82, 91, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.portfolio-constellation::before {
  inset: 3% 9% 8% 0;
  transform: rotate(-8deg);
}

.portfolio-constellation::after {
  inset: 17% 1% 0 16%;
  transform: rotate(11deg);
}

.constellation-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  box-shadow: 0 20px 55px rgba(27, 27, 40, 0.17);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.constellation-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -72px;
  right: -54px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.06),
              0 0 0 64px rgba(255, 255, 255, 0.035);
}

.constellation-product-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}

.constellation-product-art--beava {
  inset: 4px 4px auto auto;
  width: 78%;
  height: 76%;
  object-fit: contain;
  object-position: top right;
  opacity: 0.92;
}

.constellation-card--mystrix {
  grid-row: 1 / 3;
  background: linear-gradient(145deg, #31256f, #6d5dfc 63%, #ac8dff);
}

.constellation-card--beava {
  background: linear-gradient(145deg, #075e67, #0f9fbd 62%, #4bd3c4);
}

.constellation-card strong {
  position: relative;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.constellation-card > span:last-child {
  position: relative;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.constellation-rank {
  position: absolute;
  top: 20px;
  left: 22px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.constellation-orbit {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: stretch;
}

.constellation-orbit span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(82, 82, 91, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(39, 39, 52, 0.07);
  color: #41414b;
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.portfolio-index {
  position: relative;
  z-index: 3;
  width: calc(100% - 80px);
  margin: -34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.09);
  backdrop-filter: blur(16px);
}

.portfolio-index a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 22px;
  color: var(--text);
  text-decoration: none;
}

.portfolio-index a + a {
  border-left: 1px solid var(--border);
}

.portfolio-index strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.portfolio-index span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.portfolio-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 64px;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  top: -245px;
  right: -175px;
  border-radius: 50%;
  background: var(--portfolio-section-glow, rgba(113, 113, 122, 0.06));
  filter: blur(2px);
  pointer-events: none;
}

.portfolio-section .section-header {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 32px;
}

.portfolio-section .section-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--portfolio-label-bg, var(--chrome-dim));
  color: var(--portfolio-accent, var(--chrome-dark));
}

.portfolio-section--flagships {
  --portfolio-accent: var(--portfolio-violet);
  --portfolio-label-bg: rgba(109, 93, 252, 0.09);
  --portfolio-section-glow: rgba(109, 93, 252, 0.08);
  padding-top: 100px;
}

.portfolio-section--professional {
  --portfolio-accent: #4263ce;
  --portfolio-label-bg: rgba(66, 99, 206, 0.09);
  --portfolio-section-glow: rgba(66, 99, 206, 0.07);
}

.portfolio-section--people {
  --portfolio-accent: var(--portfolio-green);
  --portfolio-label-bg: rgba(23, 138, 103, 0.09);
  --portfolio-section-glow: rgba(23, 138, 103, 0.08);
}

.portfolio-section--purpose {
  --portfolio-accent: var(--portfolio-coral);
  --portfolio-label-bg: rgba(216, 95, 82, 0.09);
  --portfolio-section-glow: rgba(216, 95, 82, 0.07);
}

.portfolio-grid {
  position: relative;
  z-index: 1;
  gap: 16px;
}

.portfolio-grid--flagships {
  grid-template-columns: 1.08fr 0.92fr;
}

.portfolio-card {
  --card-accent: var(--portfolio-accent, var(--chrome));
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px 24px 22px;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(24, 24, 27, 0.09);
  box-shadow: 0 7px 25px rgba(24, 24, 27, 0.045);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-accent);
}

.portfolio-card::after {
  content: attr(data-mark);
  position: absolute;
  top: 10px;
  right: 16px;
  color: color-mix(in srgb, var(--card-accent) 12%, transparent);
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.portfolio-card h3 {
  max-width: calc(100% - 64px);
  margin-bottom: 14px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: -0.025em;
}

.portfolio-card > p:not(:last-child) {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.62;
}

.portfolio-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
  list-style: none;
}

.portfolio-card li {
  position: relative;
  padding: 8px 10px 8px 27px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card-accent) 5%, #fff);
  color: #484852;
  font-size: 12px;
  line-height: 1.4;
}

.portfolio-card li::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.portfolio-card > p:last-child {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.portfolio-card a {
  color: var(--card-accent);
  font-weight: 650;
  text-decoration: none;
}

.portfolio-card a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portfolio-section--professional .portfolio-card:nth-child(2) { --card-accent: #8d4fc4; }
.portfolio-section--professional .portfolio-card:nth-child(3) { --card-accent: #3b72b9; }
.portfolio-section--professional .portfolio-card:nth-child(4) { --card-accent: #0f8292; }
.portfolio-section--professional .portfolio-card:nth-child(5) { --card-accent: #596c82; }
.portfolio-section--people .portfolio-card:nth-child(2) { --card-accent: #318757; }
.portfolio-section--people .portfolio-card:nth-child(3) { --card-accent: #c6537c; }
.portfolio-section--people .portfolio-card:nth-child(4) { --card-accent: #8756bc; }
.portfolio-section--people .portfolio-card:nth-child(5) { --card-accent: #cf7d32; }
.portfolio-section--purpose .portfolio-card:nth-child(2) { --card-accent: #9b6837; }
.portfolio-section--purpose .portfolio-card:nth-child(3) { --card-accent: #12829c; }
.portfolio-section--purpose .portfolio-card:nth-child(4) { --card-accent: #4f5d73; }
.portfolio-section--purpose .portfolio-card:nth-child(5) { --card-accent: #8b4e68; }

.portfolio-card--flagship {
  min-height: 535px;
  padding: 34px 32px 28px;
  border: 0;
  color: #fff;
  box-shadow: 0 24px 65px rgba(36, 31, 71, 0.18);
}

.portfolio-card--mystrix {
  --card-accent: #c9bcff;
  background: linear-gradient(145deg, #241b55 0%, #5341bd 58%, #826ed8 100%);
}

.portfolio-card--beava {
  --card-accent: #9cf0df;
  background: linear-gradient(145deg, #054d55 0%, #087f91 58%, #1caa9c 100%);
}

.portfolio-card--flagship::before {
  height: 100%;
  opacity: 0.14;
  background:
    radial-gradient(circle at 84% 16%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 27%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 91% 40%, #fff 0 1px, transparent 2px);
  background-size: 37px 37px, 53px 53px, 71px 71px;
}

.portfolio-card--flagship::after {
  top: 20px;
  right: 26px;
  color: rgba(255, 255, 255, 0.10);
  font-size: clamp(88px, 11vw, 150px);
}

.portfolio-card--flagship h3 {
  max-width: calc(100% - 130px);
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px);
}

.portfolio-card--flagship p,
.portfolio-card--flagship > p:not(:last-child) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
}

.portfolio-card--flagship li {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.89);
}

.portfolio-card--flagship li::before {
  background: var(--card-accent);
}

.portfolio-card--flagship > p:last-child {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.portfolio-card--flagship a {
  color: #fff;
}

.portfolio-flagship-art,
.portfolio-beava-art {
  width: 100%;
  height: 210px;
  margin-bottom: 24px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.portfolio-beava-art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 240, 187, 0.95), transparent 39%),
    linear-gradient(145deg, #e6f7ee, #9ee0cf);
}

.portfolio-beava-art img {
  width: auto;
  height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(42, 25, 8, 0.2));
}

.portfolio-section--thesis {
  background:
    radial-gradient(circle at 25% 30%, rgba(109, 93, 252, 0.11), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(15, 159, 189, 0.11), transparent 30%),
    #fff;
}

@media (hover: hover) and (pointer: fine) {
  .constellation-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 28px 65px rgba(27, 27, 40, 0.22);
  }
}

@media (max-width: 900px) {
  .portfolio-page { margin: 0 -20px; }
  .portfolio-hero .hero-grid { text-align: left; }
  .portfolio-hero .hero-sub { margin-left: 0; }
  .portfolio-hero .hero-actions { justify-content: flex-start; }
  .portfolio-constellation {
    min-height: 370px;
    padding: 0 0 28px;
  }
  .portfolio-index { width: calc(100% - 40px); }
  .portfolio-index a { padding: 16px; }
  .portfolio-grid--flagships { grid-template-columns: 1fr 1fr; }
  .portfolio-card--flagship { min-height: 570px; padding: 28px 24px 24px; }
}

@media (max-width: 680px) {
  .portfolio-page > .hero,
  .portfolio-page > .section { border-radius: 0; }
  .portfolio-hero { margin-top: 0; }
  .portfolio-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .portfolio-constellation {
    min-height: 430px;
    grid-template-columns: 1fr 0.92fr;
  }
  .constellation-card { padding: 18px; border-radius: 18px; }
  .constellation-rank { top: 15px; left: 16px; }
  .constellation-card strong { font-size: 27px; }
  .constellation-orbit { grid-template-columns: 1fr; }
  .constellation-orbit span { min-height: 50px; font-size: 10px; }
  .portfolio-index {
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
    margin-top: -22px;
  }
  .portfolio-index a:nth-child(3) { border-left: 0; }
  .portfolio-index a:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .portfolio-index a { padding: 14px; }
  .portfolio-section--flagships { padding-top: 78px; }
  .portfolio-grid--flagships { grid-template-columns: 1fr; }
  .portfolio-card--flagship { min-height: 0; }
  .portfolio-card--flagship h3 { max-width: calc(100% - 85px); }
  .portfolio-card { padding: 23px 19px 19px; }
  .portfolio-flagship-art,
  .portfolio-beava-art { height: 180px; }
}

/* ========== CORPORATE HOME ========== */
.company-home {
  margin: 0 -20px;
}

.company-home > section {
  border-radius: 20px;
}

.company-hero {
  min-height: min(78vh, 720px);
  margin-top: 12px;
  border: 1px solid rgba(24, 24, 27, 0.07);
  background:
    radial-gradient(circle at 78% 30%, rgba(109, 93, 252, 0.13), transparent 31%),
    radial-gradient(circle at 72% 78%, rgba(15, 159, 189, 0.11), transparent 28%),
    linear-gradient(145deg, #fff, #f4f5f8);
}

.company-hero .hero-text { max-width: 590px; }
.company-hero h1 { font-size: clamp(42px, 5.5vw, 70px); }
.company-hero .hero-sub { max-width: 590px; font-size: 17px; }

.company-hero-products {
  position: relative;
  min-height: 480px;
}

.company-product-shot {
  position: absolute;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(24, 24, 34, 0.2);
  transition: transform 0.2s ease;
}

.company-product-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.company-product-shot > span {
  position: absolute;
  left: 18px;
  bottom: 17px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 12, 25, 0.7);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.company-product-shot--mystrix {
  inset: 5% 5% 19% 0;
}

.company-product-shot--beava {
  right: 0;
  bottom: 2%;
  width: 39%;
  height: 47%;
  padding: 10px;
  background: linear-gradient(145deg, #f6e4bd, #2aa78d);
  border: 5px solid #fff;
}

.company-product-shot--beava img {
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(40, 22, 7, 0.23));
}

.company-product-shot--beava > span {
  right: 10px;
  left: 10px;
  bottom: 9px;
  text-align: center;
}

.company-identity-strip {
  position: relative;
  z-index: 3;
  width: calc(100% - 80px);
  margin: -36px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.09);
  backdrop-filter: blur(16px);
}

.company-identity-strip > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 19px 22px;
}

.company-identity-strip > div + div { border-left: 1px solid var(--border); }
.company-identity-strip strong { font-size: 14px; }
.company-identity-strip span { color: var(--text-muted); font-size: 11px; }

.company-flagships { padding-top: 105px; }
.company-flagships .section-header { max-width: 760px; }

.company-flagship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.company-flagship {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(24, 24, 27, 0.08);
}

.company-flagship-media {
  height: 290px;
  overflow: hidden;
  background: #0c0914;
}

.company-flagship-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.company-flagship-media--beava {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 9%;
  background:
    radial-gradient(circle at 28% 46%, rgba(255, 243, 199, 0.98), transparent 31%),
    linear-gradient(135deg, #e7f7ed, #8cd9c5);
}

.company-flagship-media--beava > img {
  width: 51%;
  height: 91%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(50, 27, 5, 0.21));
}

.beava-context {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 43%;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.beava-context span {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(8, 76, 64, 0.09);
  color: #185f52;
  font-size: 11px;
  font-weight: 700;
}

.company-flagship-copy { padding: 28px; }
.company-product-rank {
  display: inline-block;
  margin-bottom: 9px;
  color: #6d5dfc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.company-flagship--beava .company-product-rank { color: #087f72; }
.company-flagship-copy h3 { margin-bottom: 10px; font-size: 29px; letter-spacing: -0.035em; }
.company-flagship-copy p { color: var(--text-muted); font-size: 14px; line-height: 1.62; }
.company-flagship-copy > a { display: inline-block; margin-top: 20px; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }

.company-product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.company-product-tags span { padding: 5px 9px; border-radius: 999px; background: #f0eefc; color: #4c3da0; font-size: 10px; font-weight: 650; }
.company-flagship--beava .company-product-tags span { background: #e7f6f1; color: #126e5e; }

.company-portfolio-preview { background: #f3f4f6; }
.company-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.company-domain-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(24, 24, 27, 0.05);
}
.company-domain-card::after { content: ''; position: absolute; width: 170px; height: 170px; right: -65px; bottom: -80px; border-radius: 50%; background: var(--domain-glow); }
.company-domain-card--professional { --domain-accent: #5569c9; --domain-glow: rgba(85, 105, 201, 0.14); }
.company-domain-card--people { --domain-accent: #238663; --domain-glow: rgba(35, 134, 99, 0.14); }
.company-domain-card--purpose { --domain-accent: #c2694b; --domain-glow: rgba(194, 105, 75, 0.14); }
.company-domain-mark { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 28px; border-radius: 14px; background: var(--domain-glow); color: var(--domain-accent); font-weight: 800; }
.company-domain-card h3 { margin-bottom: 9px; font-size: 20px; }
.company-domain-card p { max-width: 250px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.company-domain-link { position: absolute; bottom: 23px; left: 26px; color: var(--domain-accent); font-size: 11px; font-weight: 700; }
.company-portfolio-action { margin-top: 26px; text-align: center; }

.company-method-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 65px; align-items: start; }
.company-method .section-header { position: sticky; top: 85px; }
.company-method .section-desc { margin-bottom: 20px; }
.company-method-steps { list-style: none; }
.company-method-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 21px 0; border-top: 1px solid var(--border); }
.company-method-steps li:last-child { border-bottom: 1px solid var(--border); }
.company-method-steps li > span { color: var(--text-faint); font-size: 12px; font-weight: 700; }
.company-method-steps strong { font-size: 17px; }
.company-method-steps p { margin-top: 5px; color: var(--text-muted); font-size: 13px; }

.company-network-note { background: linear-gradient(135deg, #eef0f4, #fff); }
.company-network-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.company-network-grid p { max-width: 710px; color: var(--text-muted); font-size: 14px; }
.company-network-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.company-cta { background: linear-gradient(140deg, #fff, #eef2f5); }

@media (hover: hover) and (pointer: fine) {
  .company-product-shot:hover { transform: translateY(-4px); }
  .company-domain-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(24, 24, 27, 0.08); }
}

@media (max-width: 900px) {
  .company-hero .hero-grid { text-align: left; }
  .company-hero .hero-sub { margin-left: 0; }
  .company-hero .hero-actions { justify-content: flex-start; }
  .company-hero-products { min-height: 430px; }
  .company-identity-strip { width: calc(100% - 40px); grid-template-columns: 1fr 1fr; }
  .company-identity-strip > div:nth-child(3) { border-left: 0; }
  .company-identity-strip > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .company-flagship-grid { grid-template-columns: 1fr; }
  .company-domain-grid { grid-template-columns: 1fr; }
  .company-method-grid { grid-template-columns: 1fr; gap: 25px; }
  .company-method .section-header { position: static; }
  .company-network-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .company-home > section { border-radius: 0; }
  .company-hero { margin-top: 0; }
  .company-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .company-hero-products { min-height: 315px; }
  .company-product-shot--mystrix { inset: 2% 0 13%; }
  .company-product-shot--beava { width: 43%; height: 48%; }
  .company-identity-strip { width: calc(100% - 28px); margin-top: -24px; }
  .company-identity-strip > div { padding: 14px; }
  .company-flagships { padding-top: 80px; }
  .company-flagship-media { height: 215px; }
  .company-flagship-copy { padding: 22px; }
  .company-flagship-copy h3 { font-size: 25px; }
  .beava-context span { padding: 7px; font-size: 9px; }
}

/* ========== COMPANY / PRODUCT MAP ========== */
.company-map-page { margin: 0 -20px; }
.company-map-page > section { border-radius: 20px; }
.company-map-hero {
  min-height: min(72vh, 670px);
  margin-top: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fff, #f1f3f7);
}
.company-map-hero h1 { font-size: clamp(42px, 5.4vw, 68px); }
.company-map-hero .hero-sub { max-width: 590px; font-size: 17px; }
.company-map-diagram { padding: 30px 0; }
.company-map-owner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 76%;
  margin: 0 auto;
  padding: 23px;
  border-radius: 18px;
  background: #202028;
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 35px rgba(24, 24, 27, 0.17);
}
.company-map-owner strong { font-size: 22px; letter-spacing: -0.03em; }
.company-map-owner span { color: rgba(255,255,255,.65); font-size: 11px; }
.company-map-branches { position: relative; width: 70%; height: 55px; margin: 0 auto; border-bottom: 1px solid #b9bbc4; }
.company-map-branches::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #b9bbc4; }
.company-map-branches span { position: absolute; bottom: -8px; width: 15px; height: 15px; border: 4px solid #f4f5f7; border-radius: 50%; background: #6d5dfc; }
.company-map-branches span:nth-child(1) { left: 0; }
.company-map-branches span:nth-child(2) { left: calc(50% - 7px); background: #149980; }
.company-map-branches span:nth-child(3) { right: 0; background: #667085; }
.company-map-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
.company-map-products a { position: relative; display: flex; min-height: 155px; flex-direction: column; justify-content: flex-end; padding: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 10px 25px rgba(24,24,27,.06); }
.company-map-products img { position: absolute; inset: 0; width: 100%; height: 80%; object-fit: cover; opacity: .58; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.company-map-products a:nth-child(2) img { object-fit: contain; object-position: top center; }
.company-map-products strong, .company-map-products a > span { position: relative; z-index: 1; }
.company-map-products strong { font-size: 15px; }
.company-map-products a > span:last-child { color: var(--text-muted); font-size: 10px; }
.company-map-more { display: flex; align-items: center; justify-content: center; position: absolute !important; inset: 13px 13px auto; height: 82px; border-radius: 12px; background: #edf0f4; color: #555d6d; font-size: 28px; font-weight: 800; }
.company-map-details .section-header { max-width: 720px; }
.company-role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.company-role-grid article { position: relative; min-height: 245px; padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 9px 28px rgba(24,24,27,.05); }
.company-role-grid article::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 18px 0 0 18px; background: #666b77; }
.company-role-grid .company-role-mystrix::before { background: #6d5dfc; }
.company-role-grid .company-role-beava::before { background: #15937b; }
.company-role-type { color: #6b6f79; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.company-role-grid h3 { margin: 14px 0 9px; font-size: 23px; }
.company-role-grid p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.company-role-grid a { position: absolute; left: 26px; bottom: 24px; color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; }
.company-destination-section { background: #f3f4f6; }
.company-destinations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.company-destinations a { display: grid; gap: 5px; padding: 21px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); text-decoration: none; }
.company-destinations strong { font-size: 15px; }
.company-destinations span { color: var(--text-muted); font-size: 12px; }
.company-destinations em { margin-top: 7px; color: #565d6c; font-size: 11px; font-style: normal; font-weight: 700; }
@media (max-width: 900px) {
  .company-map-hero .hero-grid { text-align: left; }
  .company-map-hero .hero-sub { margin-left: 0; }
  .company-map-hero .hero-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .company-map-page > section { border-radius: 0; }
  .company-map-hero { margin-top: 0; }
  .company-map-products { grid-template-columns: 1fr; }
  .company-map-branches { display: none; }
  .company-role-grid, .company-destinations { grid-template-columns: 1fr; }
}

/* ========== GUARDIAN NETWORK PRODUCT ========== */
.guardian-network-site { background: #f4f5f7; }
.network-overview-page { padding-top: 14px; }
.network-product-hero {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 40px;
  align-items: center;
  min-height: 460px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid rgba(24,24,27,.08);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #e9edf2);
  box-shadow: 0 12px 35px rgba(24,24,27,.06);
}
.network-product-kicker { margin-bottom: 12px; color: #586274; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.network-product-hero h1 { max-width: 690px; margin-bottom: 15px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.network-product-hero p:not(.network-product-kicker) { max-width: 650px; color: var(--text-muted); font-size: 15px; line-height: 1.62; }
.network-product-hero .hero-actions { margin-top: 22px; }
.network-product-hero > img { width: 100%; border: 1px solid rgba(24,24,27,.1); border-radius: 18px; box-shadow: 0 18px 45px rgba(24,24,27,.13); }
.network-section-index { display: flex; gap: 8px; margin: 17px 0; padding: 12px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.network-section-index a { flex: 1 0 auto; padding: 8px 12px; border-radius: 9px; color: var(--text-muted); font-size: 11px; font-weight: 650; text-align: center; text-decoration: none; }
.network-section-index a:hover { background: #eef0f3; color: var(--text); }
.network-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 38px; }
.network-detail-card { margin: 0; padding: 28px; border: 1px solid rgba(24,24,27,.08); border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(24,24,27,.04); }
.network-detail-card--wide { grid-column: 1 / -1; }
.network-detail-card h2 { margin-bottom: 12px; font-size: 25px; letter-spacing: -.025em; }
.network-detail-card h3 { margin: 19px 0 5px; color: #303743; font-size: 16px; }
.network-detail-card p, .network-detail-card li { color: #575d67; font-size: 13px; line-height: 1.58; }
.network-detail-card ul, .network-detail-card ol { margin: 9px 0 9px 20px; }
.network-detail-card code { padding: 2px 5px; border-radius: 5px; background: #edf0f3; color: #394150; font-size: 11px; }
@media (max-width: 900px) {
  .network-product-hero { grid-template-columns: 1fr; padding: 32px; }
  .network-product-hero > img { max-height: 360px; object-fit: cover; }
}
@media (max-width: 680px) {
  .network-product-hero { padding: 24px 20px; border-radius: 0; }
  .network-detail-grid { grid-template-columns: 1fr; }
  .network-detail-card--wide { grid-column: auto; }
  .network-detail-card { padding: 22px 18px; }
}

/* ========== HOW IT WORKS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 16.7%;
  right: 16.7%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--chrome-light);
  color: var(--chrome-dark);
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.steps-link {
  text-align: center;
  margin-top: 20px;
}
.steps-link a {
  color: var(--chrome-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.steps-link a:hover { color: var(--text); }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before {
    top: 0; bottom: 0; left: 24px; right: auto;
    width: 1px; height: auto;
  }
  .step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    text-align: left;
    padding: 0;
  }
  .step-num { margin-bottom: 0; }
  .step-text { padding-top: 4px; }
}

/* ========== NETWORK STATUS ========== */
.net-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.net-status-header .section-title {
  margin-bottom: 0;
}
.net-status-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.net-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.toggle-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toggle-dashboard:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.toggle-dashboard .chevron {
  transition: transform 0.25s;
  font-size: 11px;
}
.toggle-dashboard.active .chevron {
  transform: rotate(180deg);
}

/* ========== OPERATOR DASHBOARD ========== */
.dashboard-expand {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}
.dashboard-expand.open {
  max-height: 3000px;
  opacity: 1;
  margin-top: 18px;
}

.dashboard h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.filters input,
.filters select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s;
}
.filters input:focus,
.filters select:focus {
  border-color: var(--chrome-light);
  box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.08);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-elevated);
  font-weight: 600;
}

.mono {
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.status-pill {
  display: inline-block;
  border-radius: 980px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.status-online {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
}
.status-offline {
  color: #b45309;
  background: rgba(217, 119, 6, 0.08);
}

.table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 12px 2px 0;
  flex-wrap: wrap;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.pagination button:hover:not(:disabled) { border-color: var(--border-hover); }
.pagination button:disabled { opacity: 0.35; cursor: not-allowed; }
.pagination select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
}

/* ========== SECURITY ========== */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .security-grid { grid-template-columns: 1fr; gap: 24px; }
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.security-list .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.security-list .check svg {
  width: 12px;
  height: 12px;
  color: var(--chrome-dark);
}

.security-link {
  margin-top: 16px;
}
.security-link a {
  color: var(--chrome-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.security-link a:hover { color: var(--text); }

.crypto-stack {
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}
.crypto-stack-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
}
.crypto-stack-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.crypto-stack-header span:nth-child(1) { background: #ff5f57; }
.crypto-stack-header span:nth-child(2) { background: #febc2e; }
.crypto-stack-header span:nth-child(3) { background: #28c840; }
.crypto-stack-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, monospace;
}

.crypto-stack-body {
  padding: 14px 16px;
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  line-height: 1.8;
}
.crypto-stack-body .layer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crypto-stack-body .layer-label {
  color: rgba(255, 255, 255, 0.35);
  min-width: 90px;
  text-align: right;
  font-size: 11px;
  text-transform: uppercase;
}
.crypto-stack-body .layer-value {
  color: var(--chrome-shine);
}
.crypto-stack-body .layer-desc {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

/* ========== DEVELOPER SECTION ========== */
.dev-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dev-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.code-block {
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: left;
  margin: 18px 0 16px;
  overflow: hidden;
}
.code-block-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
}
.code-block-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-block-header span:nth-child(1) { background: #ff5f57; }
.code-block-header span:nth-child(2) { background: #febc2e; }
.code-block-header span:nth-child(3) { background: #28c840; }

.code-block pre {
  padding: 14px 16px;
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  line-height: 1.7;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.7);
}
.code-block pre .kw { color: #bf7af0; }
.code-block pre .str { color: #a8e6a3; }
.code-block pre .fn { color: #7eb6ff; }
.code-block pre .comment { color: rgba(255, 255, 255, 0.35); }

/* ========== CTA BANNER ========== */
.cta-banner {
  position: relative;
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-raised);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  position: relative;
}
.cta-banner p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
}
.cta-banner .btn { position: relative; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 32px 0 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.footer-brand .brand-name {
  font-weight: 600;
  font-size: 15px;
}
.footer-brand .brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  font-weight: 400;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-portals {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-portals a {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 400;
}
.footer-portals a:hover { color: var(--text-muted); }

/* ========== SKELETON LOADING ========== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-base, #fafafa) 25%, #f0f0f0 50%, var(--bg-base, #fafafa) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}


/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dashboard-expand { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
