/* ================================================================
   Black Star Technologies — Homepage
   Full dark theme. #0a0a0a / #111 / #181818 surface stack.
   ================================================================ */

:root {
  /* Surfaces */
  --bg:   #0a0a0a;
  --bg-1: #0f0f0f;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --bg-4: #222222;

  /* Borders */
  --bd:   rgba(255,255,255,0.07);
  --bd-2: rgba(255,255,255,0.12);
  --bd-3: rgba(255,255,255,0.18);

  /* Accent */
  --blue:    #3b82f6;
  --blue-dk: #2563eb;
  --blue-lt: #60a5fa;

  /* Text */
  --t1: #f0f0f0;
  --t2: #888888;
  --t3: #505050;

  /* Misc */
  --sans: 'Play', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r:    8px;
  --r-sm: 5px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
@media (max-width: 600px)  { .container { padding: 0 1.25rem; } }
@media (min-width: 1440px) { .container { max-width: 1320px; } }

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--bd);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 1440px) { .nav-inner { max-width: 1320px; } }
@media (max-width: 600px)  { .nav-inner { padding: 0 1.25rem; } }

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--t2);
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color .15s;
}
.nav-link:hover { color: var(--t1); }

/* CTA — clean outlined pill, doesn't fight with the blue hero button */
.nav-cta {
  margin-left: 0.5rem;
  font-size: 0.8375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.375rem 0.9rem;
  border-radius: var(--r-sm);
  transition: color .15s, border-color .15s, background .15s;
}
.nav-cta:hover {
  color: var(--t1);
  border-color: rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.04);
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: var(--t1);
  padding: 4px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: .15s;
}

/* Mobile dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: .75rem 1.25rem 1.25rem;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--bd);
}
.nav-mobile.open { display: flex; }

.nml {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--t2);
  padding: .75rem 0;
  border-bottom: 1px solid var(--bd);
  transition: color .15s;
}
.nml:last-of-type { border-bottom: none; }
.nml:hover { color: var(--t1); }

.nml-cta {
  display: block;
  text-align: center;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--t1);
  border: 1px solid var(--bd-2);
  padding: .675rem 1rem;
  border-radius: var(--r-sm);
  margin-top: .875rem;
  transition: border-color .15s, background .15s;
}
.nml-cta:hover {
  border-color: var(--bd-3);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  text-decoration: none;
}

/* Solid blue — primary hero CTA */
.btn-solid {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-solid:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
}

/* Text + arrow — secondary hero CTA, no border */
.btn-text {
  background: transparent;
  color: var(--t2);
  border-color: transparent;
  padding-left: .25rem;
  padding-right: .25rem;
}
.btn-text:hover { color: var(--t1); }

/* Solid dark — submit buttons on dark sections */
.btn-submit {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-submit:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
}

.btn-full { width: 100%; justify-content: center; }

/* Liquid glass — hero CTA */
.btn-glass {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-color: rgba(255,255,255,0.15);
  color: var(--t1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.10);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .15s;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
  box-shadow: 0 8px 36px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(255,255,255,0.14);
}
.btn-glass-glow {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(59,130,246,0.38) 0%,
    rgba(59,130,246,0.10) 50%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 2.4s var(--ease);
}
.btn-glass:hover .btn-glass-glow {
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

/* Loading */
.btn .btn-lbl  { transition: opacity .15s; }
.btn .btn-spin { display: none; align-items: center; }
.btn.loading .btn-lbl  { opacity: .4; }
.btn.loading .btn-spin { display: inline-flex; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.spin-svg { animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Soft radial bloom behind hero content — no animation needed, canvas handles it */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(59,130,246,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  width: 100%;
  padding: calc(6rem + 100px) 1.5rem 3.5rem;
}

/* ================================================================
   HERO UI — PerceptorUI screenshot + overlay panels
   ================================================================ */
.hero-ui {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  padding: 0 2rem 5rem;
  padding-top: 52px;
  display: flex;
  justify-content: center;
  animation: heroIn .9s var(--ease) .72s both;
  /* Mask removed — applied to screenshot only so overlay cards can freely translate */
}

/* Stage: screenshot + positioned overlays */
.hup-stage {
  position: relative;
  width: 100%;
  max-width: 860px;
}

/* Screenshot float animation */
@keyframes hupFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes hupFloatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-13px); }
}
@keyframes hupFloatC {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hover: cards slide out to reveal full UI */
.hup-shards,
.hup-statbox {
  transition: translate 0.8s cubic-bezier(.4,0,.2,1);
}
.hup-stage:hover .hup-shards  { translate: -72px 0px; }
.hup-stage:hover .hup-statbox { translate:  72px -20px; }
/* hover-in transition lives on the base state; hover-out on the :hover state */
.hup-screenshot {
  transition: box-shadow 2.6s ease;  /* hover-in: very gradual */
}
.hup-stage:hover .hup-screenshot {
  transition: box-shadow 0.7s ease;  /* hover-out: quicker */
  box-shadow:
    0 32px 80px rgba(0,0,0,.82),
    0 0 28px rgba(59,130,246,.10),
    0 0 0 1px rgba(59,130,246,.10),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.hup-screenshot {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 32px 80px rgba(0,0,0,.82),
    0 0 0 1px rgba(59,130,246,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  animation: hupFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
  /* Only the screenshot fades — overlay cards are unmasked so they can translate freely */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* Base glass panel */
.hup {
  background: rgba(11,11,11,.93);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  box-shadow:
    0 16px 48px rgba(0,0,0,.75),
    0 0 0 1px rgba(59,130,246,.05),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Stats panel (top-right) ─── */
.hup-statbox {
  position: absolute;
  top: -38px;          /* floats above screenshot top edge; hero-ui padding-top keeps it in mask */
  right: -32px;
  z-index: 3;
  width: 270px;
  padding: 1rem 1.125rem 1.125rem;
  animation: hupFloatB 7s ease-in-out .4s infinite;
}
.hup-sb-head {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  margin-bottom: .75rem;
}
.hup-sb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
}
.hup-sb-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px;
  padding: .5rem .55rem;
}
.hup-sb-n {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255,255,255,.82);
  letter-spacing: -.04em;
  line-height: 1;
}
.hup-sb-l {
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.28);
  line-height: 1.3;
}

/* ── Shard cards (bottom-left) ─── */
.hup-shards {
  position: absolute;
  bottom: -16px;
  left: -44px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  width: 290px;
  animation: hupFloatC 5.5s ease-in-out .85s infinite;
}
.hup-shard {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .7rem .875rem;
  background: rgba(11,11,11,.93);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.65),
    0 0 0 1px rgba(59,130,246,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hup-shard-ico {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-lt);
  flex-shrink: 0;
}
.hup-shard-body {
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; min-width: 0;
}
.hup-shard-name {
  font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.82); display: block;
}
.hup-shard-desc {
  font-size: .63rem; color: rgba(255,255,255,.34);
  line-height: 1.35; display: block;
}
.hup-shard-cat {
  display: inline-block;
  font-size: .56rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-lt);
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: 3px; padding: 1px 5px; margin-top: 3px;
}
.hup-shard-cat--persist {
  color: #86efac;
  background: rgba(34,197,94,.07);
  border-color: rgba(34,197,94,.15);
}
.hup-shard-btn {
  flex-shrink: 0; align-self: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.42);
  font-size: .68rem; font-weight: 600;
  padding: 3px 9px; border-radius: 5px;
  cursor: default; font-family: inherit;
}

/* Responsive */
@media (max-width: 1140px) {
  .hup-statbox { right: 0; top: -28px; }
  .hup-shards  { left: 0; bottom: -10px; }
}
@media (max-width: 960px) {
  .hup-statbox, .hup-shards { display: none; }
}
@media (max-width: 680px) { .hero-ui { display: none; } }

/* Hero entrance sequence */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-badge   { animation: heroIn .65s var(--ease) .05s both; }
.hero-h1      { animation: heroIn .72s var(--ease) .22s both; }
.hero-sub     { animation: heroIn .65s var(--ease) .40s both; }
.hero-actions { animation: heroIn .65s var(--ease) .56s both; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-lt);
  box-shadow: 0 0 6px var(--blue-lt);
  animation: bdot 2.5s ease-in-out infinite;
}
@keyframes bdot { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--t1);
  margin-bottom: 1.25rem;
}
.hero-accent {
  background: linear-gradient(125deg, var(--blue) 0%, var(--blue-lt) 50%, var(--blue) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: accentShimmer 5s linear infinite;
}
@keyframes accentShimmer {
  from { background-position: 0% center;   }
  to   { background-position: 220% center; }
}

.hero-sub {
  font-size: clamp(.9rem, 1.8vw, 1.0625rem);
  color: var(--t2);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  margin: 0 auto;
  animation: scrollp 2.4s ease-in-out infinite;
}
@keyframes scrollp {
  0%,100%{opacity:0;transform:translateY(-5px)}
  50%    {opacity:1;transform:translateY(3px)}
}

/* ================================================================
   STATS
   ================================================================ */
.stats-section {
  background: var(--bg-1);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
  padding: 3.25rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat {
  text-align: center;
  padding: 1.25rem 1rem;
}
.stat + .stat { border-left: 1px solid var(--bd); }
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--t1);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-lbl {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
}

@media (max-width: 800px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat+.stat  { border-left: none; }
  .stat:nth-child(2), .stat:nth-child(4) { border-left: 1px solid var(--bd) !important; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--bd); }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat:not(:last-child) { border: none !important; border-bottom: 1px solid var(--bd) !important; }
}

/* ================================================================
   SECTION SHELL
   ================================================================ */
.section { padding: 7rem 0; }
@media (max-width: 600px) { .section { padding: 5rem 0; } }

.section-a { background: var(--bg); }    /* #0a0a0a */
.section-b { background: var(--bg-1); }  /* #0f0f0f — barely different, enough for rhythm */

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.label {
  display: inline-block;
  font-size: .685rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: .875rem;
}
.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--t1);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--t2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ================================================================
   REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

.products-grid .product-card:nth-child(2) { transition-delay: .08s; }
.caps-grid .cap:nth-child(2)              { transition-delay: .07s; }
.caps-grid .cap:nth-child(3)              { transition-delay: .14s; }
.caps-grid .cap:nth-child(4)              { transition-delay: .07s; }
.caps-grid .cap:nth-child(5)              { transition-delay: .14s; }
.caps-grid .cap:nth-child(6)              { transition-delay: .21s; }

/* ================================================================
   PLATFORMS — new card design
   ================================================================ */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; } }

/* Stagger delay */
.pc-grid .pc:nth-child(2) { transition-delay: .08s; }

.pc {
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.pc:hover {
  border-color: rgba(59,130,246,.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.5),
              0 0 0 1px rgba(59,130,246,.07);
}

/* Header — logo + name area */
.pc-header {
  padding: 2.25rem 2rem 1.75rem;
  border-bottom: 1px solid var(--bd);
  position: relative;
  overflow: hidden;
}

/* Atmospheric blue radial glow — appears only on hover */
.pc-atmo {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
    rgba(59,130,246,.14) 0%,
    rgba(59,130,246,.05) 40%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
  animation: atmoBreathe 6s ease-in-out infinite;
}
@keyframes atmoBreathe {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.2); }
}
.pc:hover .pc-atmo {
  opacity: 1;
}

/* Logo */
.pc-logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  /* SVGs with white/near-white fill already visible; force pure white */
  filter: brightness(0) invert(1);
  opacity: .9;
  transition: opacity .2s;
}
.pc:hover .pc-logo { opacity: 1; }

/* Name + tag row */
.pc-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
  z-index: 1;
}
.pc-name {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--t1);
}
.pc-tag {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--t3);
  background: var(--bg-4);
  border: 1px solid var(--bd);
  border-radius: 100px;
  padding: .2rem .625rem;
}

/* Body */
.pc-body {
  padding: 1.75rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.625rem;
}
.pc-desc {
  font-size: .9375rem;
  color: var(--t2);
  line-height: 1.68;
}

/* Feature list — each item separated by a hairline */
.pc-feats {
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.pc-feats li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: var(--t2);
  padding: .525rem 0;
  border-bottom: 1px solid var(--bd);
}
.pc-feats li:last-child { border-bottom: none; }
.pc-feats li svg {
  flex-shrink: 0;
  color: var(--blue-lt);
  opacity: .55;
}

/* Footer / CTA */
.pc-foot {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--bd);
  flex-shrink: 0;
}
.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-lt);
  transition: gap .15s, color .15s;
}
.pc-cta:hover { color: var(--t1); gap: .7rem; }

/* ================================================================
   ASTRONAUT SECTION
   ================================================================ */
.astro-section {
  background: var(--bg);
  border-top: 1px solid var(--bd);
  padding: 6rem 0;
  overflow: hidden;
}

.astro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.globe-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.astro-h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: var(--t1);
  margin: .875rem 0 1.125rem;
}

.astro-p {
  font-size: .9375rem;
  color: var(--t2);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .astro-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .globe-wrap { order: 2; }
  .astro-text     { order: 1; }
  .astro-p        { margin: 0 auto 2rem; }
  .astro-section  { padding: 4.5rem 0; }
}

/* ================================================================
   CAPABILITIES
   ================================================================ */
#capabilities { position: relative; overflow: hidden; }
#capabilities .section-head,
#capabilities .caps-grid { position: relative; z-index: 1; }

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.875rem;
}

.cap {
  padding: 1.875rem;
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  transition: background .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  z-index: 1;
}
.cap:hover { background: var(--bg-3); border-color: var(--bd-2); }

.cap-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-lt);
  margin-bottom: 1rem;
  opacity: .8;
  transition: color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.cap:hover .cap-icon {
  color: var(--blue);
  opacity: 1;
  transform: translateY(-3px);
}
.cap h4 {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--t1);
  margin-bottom: .4rem;
}
.cap p {
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.65;
}

@media (max-width: 900px) { .caps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .caps-grid { grid-template-columns: 1fr; } }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-desc {
  font-size: .9375rem;
  color: var(--t2);
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 2.25rem;
}
.cd-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: var(--t2);
}
.cd-item svg { color: var(--blue-lt); flex-shrink: 0; opacity: .7; }
.cd-item a   { transition: color .15s; }
.cd-item a:hover { color: var(--t1); }

/* Tab switcher */
.ctabs {
  display: flex;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  padding: 3px;
  width: fit-content;
}
.ctab {
  background: transparent;
  border: none;
  color: var(--t3);
  font-size: .825rem;
  font-weight: 500;
  padding: .4rem .875rem;
  border-radius: 4px;
  transition: all .15s;
}
.ctab-active {
  background: var(--bg-4);
  color: var(--t1);
}

.cpanel-hidden { display: none; }

/* Form */
.cform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.crow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
}
@media (max-width: 560px) { .crow { grid-template-columns: 1fr; } }

.cfield {
  display: flex;
  flex-direction: column;
  gap: .325rem;
}
.cfield label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--t2);
}
.req { color: var(--blue-lt); }

.cfield input,
.cfield textarea {
  background: var(--bg-2);
  border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  color: var(--t1);
  font-size: .9375rem;
  padding: .675rem .875rem;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.cfield input::placeholder,
.cfield textarea::placeholder { color: var(--t3); }
.cfield input:focus,
.cfield textarea:focus {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,.09);
}
.cfield textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input[type="date"],
input[type="time"] { color-scheme: dark; }

.form-reply {
  display: none;
  padding: .8rem .9rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-reply.ok {
  display: block;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.22);
  color: #86efac;
}
.form-reply.err {
  display: block;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.22);
  color: #fca5a5;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--bd);
  padding: 4.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--t3);
  line-height: 1.65;
  max-width: 260px;
  margin-top: 1rem;
}
.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.footer-col h5 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .875rem;
  color: var(--t3);
  margin-bottom: .6rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--t1); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--bd);
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--t3);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ================================================================
   CAPTCHA MODAL
   ================================================================ */
.captcha-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.captcha-overlay.open { display: flex; }

.captcha-box {
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: var(--r);
  padding: 1.75rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
}

.captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.captcha-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.01em;
}
.captcha-close {
  background: none;
  border: none;
  color: var(--t3);
  padding: .2rem;
  line-height: 0;
  transition: color .15s;
}
.captcha-close:hover { color: var(--t1); }
.captcha-sub {
  font-size: .8375rem;
  color: var(--t2);
  line-height: 1.6;
}
.captcha-widget {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

/* ================================================================
   LEGAL / DOC MODALS
   ================================================================ */
.lmodal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lmodal-overlay.open { display: flex; }

.lmodal-box {
  background: var(--bg-2);
  border: 1px solid var(--bd-2);
  border-radius: var(--r);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: heroIn .25s var(--ease) both;
}
.lmodal-box--doc { max-width: 640px; }

.lmodal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bd);
}
.lmodal-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.01em;
}
.lmodal-close {
  background: none;
  border: none;
  color: var(--t3);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.lmodal-close:hover { color: var(--t1); background: var(--bg-3); }

.lmodal-body {
  padding: 1.5rem;
}
.lmodal-body--scroll {
  max-height: 72vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}

/* Legal info list */
.legal-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem 1.5rem;
  font-size: .9rem;
}
.legal-dl dt {
  color: var(--t2);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: .15rem;
}
.legal-dl dd { color: var(--t1); }
.legal-dl a  { color: var(--blue-lt); }
.legal-dl a:hover { text-decoration: underline; }

/* Doc modals (Privacy, ToS) */
.lmodal-updated {
  font-size: .75rem;
  color: var(--t3);
  margin-bottom: 1.25rem;
}
.lmodal-body h3 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t2);
  margin-top: 1.25rem;
  margin-bottom: .4rem;
}
.lmodal-body h3:first-of-type { margin-top: 0; }
.lmodal-body p {
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: .25rem;
}
.lmodal-body a { color: var(--blue-lt); }
.lmodal-body a:hover { text-decoration: underline; }
.lmodal-body strong { color: var(--t1); font-weight: 600; }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar       { width: 5px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
