@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Gilroy-Light.woff') format('woff');
}
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Gilroy-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Gilroy-Medium.woff') format('woff');
}
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Gilroy-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Gilroy-Bold.woff') format('woff');
}
@font-face {
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/Gilroy-Heavy.woff') format('woff');
}

:root {
  --bg: #151515;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #1d1d1f;
  --surface-card: #1a1a1c;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.58);
  --text-soft: rgba(255, 255, 255, 0.78);
  --accent-indigo: #5865f2;
  --font-display: 'Unbounded', 'Manrope', sans-serif;
  --font-body: 'Gilroy', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Full-bleed Page Shell — zero black sidebars */
.page-shell {
  position: relative;
  width: 100%;
  min-height: 145dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Full-bleed Hero Artwork fading seamlessly into #151515 */
.hero-art {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 580px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.72;
  filter: none;
  transform: none;
  display: block;
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(21, 21, 21, 0.08) 0%, rgba(21, 21, 21, 0.28) 30%, rgba(21, 21, 21, 0.86) 66%, #151515 100%);
}

/* Centered inner container */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Floating Pill Header — pinned to top on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.brand-pill {
  pointer-events: auto;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 24px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: none;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.brand-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.brand-logo-img {
  width: 27px;
  height: 27px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.primary-nav {
  pointer-events: auto;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: none;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.header-actions {
  pointer-events: auto;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: none;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.auth-pill:hover {
  background: rgba(255, 255, 255, 0.13);
}

.auth-pill svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding-bottom: 64px;
}

/* First Section: Editorial 2-Column Rows (Title+Desc Left) */
.about-section {
  padding: 530px 0 96px;
}

.about-rows {
  display: grid;
  gap: 72px;
  width: 100%;
  margin: 0 auto;
}

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-height: 240px;
}

.about-phrase,
.about-metric {
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-phrase {
  display: inline-block;
}

.about-row.is-switching .about-phrase,
.about-row.is-switching .about-metric {
  opacity: 0;
  transform: translateY(-8px);
}

.about-copy {
  text-align: left;
}

.about-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.about-desc {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.about-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.about-metric-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.about-metric-label {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

.about-visual {
  margin-top: 18px;
  margin-left: 0;
  width: 280px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.about-sparkline {
  width: 270px;
  height: 118px;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.42));
}

.about-sparkline path {
  fill: none;
  stroke: url(#wardenSparkGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: sparkDraw 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, sparkPulse 3.6s ease-in-out 2.2s infinite;
}

@keyframes sparkDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes sparkPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.3)); opacity: 0.92; }
  50% { filter: drop-shadow(0 0 16px rgba(94, 234, 212, 0.65)); opacity: 1; }
}

/* Servers rack animation */
.about-servers-svg {
  width: 270px;
  height: 116px;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.32));
}

.srv-bar {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(94, 234, 212, 0.38);
  stroke-width: 1.4;
}

.srv-dot {
  fill: #5eead4;
  animation: srvBlink 1.8s ease-in-out infinite;
}

.srv-dot-2 { animation-delay: 0.45s; }
.srv-dot-3 { animation-delay: 0.9s; }

.srv-activity {
  fill: none;
  stroke: #5eead4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 28 72;
  animation: srvFlow 2s linear infinite;
}

@keyframes srvBlink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes srvFlow {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

/* Uptime heartbeat / shield wave animation */
.about-uptime-svg {
  width: 270px;
  height: 116px;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.42));
}

.uptime-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.uptime-pulse {
  fill: none;
  stroke: url(#wardenUptimeGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 90 140;
  animation: uptimeRun 2.4s linear infinite;
}

@keyframes uptimeRun {
  from { stroke-dashoffset: 230; }
  to { stroke-dashoffset: 0; }
}

.about-warden-stage {
  position: relative;
  width: clamp(240px, 28vw, 370px);
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: wardenFloat 6s ease-in-out infinite;
}

.about-warden-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: opacity 2.2s cubic-bezier(0.22, 1, 0.36, 1), filter 2.2s ease;
}

.about-warden-gray {
  opacity: 0.96;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

.about-warden-color {
  opacity: 0;
  filter: drop-shadow(0 0 36px rgba(45, 212, 191, 0.32)) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

body.is-alive .about-warden-gray {
  opacity: 0;
}

body.is-alive .about-warden-color {
  opacity: 1;
}

@keyframes wardenFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-creeper-wrap {
  position: relative;
  width: clamp(210px, 23vw, 310px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: creeperFloat 6.5s ease-in-out infinite;
}

.about-creeper-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  filter: grayscale(100%) contrast(1.06) brightness(0.95) drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

@keyframes creeperFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

/* Interactive White Server Online Area Chart (faded left/right edges) */
.online-chart-card {
  position: relative;
  width: clamp(320px, 34vw, 460px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.online-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
}

.online-chart-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.online-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: onlinePulse 2.4s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

.online-chart-current {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.online-chart-stage {
  position: relative;
  width: 100%;
  height: 176px;
  cursor: crosshair;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.about-phrase-wrap {
  position: relative;
  display: inline-block;
}

.about-phrase-wave {
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  height: 15px;
  overflow: visible;
  pointer-events: none;
}

.about-phrase-wave-path {
  fill: none;
  stroke: var(--wave-color, #6e44cf);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition:
    stroke-dashoffset 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    stroke 0.55s ease;
}

body.is-wave-drawn .about-phrase-wave-path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.online-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.online-chart-area {
  fill: url(#onlineWhiteArea);
}

.online-chart-line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.online-chart-guide {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.online-chart-dot {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 6;
  opacity: 0;
  transition: opacity 0.15s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.online-chart-stage.is-hovering .online-chart-guide,
.online-chart-stage.is-hovering .online-chart-dot {
  opacity: 1;
}

.online-chart-tooltip {
  position: absolute;
  top: 4px;
  left: 0;
  transform: translate(-50%, -100%);
  padding: 9px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: none;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 28px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  z-index: 10;
}

.online-chart-tooltip.is-visible {
  opacity: 1;
}

.online-tooltip-val {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.online-tooltip-time {
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}

/* Yandex-Music-style interactive drag-only cyclic 15-item arc carousel */
.why-section {
  position: relative;
  width: 100%;
  padding: 62px 0 34px;
  overflow: visible;
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.why-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.why-head {
  position: relative;
  z-index: 5;
  text-align: center;
  margin-bottom: 18px;
}

.why-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.why-sub {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.56);
}

.why-carousel-viewport {
  position: relative;
  width: 100%;
  height: 430px;
  margin-top: -56px;
  overflow-x: clip;
  overflow-y: visible;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.why-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.why-carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.why-dome-item {
  position: absolute;
  left: 50%;
  top: 124px;
  width: 310px;
  height: 268px;
  margin-left: -155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 104px 32px 0;
  transform-origin: center bottom;
  will-change: transform, opacity;
  user-select: none;
}

.why-dome-aura {
  position: absolute;
  inset: -12px -44px -24px -44px;
  border-radius: 50%;
  filter: blur(44px);
  mix-blend-mode: screen;
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.why-dome-svg {
  position: absolute;
  inset: 14px 0 -12px 0;
  width: 100%;
  height: calc(100% - 2px);
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 44%, transparent 86%);
}

.why-dome-icon {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translateX(-48%);
  z-index: 3;
  pointer-events: none;
}

.why-dome-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.why-icon-trail {
  display: none;
}

.why-dome-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

@media (max-width: 760px) {
  .why-carousel-viewport {
    height: 360px;
    margin-top: -70px;
  }
  .why-dome-item {
    top: 108px;
    width: 224px;
    height: 220px;
    margin-left: -112px;
    padding: 80px 18px 0;
  }
  .why-dome-icon {
    width: 66px;
    height: 66px;
    top: -8px;
  }
  .why-dome-label {
    font-size: 15.5px;
  }
}

/* Tariffs section between Why carousel and Stats (MagOps dark glass theme) */
.tariffs-section {
  position: relative;
  width: 100%;
  padding: 62px 0 42px;
}

.tariffs-section .container {
  max-width: 1360px;
  padding: 0 28px;
}

.tariffs-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  margin-bottom: 40px;
}

.tariffs-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.tariffs-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tariffs-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tariffs-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.tariffs-tab.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tariffs-section .tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.tariffs-section .tariff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.048);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 52px rgba(0, 0, 0, 0.42);
}

.tariffs-section .tariff-card.is-featured {
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(110, 68, 207, 0.18) 0%, rgba(110, 68, 207, 0) 68%),
    rgba(255, 255, 255, 0.042);
  border-color: rgba(139, 92, 246, 0.38);
}

.tariffs-section .tariff-card.is-featured:hover {
  border-color: rgba(139, 92, 246, 0.6);
}

.tariffs-section .tariff-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-bottom: 18px;
}

.tariffs-section .tariff-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.24;
  color: #ffffff;
  min-width: 0;
}

.tariffs-section .tariff-card-tag {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.tariffs-section .tariff-card.is-featured .tariff-card-tag {
  color: #ede4ff;
  background: rgba(110, 68, 207, 0.28);
  border-color: rgba(139, 92, 246, 0.45);
}

.tariffs-section .tariff-specs {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.tariffs-section .tariff-spec-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.38;
  min-width: 0;
}

.tariffs-section .tariff-spec-lbl {
  color: rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
  white-space: nowrap;
}

.tariffs-section .tariff-spec-dots {
  flex: 1 1 8px;
  min-width: 6px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.tariffs-section .tariff-spec-val {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}

.tariffs-section .tariff-card-foot {
  padding-top: 8px;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tariffs-section .tariff-price {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.tariffs-section .tariff-comment {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
}

.tariffs-section .tariff-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.tariffs-section .tariff-card:hover .tariff-cta,
.tariffs-section .tariff-cta:hover {
  background: #ffffff;
  color: #151515;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.tariffs-section .tariff-card.is-featured .tariff-cta {
  background: #ffffff;
  color: #151515;
  border-color: #ffffff;
}

.tariffs-section .tariff-card.is-featured:hover .tariff-cta,
.tariffs-section .tariff-card.is-featured .tariff-cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1120px) {
  .tariffs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tariffs-section .container {
    padding: 0 18px;
  }
  .tariffs-tabs {
    border-radius: 20px;
    width: 100%;
  }
  .tariffs-tab {
    width: 100%;
    text-align: center;
  }
  .tariffs-grid {
    grid-template-columns: 1fr;
  }
  .tariffs-section .tariff-spec-lbl,
  .tariffs-section .tariff-spec-val {
    white-space: normal;
  }
}

/* Tri-color ambient lamps behind Stats Section (organic overlapping cloud, never clipped) */
.stats-aurora-section {
  position: relative;
  width: 100%;
  padding: 130px 0 150px;
  overflow: visible;
  isolation: isolate;
}

.stats-lamps-cluster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1260px, 100vw);
  height: 540px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.stats-aurora-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  text-align: center;
}

.stats-aurora-item {
  position: relative;
  padding: 28px 16px;
}

.stats-lamp {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(34px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats-lamp-violet {
  left: 19%;
  top: 47%;
  width: 660px;
  height: 440px;
  background: radial-gradient(
    ellipse at center,
    rgba(130, 88, 236, 0.28) 0%,
    rgba(130, 88, 236, 0.14) 32%,
    rgba(130, 88, 236, 0.045) 56%,
    rgba(130, 88, 236, 0) 75%
  );
  transition-delay: 0.05s;
}

.stats-lamp-peach {
  left: 50%;
  top: 56%;
  width: 600px;
  height: 390px;
  background: radial-gradient(
    ellipse at center,
    rgba(224, 134, 96, 0.25) 0%,
    rgba(224, 134, 96, 0.125) 30%,
    rgba(224, 134, 96, 0.04) 55%,
    rgba(224, 134, 96, 0) 75%
  );
  transition-delay: 0.25s;
}

.stats-lamp-mint {
  left: 81%;
  top: 44%;
  width: 720px;
  height: 470px;
  background: radial-gradient(
    ellipse at center,
    rgba(116, 214, 146, 0.24) 0%,
    rgba(116, 214, 146, 0.115) 32%,
    rgba(116, 214, 146, 0.035) 57%,
    rgba(116, 214, 146, 0) 76%
  );
  transition-delay: 0.45s;
}

.stats-aurora-section.is-inview .stats-lamp {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 760px) {
  .stats-lamps-cluster {
    height: 440px;
  }
  .stats-lamp-violet {
    left: 20%;
    width: 380px;
    height: 290px;
  }
  .stats-lamp-peach {
    left: 50%;
    top: 56%;
    width: 340px;
    height: 260px;
  }
  .stats-lamp-mint {
    left: 80%;
    top: 45%;
    width: 410px;
    height: 310px;
  }
}

.stats-aurora-val {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.stats-aurora-lbl {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 768px) {
  .about-section {
    padding: 400px 0 60px;
  }

  .online-chart-card {
    width: 100%;
    max-width: 440px;
  }

  .stats-aurora-section {
    padding: 72px 0 90px;
  }

  .stats-aurora-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-lamp {
    width: 320px;
    height: 260px;
  }

  .about-creeper-wrap {
    width: 200px;
    margin: 0 auto;
  }

  .about-warden-stage {
    width: 240px;
    margin: 0 auto;
  }

  .about-rows {
    gap: 44px;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-sparkline {
    margin-left: 0;
  }
}

/* Intro Section */
.hero-intro {
  padding: 340px 0 64px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-title-line {
  display: block;
}

.hero-accent-wrap {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  vertical-align: bottom;
}

.hero-accent-word {
  display: inline-block;
  background: linear-gradient(95deg, #c7f9f4 0%, #5eead4 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(0) brightness(1.05);
  text-shadow: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-alive .hero-accent-word {
  filter: saturate(1.1) brightness(1.05) drop-shadow(0 0 24px rgba(45, 212, 191, 0.28));
}

.hero-accent-word.is-exiting {
  opacity: 0;
  transform: translateY(-10px);
}

.hero-accent-word.is-entering {
  opacity: 0;
  transform: translateY(12px);
}

.hero-wave-underline {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  width: calc(100% + 4px);
  height: 14px;
  pointer-events: none;
  overflow: visible;
  filter: saturate(0);
  transition: filter 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-alive .hero-wave-underline {
  filter: saturate(1.15) drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
}

.hero-wave-path {
  fill: none;
  stroke: url(#wardenWaveGrad);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition:
    stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.hero-wave-underline.is-drawn .hero-wave-path {
  stroke-dashoffset: 0;
  opacity: 1;
}

.hero-wave-underline.is-erasing .hero-wave-path {
  stroke-dashoffset: -480;
  opacity: 0;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 650px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.56);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pill-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #151515;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn-pill-light:hover {
  background: #ececef;
  transform: translateY(-1px);
}

.btn-pill-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-pill-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Stats Strip (Matches Reference 2: Bold Unbounded numbers + Gilroy captions) */
.stats-row {
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.stat-label {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Section Headers */
.section-block {
  padding: 56px 0 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

/* Category Filter Tabs */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--border-hover);
  color: #ffffff;
}

.tab-btn.is-active {
  background: #ffffff;
  color: #151515;
  border-color: #ffffff;
  font-weight: 700;
}

/* Glass Container Panel (Matches Reference 1 & 3 outer card frame) */
.glass-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--border);
  padding: 26px;
}

/* 3-Column Card Grid (Matches Reference 1) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tariff-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #1b1b1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tariff-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.tariff-card-top {
  padding: 22px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.tariff-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tariff-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.tariff-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tariff-desc {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.tariff-specs {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.tariff-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-soft);
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tariff-specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tariff-specs li strong {
  font-weight: 600;
  color: #ffffff;
}

.tariff-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tariff-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.tariff-price span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.tariff-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tariff-card:hover .tariff-cta {
  background: #ffffff;
  color: #151515;
  border-color: #ffffff;
}

/* Accordion Steps Panel (Matches Reference 3) */
.steps-panel {
  display: grid;
  gap: 12px;
}

.step-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.step-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.step-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: #ffffff;
}

.step-chevron {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.step-item.is-open .step-chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.14);
}

.step-body {
  padding: 0 22px 18px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  display: none;
}

.step-item.is-open .step-body {
  display: block;
}

/* Footer with Discord Shortcut (Matches Reference 3 bottom-left badge) */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.38);
  color: #dfe2ff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.discord-shortcut:hover {
  background: rgba(88, 101, 242, 0.28);
  border-color: rgba(88, 101, 242, 0.65);
  color: #ffffff;
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-meta a:hover {
  color: #ffffff;
}

/* Auth Page (/login) */
.auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 80px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 34px 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.auth-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-sub {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-muted);
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.48);
}

.auth-btn {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #151515;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.auth-btn:hover {
  background: #ececef;
  transform: translateY(-1px);
}

.auth-btn-secondary {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.auth-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-family: var(--font-body);
  font-size: 13.5px;
  display: none;
}

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container,
  .site-header,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    flex-wrap: wrap;
    padding-top: 16px;
    row-gap: 12px;
  }

  .brand-pill {
    order: 1;
    height: 44px;
    padding: 0 16px 0 11px;
    gap: 10px;
  }

  .brand-logo-img {
    width: 24px;
    height: 24px;
  }

  .brand-text {
    font-size: 16px;
  }

  .header-actions {
    order: 2;
  }

  .auth-pill {
    height: 44px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    height: 44px;
    padding: 4px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-link {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-art {
    height: 430px;
  }

  .hero-intro {
    padding: 96px 0 36px;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 12px;
  }

  .glass-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .nav-link {
    padding: 0 11px;
    font-size: 11.5px;
  }

  .auth-pill {
    height: 42px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .brand-pill {
    height: 42px;
  }

  .auth-card {
    padding: 26px 20px;
  }
}

/* ============================================================================
   Landing Floating Glass Dock Footer (#footer)
   ============================================================================ */
.site-footer.magops-footer {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 28px 34px;
  background: transparent;
  border: none;
}

.footer-dock {
  position: relative;
  max-width: 1304px;
  margin: 0 auto;
  padding: 44px 46px 30px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.018) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 28px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.85fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  text-decoration: none;
}

.footer-logo-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
  max-width: 390px;
}

.footer-status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
}

.footer-inn-line {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.4;
}

.footer-inn-line a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-inn-line a:hover {
  color: #ffffff;
}

.footer-col-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a,
.footer-links button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a:hover,
.footer-links button:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-divider {
  height: 1px;
  margin: 32px 0 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.02) 100%);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.footer-pay-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-pay-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-pay-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-pay-item svg {
  height: 20px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-pay-item--mir svg {
  height: 15px;
}

.footer-credit a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.56);
  text-decoration: none;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.footer-credit a:hover {
  color: #ffffff;
}

/* ============================================================================
   Interactive Legal Documents Modal (#legalModal)
   ============================================================================ */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 12, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-modal-backdrop.is-open {
  display: flex;
}

.legal-modal-dialog {
  width: 100%;
  max-width: 880px;
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: rgba(24, 24, 27, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-modal-title-wrap {
  min-width: 0;
}

.legal-modal-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.9);
  margin-bottom: 4px;
}

.legal-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.legal-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.legal-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.legal-modal-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.legal-modal-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.legal-modal-tab.is-active {
  background: #ffffff;
  color: #151515;
  border-color: #ffffff;
}

.legal-modal-body {
  padding: 22px 24px 26px;
  overflow-y: auto;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.legal-modal-body h4 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin: 0 0 10px;
}

.legal-modal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-modal-body li {
  margin-bottom: 5px;
}

.legal-modal-highlight {
  margin: 14px 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: #ede9fe;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .footer-dock {
    padding: 36px 32px 26px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-footer.magops-footer {
    padding: 8px 14px 24px;
  }
  .footer-dock {
    padding: 28px 20px 24px;
    border-radius: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-pay-list {
    gap: 14px 18px;
  }
  .legal-modal-backdrop {
    padding: 12px;
  }
  .legal-modal-header,
  .legal-modal-tabs,
  .legal-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
