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

:root {
  --bg: #070507;
  --bg-elevated: #12090c;
  --bg-panel: #1a0e12;
  --line: rgba(255, 72, 88, 0.18);
  --text: #f6ecee;
  --muted: #a89298;
  --accent: #e11d38;
  --accent-hot: #ff3b54;
  --accent-deep: #8b0f22;
  --online: #3dff8a;
  --offline: #c9c2c4;
  --glow: rgba(225, 29, 56, 0.35);
  --radius: 18px;
  --gradient-card: linear-gradient(180deg, rgba(36, 16, 22, 0.92), rgba(18, 9, 12, 0.92));
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --container-max: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(225, 29, 56, 0.22), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(90, 10, 24, 0.55), transparent 50%),
    radial-gradient(800px 500px at 50% 100%, rgba(225, 29, 56, 0.08), transparent 45%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(225, 29, 56, 0.45);
  color: white;
}

.container {
  width: min(var(--container-max), calc(100% - 2rem));
  margin-inline: auto;
}

.panel {
  background: var(--gradient-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.noise {
  position: relative;
}

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 28px rgba(225, 29, 56, 0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 42px rgba(225, 29, 56, 0.4);
  }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes frame-drift {
  0%,
  100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-6px); opacity: 1; }
}

@keyframes dot-pulse {
  0%,
  100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.45); opacity: 1; }
}

@keyframes orb-drift {
  0%,
  100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}

@keyframes art-sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes btn-shine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

.rise {
  opacity: 0;
  animation: rise 0.85s ease forwards;
}

.float-block {
  animation: floaty 7s ease-in-out infinite;
}

.glow-dot {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-logo img {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  box-shadow: 0 0 28px rgba(225, 29, 56, 0.25);
}

.site-logo span {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .site-logo span {
    display: none;
  }
}

.burger-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.burger-btn:hover {
  background: rgba(225, 29, 56, 0.12);
  border-color: rgba(255, 72, 88, 0.45);
}

.burger-btn .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease;
}

.burger-btn.open .bar:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.burger-btn.open .bar:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

.menu-panel {
  position: fixed;
  z-index: 19;
  left: 8px;
  right: 8px;
  border-radius: 20px;
  background: rgba(18, 9, 12, 0.96);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid var(--line);
  padding: 90px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  top: -640px;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .menu-panel {
    left: auto;
    right: 12px;
    width: 400px;
    padding: 56px;
  }
}

.menu-panel.open {
  top: 8px;
  opacity: 1;
  pointer-events: auto;
}

.menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-panel nav a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  transition: opacity 0.25s ease;
}

.menu-panel nav a:hover {
  opacity: 0.7;
}

.menu-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.menu-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.menu-socials a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-socials a:hover {
  color: var(--text);
}

.menu-cta-wrap {
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 40px var(--glow);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 48px rgba(225, 29, 56, 0.5);
}

.btn--primary:hover::after {
  animation: btn-shine 0.75s ease;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(255, 72, 88, 0.45);
  background: rgba(225, 29, 56, 0.08);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 2.5rem;
}

.btn--lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.9375rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: 2.5rem;
  min-height: 100vh;
  padding: 6rem 0 4rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  animation: logo-breathe 4.5s ease-in-out infinite;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-tagline {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero-tagline {
    font-size: 1rem;
  }
}

.hero-headline {
  font-family: var(--font-display);
  max-width: 48rem;
  margin-top: 0.25rem;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.status-badge {
  display: none;
}

.status-badge .glow-dot,
[data-server-dot] {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--offline);
  box-shadow: 0 0 16px rgba(201, 194, 196, 0.35);
}

[data-server-dot].is-online,
[data-server-dot].status-dot--green {
  background: var(--online);
  box-shadow: 0 0 16px var(--online);
}

[data-server-dot].status-dot--yellow {
  background: #ffb020;
  box-shadow: 0 0 16px rgba(255, 176, 32, 0.5);
}

[data-server-dot].status-dot--red {
  background: var(--offline);
  box-shadow: 0 0 16px rgba(201, 194, 196, 0.35);
}

.status-badge-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* Scene décor */
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-drift 11s ease-in-out infinite;
  will-change: transform;
}

.scene-orb--a {
  top: 12%;
  left: 8%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(225, 29, 56, 0.45), transparent 70%);
}

.scene-orb--b {
  right: 12%;
  bottom: 18%;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(255, 59, 84, 0.28), transparent 70%);
  animation-delay: -4s;
  animation-duration: 14s;
}

.scene-block {
  position: absolute;
  border-radius: 1rem;
  will-change: transform;
}

.scene-block--lg {
  top: 18%;
  right: 8%;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(255, 72, 88, 0.35);
  background: linear-gradient(145deg, rgba(225, 29, 56, 0.35), rgba(20, 8, 12, 0.2));
  box-shadow: 0 30px 80px rgba(225, 29, 56, 0.25);
}

.scene-block--md {
  bottom: 12%;
  left: 6%;
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 72, 88, 0.25);
  background: linear-gradient(160deg, rgba(255, 59, 84, 0.2), rgba(10, 5, 7, 0.4));
}

.scene-block--sm {
  top: 42%;
  left: 18%;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(12deg);
}

.scene-tri {
  position: absolute;
  right: -2rem;
  top: 6rem;
  width: 16rem;
  height: 16rem;
  opacity: 0.3;
  animation: spin-slow 48s linear infinite;
  transform-origin: 55% 55%;
  will-change: transform;
}

@media (max-width: 768px) {
  .scene-block--lg,
  .scene-block--md,
  .scene-block--sm {
    opacity: 0.45;
  }

  .scene-tri {
    opacity: 0.15;
    width: 10rem;
    height: 10rem;
  }
}

/* Status art panel */
.status-art {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(500px 240px at 0% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(420px 220px at 100% 100%, rgba(255, 255, 255, 0.12), transparent 55%),
    #090909;
  --status-accent: #f2f2f2;
  --status-glow: rgba(255, 255, 255, 0.12);
  --status-frame: rgba(255, 255, 255, 0.35);
  transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
  will-change: transform;
}

.status-art::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 45%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: art-sheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.status-art[data-mode="online"] {
  --status-accent: #3dff8a;
  --status-glow: rgba(61, 255, 138, 0.28);
  --status-frame: rgba(61, 255, 138, 0.55);
  background:
    radial-gradient(500px 240px at 0% 0%, var(--status-glow), transparent 60%),
    radial-gradient(420px 220px at 100% 100%, var(--status-glow), transparent 55%),
    #090909;
  box-shadow: 0 0 60px rgba(61, 255, 138, 0.12);
}

.status-art[data-mode="offline"] {
  --status-accent: #f2f2f2;
  --status-glow: rgba(255, 255, 255, 0.12);
  --status-frame: rgba(255, 255, 255, 0.35);
}

.status-art[data-mode="maintenance"] {
  --status-accent: #ff3b54;
  --status-glow: rgba(255, 59, 84, 0.3);
  --status-frame: rgba(255, 59, 84, 0.55);
  background:
    radial-gradient(500px 240px at 0% 0%, var(--status-glow), transparent 60%),
    radial-gradient(420px 220px at 100% 100%, var(--status-glow), transparent 55%),
    #090909;
  box-shadow: 0 0 60px rgba(255, 59, 84, 0.14);
}

.status-art-frame {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  width: 6rem;
  border-radius: 28px;
  border: 1px solid var(--status-frame);
  pointer-events: none;
  animation: frame-drift 5.5s ease-in-out infinite;
  transition: border-color 0.5s ease;
}

.status-art-frame--left {
  left: -1.5rem;
  animation-delay: 0s;
}

.status-art-frame--right {
  right: -1.5rem;
  animation-delay: -2.5s;
}

.status-art-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.status-art-logo {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--status-frame);
  background: #000;
  padding: 0.75rem;
  box-shadow: 0 0 40px var(--status-glow);
  animation: logo-breathe 5s ease-in-out infinite;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.status-art-logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.status-art-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-art-left {
  color: #fff;
}

.status-art-right {
  color: var(--status-accent);
  transition: color 0.45s ease;
}

.status-art-sub {
  margin-top: 0.75rem;
  max-width: 28rem;
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.35s ease;
}

.status-art-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.status-art-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

.status-art-dot:nth-child(2) {
  animation-delay: 0.35s;
}

.status-art-dot:nth-child(3) {
  animation-delay: 0.7s;
}

.status-art-dot--accent {
  background: var(--status-accent);
  box-shadow: 0 0 12px var(--status-accent);
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .float-block,
  .glow-dot,
  .hero-brand-logo,
  .scene-orb,
  .scene-tri,
  .status-art::before,
  .status-art-frame,
  .status-art-logo,
  .status-art-dot,
  .btn--primary::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
