:root {
  --bg: #070b0d;
  --panel: #10171a;
  --panel2: #152024;
  --line: #28363a;
  --text: #e8e9df;
  --muted: #8f9c9d;
  --red: #9ebc47;
  --red2: #536c29;
  --green: #69d6a5;
  --amber: #c9a85f;
}

body {
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 73, 72, .12), transparent 34%),
    var(--bg);
}

.topbar {
  background: linear-gradient(180deg, rgba(4, 8, 10, .98), rgba(5, 12, 14, .72), transparent);
}

.brand-mark {
  border-color: #718b3b;
  box-shadow: inset 0 0 20px rgba(158, 188, 71, .13), 0 0 22px rgba(68, 108, 95, .08);
}

.hero {
  background:
    linear-gradient(90deg, rgba(4, 9, 11, .94) 0%, rgba(4, 9, 11, .72) 38%, rgba(4, 9, 11, .28) 72%, rgba(4, 9, 11, .48) 100%),
    linear-gradient(0deg, rgba(5, 10, 12, .72), transparent 42%),
    url('/assets/hero-island-v4.webp') center center / cover no-repeat,
    #071012;
}

.hero-fog {
  position: absolute;
  z-index: 1;
  inset: 12% -25% -5%;
  pointer-events: none;
  opacity: .52;
  background:
    radial-gradient(ellipse at 18% 64%, rgba(184, 214, 204, .29), transparent 35%),
    radial-gradient(ellipse at 55% 48%, rgba(126, 169, 160, .24), transparent 34%),
    radial-gradient(ellipse at 88% 70%, rgba(153, 188, 180, .18), transparent 32%);
  filter: blur(24px);
  animation: island-fog 18s ease-in-out infinite alternate;
}

@keyframes island-fog {
  from { transform: translate3d(-10%, 2%, 0) scale(1.03); opacity: .35; }
  to { transform: translate3d(10%, -3%, 0) scale(1.12); opacity: .68; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fog { animation: none; }
}

.hero-glow {
  border-color: rgba(116, 151, 94, .13);
  box-shadow: 0 0 100px rgba(35, 104, 91, .08), inset 0 0 100px rgba(158, 188, 71, .035);
}

.hero-grid {
  opacity: .22;
  background-image:
    linear-gradient(rgba(139, 172, 151, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 172, 151, .035) 1px, transparent 1px);
}

.button.primary {
  background: linear-gradient(135deg, #91ad43, #455e2a);
  border-color: #9ebc47;
  color: #081006;
  box-shadow: 0 8px 28px rgba(93, 126, 51, .22);
}

.button.primary:hover {
  background: linear-gradient(135deg, #b4ce65, #5d7934);
  border-color: #c9dc7a;
}

.hero-status {
  background: rgba(8, 16, 18, .88);
  border-color: #304247;
}

.server-section {
  background: #091013;
}

.server-card {
  background: linear-gradient(135deg, #121b1e, #0c1316);
}

.server-card::after {
  border-color: rgba(158, 188, 71, .09);
}

.server-brand-name { color: #a9c653; }

.features-section {
  background:
    radial-gradient(circle at 25% 45%, rgba(47, 96, 87, .12), transparent 30%),
    #070d0f;
}

.feature-card {
  background: #0e171a;
}

.feature-card:hover {
  background: #142125;
}

.connect-section {
  background:
    linear-gradient(115deg, rgba(74, 103, 48, .22), transparent 45%),
    #10191c;
}

.connect-panel {
  background: rgba(6, 12, 14, .72);
  border-color: #314247;
}

.rules-section {
  background: #080e10;
}

.state.offline {
  color: #d78368;
  border-color: rgba(215, 131, 104, .35);
}

.cinematic-scene {
  --scene-opacity: 0;
  --scene-shift: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #071012;
}

.cinematic-scene::before,
.cinematic-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cinematic-scene::before {
  z-index: -2;
  inset: -12vh 0;
  opacity: var(--scene-opacity);
  background-image: var(--scene-image);
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--scene-shift), 0) scale(1.075);
  will-change: transform, opacity;
}

.cinematic-scene::after {
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, #071012 0%, rgba(7, 16, 18, .18) 18%, rgba(7, 16, 18, .22) 78%, #071012 100%),
    linear-gradient(90deg, rgba(4, 10, 12, .78), rgba(4, 10, 12, .28) 55%, rgba(4, 10, 12, .42));
}

.scene-prison { --scene-image: url('/assets/hero-island-base.webp'); }
.scene-builder { --scene-image: url('/assets/scene-builder.webp'); }
.scene-event { --scene-image: url('/assets/scene-event-v3.webp'); }
.scene-community { --scene-image: url('/assets/scene-community.webp'); }

.scene-prison .server-card,
.scene-builder .feature-card,
.scene-event .connect-panel,
.scene-community .rules-grid {
  backdrop-filter: blur(9px);
}

.scene-prison .server-card { background: rgba(9, 17, 20, .82); }
.scene-builder .feature-card { background: rgba(9, 18, 20, .78); }
.scene-event .connect-panel { background: rgba(5, 12, 14, .74); }

.dedicated-hardware {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(158, 188, 71, .28);
  background: linear-gradient(100deg, rgba(10, 20, 21, .92), rgba(17, 31, 31, .78));
  box-shadow: inset 3px 0 0 #91ad43, 0 14px 40px rgba(0, 0, 0, .18);
}

.hardware-icon { color: #a9c653; font-size: 29px; line-height: 1; }

.dedicated-hardware strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: .08em;
  color: var(--text);
}

.dedicated-hardware p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }

.hardware-badge {
  padding: 7px 10px;
  border: 1px solid rgba(105, 214, 165, .34);
  color: var(--green);
  background: rgba(105, 214, 165, .07);
  font: 700 11px/1 'Inter', sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dedicated-hardware { grid-template-columns: auto 1fr; }
  .hardware-badge { grid-column: 2; justify-self: start; }
}
.scene-community .rules-grid { background: rgba(5, 12, 14, .66); }

.feature-status {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 8px;
  border: 1px solid rgba(158, 188, 71, .42);
  color: #b8ce74;
  background: rgba(158, 188, 71, .08);
  font: 700 9px var(--body);
  letter-spacing: 1.3px;
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-scene::before {
    transform: none;
    opacity: .62;
    will-change: auto;
  }
}
