/* Shared Opti site polish: softer, glassier, consistent across every page. */

:root {
  --glass: rgba(13, 18, 13, .72);
  --glass-soft: rgba(255,255,255,.035);
  --glass-green: rgba(141,255,103,.085);
  --glass-green-strong: rgba(141,255,103,.14);
  --bubble-shadow: 0 18px 55px rgba(0,0,0,.28);
  --green-glow: 0 0 0 1px rgba(141,255,103,.06), 0 12px 38px rgba(87,255,50,.09);
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(141,255,103,.055), transparent 24rem),
    radial-gradient(circle at 88% 22%, rgba(141,255,103,.035), transparent 30rem),
    linear-gradient(180deg, #050705 0%, #040504 100%);
}

body::before {
  position: fixed;
  z-index: -10;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 15%, #000 0%, transparent 72%);
}

/* Header */
.site-header,
.site-header.scrolled {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding-top: 10px;
}

.site-header .nav {
  width: min(calc(100% - 28px), 1260px);
  min-height: 62px;
  padding: 7px 9px 7px 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.012)),
    rgba(6,9,6,.78);
  box-shadow: 0 14px 45px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(22px) saturate(1.18);
}

.brand { gap: 9px; }
.brand-mark { width: 34px; height: 34px; }

.nav-links {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 15px;
  background: rgba(255,255,255,.014);
}

.nav-links a {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #899487;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.nav-links a::after { display: none; }
.nav-links a:hover {
  color: #e9f1e7;
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.035);
  transform: translateY(-1px);
}
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #dfffd6;
  border-color: rgba(141,255,103,.18);
  background:
    linear-gradient(180deg, rgba(141,255,103,.115), rgba(141,255,103,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 24px rgba(71,255,37,.055);
}

.nav-actions,
.site-account-slot,
.store-nav-account {
  position: relative;
  display: flex;
  min-width: 76px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-account-slot:empty::after {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(141,255,103,.08);
  border-radius: 50%;
  content: "";
  background: rgba(141,255,103,.025);
}

.site-sign-in {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(141,255,103,.24);
  border-radius: 12px;
  color: #dcffd2;
  background:
    linear-gradient(180deg, rgba(141,255,103,.13), rgba(141,255,103,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 26px rgba(83,255,43,.055);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.site-sign-in:hover {
  transform: translateY(-1px);
  border-color: rgba(141,255,103,.4);
  background: linear-gradient(180deg, rgba(141,255,103,.18), rgba(141,255,103,.075));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 30px rgba(83,255,43,.08);
}
.site-sign-in:active { transform: translateY(0) scale(.98); }

/* Buttons */
.nav-download,
.button-primary {
  color: #eaffE4;
  border: 1px solid rgba(141,255,103,.3);
  background:
    linear-gradient(180deg, rgba(141,255,103,.17), rgba(141,255,103,.065));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 10px 30px rgba(83,255,43,.065);
  backdrop-filter: blur(12px);
}
.nav-download:hover,
.button-primary:hover {
  color: #f3fff0;
  border-color: rgba(141,255,103,.48);
  background:
    linear-gradient(180deg, rgba(141,255,103,.23), rgba(141,255,103,.09));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 38px rgba(83,255,43,.1);
  transform: translateY(-2px);
}
.nav-download:active,
.button-primary:active,
.button-secondary:active { transform: translateY(0) scale(.985); }

.button-secondary {
  border-color: rgba(255,255,255,.09);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
}
.button-secondary:hover {
  border-color: rgba(141,255,103,.18);
  background: linear-gradient(180deg, rgba(141,255,103,.07), rgba(255,255,255,.022));
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

/* Homepage: keep the pitch, make the interaction lighter */
.hero-v2 {
  min-height: 690px;
  padding-top: calc(var(--nav-height) + 82px);
  border-bottom: 0;
}
.hero-v2::before { opacity: .5; }
.hero-v2-grid { min-height: 500px; }
.hero-v2 h1 .accent {
  color: #93ff70;
  text-shadow: 0 0 32px rgba(141,255,103,.08);
}
.hero-emblem-wrap::before,
.hero-emblem-wrap::after { border-radius: 56px; }

.quick-strip { margin-top: -18px; }
.quick-strip-inner {
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.quick-item {
  min-height: 100px;
  border: 1px solid rgba(255,255,255,.065) !important;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(8,11,8,.72);
  box-shadow: 0 14px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(16px);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}
.quick-item:hover {
  transform: translateY(-3px);
  border-color: rgba(141,255,103,.13) !important;
  background:
    linear-gradient(145deg, rgba(141,255,103,.055), rgba(255,255,255,.014)),
    rgba(8,11,8,.78);
  box-shadow: 0 18px 44px rgba(0,0,0,.22), 0 0 30px rgba(82,255,47,.025);
}
.quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(141,255,103,.095), rgba(141,255,103,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Shared standalone page layout */
.page-main {
  min-height: calc(100vh - 120px);
  padding: 138px 0 84px;
}
.page-hero {
  position: relative;
  max-width: 760px;
  margin-bottom: 38px;
}
.page-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(3.35rem, 7vw, 6rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.page-hero p {
  max-width: 660px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}
.page-panel {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 52%),
    rgba(9,12,9,.73);
  box-shadow: var(--bubble-shadow), inset 0 1px 0 rgba(255,255,255,.018);
  backdrop-filter: blur(16px);
}

/* Existing cards get the same softer feel */
.feature-card-v2,
.compat-card,
.simple-panel,
.launcher-preview-v2,
.store-product-card,
.verify-card,
.scan-preview-card,
.help-card,
.false-positive-note,
.release-card {
  border-radius: 22px !important;
  border-color: rgba(255,255,255,.07) !important;
  box-shadow: 0 15px 46px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.018);
}
.feature-card-v2,
.simple-panel,
.store-product-card,
.verify-card {
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}
.feature-card-v2:hover,
.simple-panel:hover,
.store-product-card:hover,
.verify-card:hover {
  transform: translateY(-4px);
  border-color: rgba(141,255,103,.14) !important;
  box-shadow: 0 21px 54px rgba(0,0,0,.22), 0 0 34px rgba(83,255,43,.025);
}

.clean-list-item {
  border-radius: 15px;
  transition: background 150ms ease, transform 150ms ease;
}
.clean-list-item:hover {
  background: rgba(141,255,103,.025);
  transform: translateX(3px);
}
.clean-check { border-radius: 10px; }
.compat-box { border-radius: 14px; }

/* Store */
.store-page .site-header { padding-top: 10px; }
.store-simple-main { padding-top: 132px !important; }
.store-product-art { border-radius: 18px 18px 0 0; }
.store-product-card { overflow: hidden; background-color: rgba(8,11,8,.72) !important; }
.store-product-card:hover .store-product-art img { transform: scale(1.035); }
.store-product-art img { transition: transform 180ms ease, filter 180ms ease; }

/* Account dropdown, shared everywhere */
.store-account-dropdown {
  top: calc(100% - 2px);
  border-color: rgba(255,255,255,.085);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(7,10,7,.94);
  box-shadow: 0 22px 58px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(22px) saturate(1.15);
}
.store-account-menu-item { border-radius: 10px; }
.store-account-menu-item:hover,
.store-account-menu-item:focus-visible { background: rgba(141,255,103,.055); }

.site-auth-toast {
  position: fixed;
  z-index: 1500;
  top: 90px;
  left: 50%;
  max-width: min(440px, calc(100vw - 28px));
  padding: 11px 14px;
  border: 1px solid rgba(255,120,120,.18);
  border-radius: 13px;
  color: #ffd1d1;
  background: rgba(25,9,9,.88);
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  font-size: .73rem;
  font-weight: 650;
}

/* Footer */
.site-footer,
.store-simple-footer {
  border-top-color: rgba(255,255,255,.045) !important;
  background: rgba(3,5,3,.4);
}

/* Mobile */
@media (max-width: 1120px) {
  .site-header .nav { gap: 10px; }
  .nav-links a { padding-inline: 9px; font-size: .67rem; }
  .brand-copy { display: none; }
}

@media (max-width: 900px) {
  .site-header { padding-top: 7px; }
  .site-header .nav { border-radius: 17px; min-height: 58px; }
  .nav-links {
    position: fixed;
    top: 78px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(6,9,6,.96);
    box-shadow: 0 22px 60px rgba(0,0,0,.42);
    backdrop-filter: blur(22px);
  }
  .nav-links.mobile-open { display: grid; }
  .nav-links a { width: 100%; min-height: 42px; }
  .mobile-toggle { display: grid; border-radius: 12px; }
  .site-account-slot,
  .store-nav-account { margin-left: auto; min-width: 0; }
  .store-skin-button { width: 60px; height: 60px; }
  .skin-head-stage { transform: scale(.82); }
  .hero-v2 { min-height: auto; padding-top: 130px; }
  .hero-v2-grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero-emblem-wrap { min-height: 300px; }
  .quick-strip { margin-top: 18px; }
  .quick-strip-inner { grid-template-columns: 1fr; }
  .page-main { padding-top: 120px; }
}

@media (max-width: 620px) {
  .site-header .nav { width: calc(100% - 16px); padding-left: 10px; }
  .nav-links { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: clamp(2.9rem, 15vw, 4.6rem); }
  .quick-item { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a,
  .site-sign-in,
  .quick-item,
  .feature-card-v2,
  .simple-panel,
  .store-product-card,
  .verify-card { transition: none !important; }
}
