/* R2ModMan — Dark luxury gothic UI */
:root {
  --chrome: #e8e8ec;
  --chrome-mid: #9ca3af;
  --chrome-dim: #6b7280;
  --chrome-border: rgba(255, 255, 255, 0.35);
  --chrome-glow: rgba(255, 255, 255, 0.18);
  --bg-void: #050505;
  --bg-panel: rgba(5, 5, 5, 0.85);
  --text-body: #b8bcc6;
  --text-muted: #6b7280;
  --text-bright: #f5f5f7;
  --accent: #e8e8ec;
  --status-yes: #d4d4d8;
  --status-no: #f87171;
  --status-warn: #d4a574;
  --font-display: "Cinzel", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #050505;
}

html,
body.page-root {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.page-root {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-void);
  background-image: none;
}

body.page-root::before,
body.page-root::after {
  display: none;
}

body.page-root > *:not(.zoom-overlay):not(#site-head):not(.layout-top):not(.ambient-bg) {
  position: relative;
  z-index: 1;
}

main,
#page-body {
  margin-top: 0;
  padding-top: 0;
}

body.page-root h1,
body.page-root h2,
body.page-root h3,
body.page-root .heading-display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-bright);
}

body.page-root h1 {
  letter-spacing: 0.1em;
  line-height: 1.05;
  text-shadow: 0 0 48px rgba(255, 255, 255, 0.08);
}

body.page-root .text-accent {
  color: var(--accent);
  text-shadow: 0 0 32px var(--chrome-glow);
}

body.page-root .text-muted {
  color: var(--text-muted);
}

body.page-root a.link-cyan {
  color: var(--chrome);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body.page-root a.link-cyan:hover {
  text-shadow: 0 0 20px var(--chrome-glow);
  color: #fff;
}

/* Header — see head-bar styles at end of file */

.logo-mark {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

/* Buttons */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  cursor: pointer;
  border: 1px solid var(--chrome-border);
}

.ui-btn--primary {
  color: #fff;
  padding: 1rem 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ui-btn--primary:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.18);
}

.ui-btn--ghost,
.ui-btn--secondary {
  color: var(--chrome-mid);
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.ui-btn--ghost:hover,
.ui-btn--secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}

.ui-btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.6rem;
}

.ui-btn--float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.15);
}

/* Hero — dense first viewport */
.hero-cyber {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 0.5rem) 0 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-cyber__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-cyber__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  transform: scale(1.05);
}

.hero-cyber__bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg-void) 0%, rgba(5, 5, 5, 0.88) 35%, var(--bg-void) 100%),
    radial-gradient(ellipse 90% 65% at 50% 18%, rgba(255, 255, 255, 0.07), transparent 55%);
}

.hero-cyber__bg-edge {
  position: absolute;
  inset-block: 0;
  width: 28%;
  background: linear-gradient(90deg, var(--bg-void), transparent);
  pointer-events: none;
}

.hero-cyber__bg-edge--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg-void), transparent);
}

.hero-cyber__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 70% 45% at 50% 22%, rgba(255, 255, 255, 0.06), transparent 65%);
  pointer-events: none;
}

.hero-cyber__scanline {
  display: none;
}

.hero-cyber__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: calc(100vh - var(--header-h) - 1.5rem);
}

.hero-cyber__ornament {
  position: relative;
  z-index: 2;
  width: min(100%, 28rem);
  margin: 0 auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.14));
}

.hero-cyber__ornament--bottom {
  width: min(100%, 40rem);
  margin-top: auto;
  padding-top: 1rem;
  opacity: 0.8;
}

.hero-cyber__logo {
  width: clamp(7rem, 18vw, 9.5rem);
  height: clamp(7rem, 18vw, 9.5rem);
  margin: 0.35rem auto 0;
  opacity: 0.95;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.18));
}

.hero-cyber h1 {
  font-size: clamp(2.75rem, 11vw, 5.25rem);
  line-height: 0.88;
  margin-top: -0.15rem;
}

.hero-cyber .hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--chrome-mid);
  text-transform: none;
  margin-top: 0.5rem;
}

.hero-cyber .hero-lead {
  margin-top: 0.5rem;
  max-width: 32rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.hero-cyber .hero-meta {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--chrome-dim);
}

.hero-cyber__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 28rem;
}

.hero-cyber__visual {
  display: none;
}

.tag-cyber,
.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

.band {
  position: relative;
  padding: 5rem 0;
}

.band--muted {
  background: rgba(255, 255, 255, 0.015);
}

/* Gothic panels — sharp CSS borders (frame PNG reserved for hero shell) */
.panel {
  position: relative;
  background: rgba(5, 5, 5, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px) scale(1.01);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

.table-cyber {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-cyber th,
.table-cyber td {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.table-cyber thead {
  background: rgba(255, 255, 255, 0.04);
}

.table-cyber th.text-accent {
  color: var(--chrome);
}

/* Reviews marquee */
.reviews-marquee {
  overflow: hidden;
  max-width: 100%;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  animation: reviews-scroll 45s linear infinite;
  width: max-content;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  flex: 0 0 320px;
  max-width: 320px;
}

/* FAQ accordion */
.qa-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.qa-answer {
  padding: 0 1.5rem 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-body);
}

/* Lightbox */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.zoom-overlay.is-unfolded,
.zoom-overlay:target {
  display: flex;
}

.zoom-overlay img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
  cursor: default;
}

.zoom-close {
  position: fixed;
  top: 22px;
  right: 28px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 8, 8, 0.88);
  font-family: var(--font-body);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Footer */
.page-foot,
.footer,
.page-foot {
  position: relative;
  padding: 40px 24px 36px;
  background: #030303 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  text-align: left;
}

.foot-inner,
.site-foot-inner,
.page-foot > .mx-auto.max-w-7xl {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.foot-inner,
.site-foot-inner,
.page-foot .grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.foot-col,
.foot-brand,
.foot-nav,
.foot-help,
.foot-legal {
  min-width: 0;
}

.foot-brand img {
  display: block;
  margin-bottom: 20px;
}

.footer h3,
.footer h4,
.page-foot h3,
.page-foot h4,
.page-foot h3,
.page-foot h4 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.footer p,
.page-foot p,
.page-foot p {
  margin: 0;
  max-width: 320px;
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.foot-legal p,
.page-foot .foot-legal p {
  max-width: none;
}

.foot-nav a,
.foot-help a,
.page-foot .foot-nav a,
.page-foot .foot-help a {
  display: block;
  margin-bottom: 10px;
  color: rgba(210, 215, 225, 0.68);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}

.foot-nav a:hover,
.foot-help a:hover,
.page-foot .foot-nav a:hover,
.page-foot .foot-help a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer a,
.page-foot a,
.page-foot a {
  color: rgba(210, 215, 225, 0.68);
  text-decoration: none;
}

.footer a:hover,
.page-foot a:hover,
.page-foot a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer ul,
.page-foot ul,
.page-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li,
.page-foot li,
.page-foot li {
  margin: 0;
}

.foot-base,
.page-foot-base {
  width: min(1180px, 90vw);
  margin: 46px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.foot-base p,
.page-foot-base p {
  margin: 0;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.foot-lang,
.foot-lang-row {
  width: min(1180px, 90vw);
  margin: 26px auto 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 900px) {
  .foot-inner,
  .site-foot-inner,
  .page-foot .grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .foot-inner,
  .site-foot-inner,
  .page-foot .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer p,
  .page-foot p,
  .page-foot p {
    margin-inline: auto;
  }

  .foot-brand img {
    margin-inline: auto;
  }
}

/* Skip link */
.skip-main {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
}

.skip-main:focus {
  left: 0;
}

/* Particles placeholder — optional JS can enhance */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
  .ui-btn--primary:hover,
  .card-hover:hover {
    transform: none;
  }
}

/* ═══ NAVBAR — premium layout (must stay last) ═══ */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  z-index: 100;
  overflow: visible;
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  isolation: isolate;
}

.head-bar {
  width: min(1180px, calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  overflow: visible;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  white-space: nowrap;
}

.logo-link img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.logo-link span {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.nav-links a {
  color: rgba(255,255,255,0.66);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: rgba(255,255,255,0.95);
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 12;
  flex-shrink: 0;
}

.nav-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.045);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.035),
    0 0 18px rgba(255,255,255,0.035);
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-dl-btn:hover {
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.09);
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

#drawer-panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3,3,3,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem min(4vw, 24px) 1rem;
}

#drawer-panel.is-unfolded {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#drawer-panel a {
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  text-decoration: none;
}

#drawer-panel a:hover,
#drawer-panel a.nav-active {
  color: rgba(255,255,255,0.95);
}

body.page-root {
  padding-top: 72px;
}

main,
#page-body {
  padding-top: 0;
}

@media (max-width: 980px) {
  .head-bar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-dl-btn {
    min-width: 120px;
  }
}

@media (max-width: 520px) {
  .head-bar {
    height: 64px;
  }

  .logo-link span {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .logo-link img {
    width: 28px;
    height: 28px;
  }

  .nav-dl-btn {
    height: 36px;
    min-width: auto;
    padding: 0 16px;
    font-size: 0.64rem;
  }

  body.page-root {
    padding-top: 64px;
  }
}

/* Dark scrollbar — visible thumb, no empty track strip */
html {
  color-scheme: dark;
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 90, 90, 0.75) transparent;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(80, 80, 80, 0.8);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.9);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

html,
body,
body.page-root {
  overflow-x: clip !important;
  max-width: 100% !important;
  background-color: #050505 !important;
}


/* layout shell */
.layout-top { position: relative; z-index: 0; }
hr.sect-rule { border: 0; margin: 0; height: 1px; background: rgba(255,255,255,0.08); }
