/* PRECISION SYSTEMS — visual layer: clarity over costume */

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  background: var(--neon-cyan);
  color: #06061a;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Glitch only on hero signature — not every H2 */
.glitch-text:not(.hero-title):not(.about-quote) {
  height: auto;
  min-height: 0;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  animation: none;
  text-shadow: 0 0 12px var(--neon-cyan-glow);
}
.glitch-text.hero-title {
  height: auto;
  min-height: 0;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.cyber-section h2.section-title {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  animation: none !important;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  letter-spacing: 0.06em;
  margin-bottom: 1.35rem;
  color: var(--text-main);
  text-shadow: 0 0 18px var(--neon-cyan-glow);
}

/* Hero thesis layout */
.hero-thesis {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  margin: 0.55rem 0 0.85rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem auto 0.85rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.credential-badge:hover,
.credential-badge:focus {
  opacity: 1;
  border-color: rgba(0, 255, 231, 0.35);
  color: var(--text-main);
  box-shadow: none;
}
.credential-badge .credential-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  flex-shrink: 0;
}
.footer-social a,
.mobile-social-link {
  color: var(--neon-cyan);
}
.footer-social a svg,
.mobile-social-link svg {
  stroke: currentColor;
}

.hero-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 38rem;
}

.hero-links {
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}
.hero-link {
  color: var(--neon-cyan);
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}
.hero-link:hover,
.hero-link:focus {
  opacity: 1;
  transform: translateY(-2px);
  color: #fff;
}
.hero-link svg {
  stroke: currentColor;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.hero-avatar {
  box-shadow:
    0 0 0 2px rgba(0, 255, 231, 0.42),
    0 0 28px var(--neon-cyan-glow),
    0 10px 32px rgba(0, 0, 0, 0.35);
}

/* Atmosphere: quieter */
.scanlines-overlay { opacity: 0.035; }
.noise-overlay { opacity: 0.03; }
#bg-canvas { opacity: 0.28; }

/* Unified product card language */
.unified-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  width: 100%;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.45rem 1.35rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 255, 231, 0.22);
  background: linear-gradient(155deg, rgba(14, 16, 42, 0.92), rgba(8, 10, 28, 0.88));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 231, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 231, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px var(--neon-cyan-glow);
}
.product-card:hover::before { opacity: 1; }

.product-card__logo,
.product-card__mono {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(0, 255, 231, 0.06);
  border: 1px solid rgba(0, 255, 231, 0.18);
  padding: 0.35rem;
}
.product-card__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.04em;
}
.product-card__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
}
.product-card__tagline {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--neon-cyan);
  opacity: 0.85;
}
.product-card__desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}
.product-card__link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--neon-cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.product-card__link:hover { color: #fff; text-decoration: underline; }

.interest-card h3.glitch-text,
.interest-card .glitch-text {
  animation: none !important;
  height: auto !important;
  white-space: normal !important;
  overflow: visible !important;
}
.interest-card .glitch-layers { display: none !important; }

/* Nav: quieter glow, hide secondary on wide desktop */
@media (min-width: 1200px) {
  .nav-item--secondary {
    display: none;
  }
}

.nav-link .nav-glow {
  opacity: 0.35;
}

/* Preloader cleaner */
.glitch-preloader-text {
  font-family: var(--font-title);
  letter-spacing: 0.18em;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

/* Footer claim */
.footer-claim {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Mobile heading hierarchy — do not flatten */
@media (max-width: 480px) {
  h2.section-title {
    font-size: clamp(1.25rem, 5.5vw, 1.55rem) !important;
  }
  h3 {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 700px) {
  .hero-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-content { width: 100%; }
}

/* Logo img fallback hide when broken */
.project-logo.is-broken,
.investor-logo.is-broken,
.oin-member-logo.is-broken {
  display: none;
}

/* 404 page */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
}
.page-404 h1 {
  font-family: var(--font-title);
  color: var(--neon-cyan);
  font-size: clamp(2rem, 6vw, 3rem);
}
.page-404 .lang-404 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

/* ========== Precision Systems v2 — editorial canvas ========== */

body {
  background-image:
    linear-gradient(rgba(0, 255, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 231, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 255, 231, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(255, 0, 234, 0.05), transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto;
  background-attachment: fixed;
}

.scanlines-overlay { opacity: 0.018; }
.noise-overlay { opacity: 0.02; }
#bg-canvas { opacity: 0.1; }

main {
  max-width: 1080px;
  counter-reset: sec;
}

.cyber-section {
  counter-increment: sec;
  padding-top: clamp(2.4rem, 6vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 6vw, 3.6rem);
  border-top-color: rgba(0, 255, 231, 0.1);
}

.cyber-section h2.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  color: #f4f8ff;
}

.cyber-section h2.section-title::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--neon-cyan);
  opacity: 0.7;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: -0.55rem 0 1.6rem;
}

/* Hero as framed thesis */
.hero-grid {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.4rem);
  border: 1px solid rgba(0, 255, 231, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 14, 40, 0.72), rgba(6, 8, 24, 0.55));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-grid::before,
.hero-grid::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--neon-cyan);
  border-style: solid;
  opacity: 0.7;
}
.hero-grid::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.hero-grid::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.hero-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin: 0 0 0.55rem;
  opacity: 0.8;
}

.glitch-text.hero-title {
  animation: none;
  color: #f7fbff;
  text-shadow: 0 0 28px rgba(0, 255, 231, 0.28);
}

.hero-title-max {
  opacity: 0.08;
}

.hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(0, 255, 231, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-avatar img.avatar-image,
.hero-avatar .avatar-fallback {
  border-radius: 28px;
}

.cta-minimal[data-variant="primary"] {
  background: var(--neon-cyan);
  color: #061018;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 255, 231, 0.22);
}
.cta-minimal[data-variant="primary"]:hover,
.cta-minimal[data-variant="primary"]:focus {
  background: #fff;
  color: #061018;
  box-shadow: 0 10px 28px rgba(0, 255, 231, 0.3);
}

/* Unify leftover card families */
.social-cards,
.ambiente-blocks,
.investor-blocks,
.backed-grid,
.news-list.neon-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  justify-items: stretch;
}

.social-card.neon,
.ambiente-block.neon-border,
.investor-block.neon-border,
.backed-card.neon,
.news-card.neon,
.interest-card {
  max-width: none;
  min-width: 0;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(155deg, rgba(14, 16, 42, 0.92), rgba(8, 10, 28, 0.88));
  border: 1px solid rgba(0, 255, 231, 0.2);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  color: var(--text-main);
}

.backed-section {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.backed-link {
  background: transparent;
  color: var(--neon-cyan);
  box-shadow: none;
  padding: 0;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}
.backed-link:hover {
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.software-section { padding: 0; }

.software-card .software-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 255, 231, 0.08);
  border: 1px solid rgba(0, 255, 231, 0.22);
  box-shadow: none;
  text-shadow: none;
  animation: none !important;
}

.software-card {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.software-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px var(--neon-cyan-glow);
}

.software-badge {
  box-shadow: none;
  text-shadow: none;
  background: rgba(0, 255, 231, 0.08);
}

.software-title {
  text-shadow: none;
  font-family: var(--font-title);
  font-size: 1.2rem;
}

/* Featured PAG recap */
.signal-panel {
  position: relative;
  margin: 0.4rem 0 1.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(0, 255, 231, 0.28);
  border-radius: var(--border-radius);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(0, 255, 231, 0.1), transparent 55%),
    linear-gradient(155deg, rgba(16, 20, 48, 0.96), rgba(8, 10, 26, 0.94));
  overflow: hidden;
}

.signal-panel::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent 70%);
}

.signal-panel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}

.signal-kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.signal-edition {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.signal-panel__title {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
  color: #fff;
}

.signal-panel__lead,
.signal-panel__note {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46rem;
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.1rem;
}

.signal-stats > div {
  padding: 0.85rem 0.7rem 0.75rem;
  border: 1px solid rgba(0, 255, 231, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.signal-stats dt {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--neon-cyan);
  letter-spacing: 0.02em;
}

.signal-stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.signal-panel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.sociale-grid {
  margin-top: 0;
}

.news-card.neon {
  cursor: default;
}

.news-card .news-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin: 0.55rem 0 0.45rem;
}

.vision-vertical-bar {
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  box-shadow: none;
}

.highlight-cyber {
  background: transparent;
  color: var(--neon-cyan);
  padding: 0;
  animation: none;
}

.about-quote {
  animation: none;
  text-shadow: 0 0 16px var(--neon-cyan-glow);
  border-left: 2px solid var(--neon-cyan);
  padding-left: 1rem;
}

@media (max-width: 640px) {
  .signal-stats {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding: 1.35rem 1rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .software-card,
  .signal-panel {
    transition: none;
  }
}
