/* ============================================================
   FABIUS PUBLIC SURFACES — Moltke-Aligned Public Layer
   ============================================================ */

:root {
  --fab-public-frame: 1280px;
  --fab-public-copy: 36rem;
  --fab-public-title: 43rem;
}

.site-header {
  background: rgba(252, 249, 248, 0.84);
  backdrop-filter: blur(20px);
  border-bottom: none;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  max-width: var(--fab-public-frame);
  min-height: 5rem;
  padding: 0 3rem;
}

.site-logo {
  gap: 0.6rem;
}

.logo-shield-svg {
  color: var(--fab-shield-blue);
  filter: none;
}

.logo-text {
  font-family: var(--fab-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fab-shield-dark);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.nav-links {
  justify-content: center;
  gap: 1.7rem;
}

.nav-links a {
  font-family: var(--fab-font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #536074;
}

.nav-links a:hover {
  color: var(--fab-shield-blue);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
}

.nav-locale {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #536074;
}

.nav-locale-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-locale {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.site-locale-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 5.25rem;
  padding: 0.58rem 0.76rem;
  border: 1px solid rgba(27, 28, 28, 0.22);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  font-family: var(--fab-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-locale-trigger:hover,
.site-locale-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 28, 28, 0.28);
  color: var(--fab-text-0);
}

.nav-locale.is-open .site-locale-trigger {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(27, 28, 28, 0.32);
  box-shadow: 0 18px 42px -26px rgba(27, 28, 28, 0.16);
}

.site-locale-code {
  min-width: 1.6rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.site-locale-chevron {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.nav-locale.is-open .site-locale-chevron {
  transform: rotate(180deg);
}

.site-locale-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 11rem;
  max-height: min(32rem, calc(100vh - 7rem));
  padding: 0.5rem;
  border: 1px solid rgba(194, 198, 214, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 48px -12px rgba(27, 28, 28, 0.08);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 30;
}

.nav-locale.is-open .site-locale-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-locale-option {
  display: block;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--fab-text-0);
  font-family: var(--fab-font-sans);
  font-size: 0.95rem;
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-locale-option:hover,
.site-locale-option:focus-visible {
  background: rgba(246, 243, 242, 0.96);
  color: var(--fab-shield-blue);
}

.site-locale-option.is-selected {
  background: rgba(246, 243, 242, 0.96);
  color: var(--fab-shield-blue);
  font-weight: 600;
}

.nav-cta {
  padding: 0.74rem 1.42rem !important;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: none;
}

.nav-cta:hover {
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
}

.hero {
  min-height: auto;
  max-width: var(--fab-public-frame);
  margin: 0 auto;
  padding: 9.25rem 3rem 5rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-bg {
  background:
    radial-gradient(circle at 16% 14%, rgba(59, 130, 246, 0.07) 0%, transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(87, 223, 254, 0.06) 0%, transparent 18%);
}

.grid-lines {
  display: none;
}

.glow {
  display: none;
}

.glow-1 {
  background: rgba(59, 130, 246, 0.18);
  top: -160px;
  left: -60px;
}

.glow-2 {
  background: rgba(87, 223, 254, 0.18);
  bottom: -120px;
  right: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 47rem;
  text-align: left;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(33, 112, 228, 0.15);
  color: var(--fab-shield-blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-note-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hero-title {
  max-width: var(--fab-public-title);
  font-family: var(--fab-font-display);
  font-size: clamp(3.2rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.35rem;
}

.hero-title-accent {
  color: var(--fab-shield-blue);
  font-style: italic;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-subtitle {
  max-width: var(--fab-public-copy);
  margin: 0 0 2.35rem;
  font-family: var(--fab-font-sans);
  font-size: clamp(1.125rem, 1.9vw, 1.28rem);
  line-height: 1.62;
  color: #5b6778;
}

.hero-actions {
  justify-content: flex-start;
  margin-bottom: 1.6rem;
}

.hero-btn-primary,
.pricing-btn-primary {
  padding: 0.84rem 1.52rem;
  border-radius: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
}

.hero-btn-primary:hover,
.pricing-btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}

.hero-btn-secondary {
  padding: 0.84rem 1.45rem;
  background: rgba(27, 28, 28, 0.04);
  border: 1px solid rgba(114, 119, 133, 0.14);
  border-radius: 0.75rem;
  color: var(--fab-text-0);
}

.hero-btn-secondary:hover {
  background: rgba(27, 28, 28, 0.06);
  border-color: rgba(114, 119, 133, 0.18);
}

.btn-arrow {
  display: none;
}

.section {
  padding: 5.4rem 3rem;
}

.section-dark,
.section-cta {
  background: transparent;
}

.section-container {
  max-width: var(--fab-public-frame);
}

.section-header {
  align-items: flex-start;
  text-align: left;
  max-width: 48rem;
}

.section-title {
  font-family: var(--fab-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--fab-text-0);
}

.section-subtitle {
  font-family: var(--fab-font-sans);
  color: var(--fab-text-1);
  line-height: 1.7;
}

.features-grid,
.prev-grid {
  gap: 1.5rem;
}

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

.feature-card,
.pricing-card,
.prot-card,
.prev-card,
.prev-layer {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(114, 119, 133, 0.12);
  box-shadow: 0 18px 38px rgba(27, 28, 28, 0.07);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.95rem;
  min-height: 15.5rem;
  padding: 1.95rem 2rem 1.85rem;
  background: rgba(246, 243, 242, 0.88);
  border: none;
  border-radius: 1.75rem;
  box-shadow: none;
  backdrop-filter: none;
}

.feature-card:hover,
.pricing-card:hover,
.prot-card:hover,
.prev-card:hover,
.prev-layer:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 112, 228, 0.18);
  box-shadow: 0 28px 56px rgba(27, 28, 28, 0.08);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(27, 28, 28, 0.16);
}

.feature-icon,
.prot-card-icon,
.prev-card-icon {
  color: var(--fab-shield-blue);
  background: rgba(216, 226, 255, 0.6);
  border: 1px solid rgba(33, 112, 228, 0.1);
}

.feature-icon {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0;
  background: none;
  border: none;
}

.feature-icon svg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.7;
}

.feature-card h3,
.pricing-tier,
.prot-card-header h3,
.prev-card h3,
.prev-layer-content h3 {
  font-family: var(--fab-font-display);
  color: var(--fab-text-0);
}

.feature-card h3 {
  font-family: var(--fab-font-sans);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}

.feature-card p,
.prot-card p,
.prev-card p,
.prev-layer-content p {
  color: var(--fab-text-1);
}

.feature-card p {
  font-family: var(--fab-font-sans);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0;
  color: #4f5c70;
}

.funnel-sources {
  gap: 1.25rem;
}

.funnel-source {
  padding: 1.5rem 1.3rem 1.4rem;
  background: rgba(246, 243, 242, 0.88);
  border: none;
  border-radius: 1.75rem;
  box-shadow: none;
  backdrop-filter: none;
}

.funnel-source:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(27, 28, 28, 0.16);
}

.funnel-source h4 {
  font-family: var(--fab-font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fab-text-0);
}

.funnel-source p {
  font-family: var(--fab-font-sans);
  font-size: 0.94rem;
  line-height: 1.68;
  color: #4f5c70;
}

.funnel-source-future {
  border: 1px dashed rgba(114, 119, 133, 0.22);
}

.funnel-neck-label {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.22);
}

.funnel-stage {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(114, 119, 133, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 18px 38px rgba(27, 28, 28, 0.07);
}

.funnel-stage:hover {
  border-color: rgba(33, 112, 228, 0.18);
  box-shadow: 0 28px 56px rgba(27, 28, 28, 0.08);
}

.funnel-stage-content h3 {
  font-family: var(--fab-font-sans);
  color: var(--fab-text-0);
}

.funnel-stage-content p {
  color: #4f5c70;
}

.pricing-grid {
  align-items: stretch;
  gap: 1.25rem;
}

.pricing-card {
  position: relative;
  padding: 1.75rem;
}

.pricing-card-featured {
  border-color: rgba(33, 112, 228, 0.34);
  transform: translateY(-8px);
}

.pricing-card-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--fab-shield-blue), var(--fab-gold));
}

.pricing-badge {
  background: linear-gradient(135deg, var(--fab-shield-blue), var(--fab-shield-dark));
  color: #fff;
}

.pricing-price {
  color: var(--fab-shield-dark);
}

.pricing-currency,
.pricing-period {
  color: var(--fab-text-2);
}

.pricing-features li {
  color: var(--fab-text-1);
}

.pricing-features li svg {
  color: var(--fab-shield-blue);
}

.pricing-feature-disabled {
  color: var(--fab-text-muted);
}

.pricing-btn {
  border-radius: 12px;
  font-weight: 700;
}

.pricing-btn:not(.pricing-btn-primary) {
  background: rgba(246, 243, 242, 0.9);
  color: var(--fab-text-0);
  border: 1px solid rgba(114, 119, 133, 0.16);
}

.prot-card,
.prev-card {
  border-radius: 20px;
}

.prot-details {
  gap: 1rem;
}

.prot-how,
.prot-detect {
  background: rgba(246, 243, 242, 0.78);
  border: 1px solid rgba(114, 119, 133, 0.1);
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
}

.prot-how h4,
.prot-detect h4,
.prev-layer-content h3 {
  margin-bottom: 0.8rem;
  color: var(--fab-text-0);
}

.prot-how ol,
.prot-detect ul {
  margin: 0;
}

.prot-date {
  color: var(--fab-text-2);
}

.prot-severity,
.prot-new-badge {
  border-radius: 999px;
  font-family: var(--fab-font-display);
}

.prot-severity.critical,
.prot-new-badge {
  background: linear-gradient(135deg, var(--fab-shield-blue), var(--fab-shield-dark));
  color: #fff;
}

.prot-severity.high {
  background: rgba(245, 158, 11, 0.14);
  color: hsl(32, 88%, 44%);
}

.threat-tags {
  gap: 0.55rem;
}

.threat-tags span {
  background: rgba(216, 226, 255, 0.56);
  color: var(--fab-shield-dark);
  border: 1px solid rgba(33, 112, 228, 0.08);
}

.prev-layer {
  align-items: flex-start;
  gap: 1rem;
  border-radius: 22px;
  border-left-width: 3px;
  flex: 0 1 calc(33.333% - 1.25rem);
  min-width: 280px;
  max-width: 420px;
}

.prev-layer:hover {
  border-left-color: var(--fab-shield-blue);
  box-shadow: 0 28px 56px rgba(27, 28, 28, 0.08);
}

.prev-layer-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--fab-shield-blue);
  background: rgba(216, 226, 255, 0.7);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(33, 112, 228, 0.08);
  -webkit-text-fill-color: currentColor;
  background-clip: padding-box;
  font-size: 1rem;
}

.prev-layer-content code,
.prot-details code {
  background: rgba(216, 226, 255, 0.48);
  color: var(--fab-shield-dark);
}

.prot-card-new {
  border-color: rgba(33, 112, 228, 0.24);
}

.prot-card-header {
  align-items: flex-start;
}

.prot-card-tag,
.prev-card-tag {
  background: rgba(216, 226, 255, 0.68);
  color: var(--fab-shield-dark);
}

.prev-footer {
  background: rgba(246, 243, 242, 0.86);
  border: 1px solid rgba(114, 119, 133, 0.12);
  border-radius: 22px;
  padding: 1.5rem;
}

.prev-footer p {
  color: var(--fab-text-1);
}

.prev-footer strong {
  color: var(--fab-text-0);
}

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(114, 119, 133, 0.12);
  padding: 4rem 2rem 2rem;
}

.section-cta .section-container {
  padding: 2.4rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(114, 119, 133, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(27, 28, 28, 0.06);
}

.footer-grid {
  gap: 2rem;
}

.footer-brand h3,
.footer-links h4 {
  font-family: var(--fab-font-display);
  color: var(--fab-text-0);
}

.footer-desc,
.footer-links a,
.footer-bottom {
  color: var(--fab-text-2);
}

.footer-links a:hover {
  color: var(--fab-shield-blue);
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto auto;
    gap: 1rem;
    padding: 0 1rem;
    min-height: 4.5rem;
  }

  .hero {
    padding: 7.4rem 1.25rem 2.75rem;
  }

  .section,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    justify-self: end;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

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

  .hero-content,
  .hero-title,
  .hero-subtitle,
  .section-header {
    max-width: none;
  }

  .pricing-card-featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-locale-menu {
    width: min(15rem, calc(100vw - 2rem));
  }

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

  .feature-card {
    min-height: auto;
    padding: 1.65rem;
  }
}
