:root {
  --bg: #050505;
  --panel: #101010;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --soft: #7e7e7e;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --accent: #3390ec;
  --purple: #7c5cfc;
  --green: #2db87d;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.97); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -28px) scale(1.07); }
  66% { transform: translate(-14px, 18px) scale(0.96); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 30px var(--accent); }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: none; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── Animated background orbs ───────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.08;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 { width: 320px; height: 320px; background: #3390ec; top: -120px; left: -80px; animation-delay: 0s; }
.orb-2 { width: 260px; height: 260px; background: #7c5cfc; top: 38%; right: -110px; animation-delay: -4s; }
.orb-3 { width: 220px; height: 220px; background: #2db87d; bottom: 22%; left: -70px; animation-delay: -8s; }

/* ─── Animation utility classes ──────────────────────────────── */
.animate-fade-in { animation: fadeInUp .5s ease both; }
.animate-fade { animation: fadeIn .4s ease both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-scale { animation: scaleIn .3s ease both; }

/* Staggered animations */
.stagger-1 { animation-delay: .1s; }
.stagger-2 { animation-delay: .2s; }
.stagger-3 { animation-delay: .3s; }
.stagger-4 { animation-delay: .4s; }
.stagger-5 { animation-delay: .5s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(180deg, #030303 0%, #050505 100%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  opacity: 0.7;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
}

.brand-text { font-size: 1.05rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-pill {
  color: var(--text) !important;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: var(--text);
  display: block;
}

.hero { padding: 72px 0 42px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.hero-copy,
.hero-panel-frame,
.side-note,
.plan-row,
.server-row,
.callout,
.empty-card,
.legal-card,
.support-card,
.support-form,
.lk-card,
.lk-login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card,
.step-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.info-card::before,
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transition: transform .3s ease;
}
.info-card:hover,
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  border-color: var(--line-strong);
}
.info-card:hover::before,
.step-card:hover::before {
  transform: scaleX(1);
}

.hero-copy { padding: 40px; }
.hero-panel-frame { height: 100%; padding: 28px; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  max-width: 14ch;
}

.lead,
.info-card p,
.step-card p,
.side-note p,
.footer-copy,
.legal-card p,
.support-card p,
.support-form p,
.lk-muted {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 22px 0 28px;
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions,
.support-actions,
.lk-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Shine effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .5s;
}
.btn:hover::before {
  animation: shine 2s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 100%; }
}

.btn-primary {
  color: #050505;
  background: #ffffff;
  border-color: #ffffff;
}

.btn-secondary { background: rgba(255, 255, 255, 0.03); }
.btn-primary:hover, .btn-secondary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.btn:active { transform: scale(.98); }

/* Glassmorphism */
.btn-glass {
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
}
.btn-glass:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, rgba(255,255,255,.08) 100%);
  border-color: rgba(255,255,255,.25);
}

/* Neon glow */
.btn-neon {
  box-shadow: 0 0 5px var(--accent), inset 0 0 5px rgba(51,144,236,.1);
}
.btn-neon:hover {
  box-shadow: 0 0 15px var(--accent), 0 0 25px var(--accent), inset 0 0 10px rgba(51,144,236,.2);
}

.hero-metrics,
.feature-grid,
.steps-grid,
.footer-grid,
.support-grid,
.lk-grid { display: grid; gap: 16px; }

.hero-metrics {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: default;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  border-color: var(--line-strong);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.92rem;
}

.hero-panel-head,
.signal-row,
.callout,
.footer-grid,
.lk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hero-panel-body {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.signal-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-row:last-child { border-bottom: 0; }
.signal-row span { color: var(--muted); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.status-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.section { padding: 42px 0; }
.section-compact { padding-top: 20px; padding-bottom: 70px; }
.section-top { margin-bottom: 24px; }

.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legal-layout, .support-grid, .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.info-card,
.step-card,
.side-note,
.plan-row,
.server-row,
.empty-card,
.legal-card,
.support-card,
.support-form,
.lk-card { padding: 24px; }

.info-card h3,
.step-card h3,
.side-note h3,
.legal-card h3,
.support-card h3 { margin-bottom: 10px; font-size: 1.15rem; }

.step-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--soft);
  font-family: "IBM Plex Mono", monospace;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.plans-list, .server-board { display: grid; gap: 14px; }

.plan-row, .server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-row-left,
.server-row-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.plan-badge,
.server-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.server-dot.online { background: #ffffff; }
.server-dot.offline { background: transparent; }

.plan-title, .server-title { font-weight: 700; }

.plan-meta,
.server-meta,
.helper {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  white-space: nowrap;
}

.server-state,
.footer-links a { color: var(--soft); }

.callout { padding: 30px; }
.site-footer { padding: 0 0 36px; }
.footer-grid { padding-top: 20px; border-top: 1px solid var(--line); }

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brand-footer { margin-bottom: 12px; }
.page-hero { padding: 56px 0 24px; }
.page-hero p { max-width: 64ch; color: var(--muted); line-height: 1.7; }

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.support-form form { display: grid; gap: 12px; }

.support-form input,
.support-form textarea,
.lk-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 15px 16px;
}

.support-form textarea { min-height: 140px; resize: vertical; }

.success-box,
.notice-box {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.lk-wrap { padding: 56px 0 72px; }
.lk-panel { display: grid; gap: 18px; }
.lk-title { margin-bottom: 10px; }
.lk-login-card { padding: 36px; max-width: 560px; }

.lk-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-row:last-child { border-bottom: 0; }
.lk-row span:first-child { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", monospace; word-break: break-all; }

@media (max-width: 960px) {
  .hero-grid,
  .pricing-layout,
  .feature-grid,
  .steps-grid,
  .legal-layout,
  .support-grid,
  .lk-grid { grid-template-columns: 1fr; }

  .hero-copy,
  .hero-panel-frame { padding: 28px; }

  .hero-metrics { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .nav-wrap { min-height: 72px; }
  .hero { padding-top: 38px; }

  .hero-copy,
  .hero-panel-frame,
  .info-card,
  .step-card,
  .side-note,
  .plan-row,
  .server-row,
  .callout,
  .legal-card,
  .support-card,
  .support-form,
  .lk-card,
  .lk-login-card { padding: 20px; }

  .plan-row,
  .server-row,
  .callout,
  .footer-grid,
  .hero-panel-head,
  .signal-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links { justify-content: flex-start; }
}
