:root {
  --black: #0a0a0f;
  --deep: #120c1a;
  --purple: #8b3dff;
  --neon: #2af2ff;
  --blue: #2d7bff;
  --white: #f7f7fb;
  --glass: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(5, 5, 16, 0.8);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--white);
  background: radial-gradient(circle at top, #1b1233, var(--black) 70%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 97%, rgba(255, 255, 255, 0.04) 98%),
    linear-gradient(90deg, transparent 97%, rgba(255, 255, 255, 0.04) 98%);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

.bg-glow-1 {
  top: -80px;
  right: 10%;
  background: rgba(139, 61, 255, 0.35);
  animation: floatGlow 8s ease-in-out infinite;
}

.bg-glow-2 {
  bottom: -120px;
  left: 8%;
  background: rgba(42, 242, 255, 0.25);
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  background: rgba(7, 7, 16, 0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.brand-nova {
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.brand-x {
  color: var(--neon);
  text-shadow: 0 0 18px rgba(42, 242, 255, 0.8), 0 0 38px rgba(139, 61, 255, 0.6);
  animation: glitch 2.6s infinite;
}

.brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 4px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a.active {
  background: rgba(42, 242, 255, 0.2);
  color: var(--neon);
}

.site-nav a:hover {
  background: rgba(42, 242, 255, 0.12);
  color: var(--neon);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--white);
  display: block;
  border-radius: 999px;
}
.cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 242, 255, 0.2);
}

.cta.primary {
  background: linear-gradient(120deg, var(--purple), var(--neon));
  border-color: transparent;
  color: var(--black);
}

.cta.ghost {
  background: transparent;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 80px 6vw 40px;
  align-items: center;
}

.hero-content h1 {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 12px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  margin: 26px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.hero-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px var(--shadow);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.hero-card ul {
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.8);
}

.pulse-ring {
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  border: 1px solid rgba(42, 242, 255, 0.4);
  animation: pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.section {
  padding: 60px 6vw;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: "Unbounded", "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
}

.portfolio-grid,
.packages-grid,
.vps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 20px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 242, 255, 0.5);
}

.tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(42, 242, 255, 0.2);
  color: var(--neon);
}

.highlight {
  background: linear-gradient(180deg, rgba(139, 61, 255, 0.16), rgba(0, 0, 0, 0.1));
  border-top: 1px solid rgba(139, 61, 255, 0.4);
  border-bottom: 1px solid rgba(42, 242, 255, 0.3);
}

.two-col {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.checklist {
  padding-left: 0;
  list-style: none;
}

.checklist li {
  padding: 8px 0 8px 26px;
  position: relative;
}

.checklist li::before {
  content: "v";
  position: absolute;
  left: 0;
  color: var(--neon);
}

.price-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(42, 242, 255, 0.12);
  border: 1px solid rgba(42, 242, 255, 0.4);
}

.price {
  font-size: 1.6rem;
  font-weight: 600;
  display: block;
}

.price-note {
  display: block;
  margin: 6px 0 16px;
  color: rgba(255, 255, 255, 0.7);
}

.highlight-card {
  background: linear-gradient(120deg, rgba(42, 242, 255, 0.2), rgba(139, 61, 255, 0.15));
  border-color: rgba(42, 242, 255, 0.5);
}

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-family: inherit;
}

.contact-form button {
  border: none;
}

.contact-status {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(42, 242, 255, 0.9);
  min-height: 20px;
}

.contact-status.error {
  color: #ff9bb2;
}
.site-footer {
  padding: 30px 6vw 60px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
}

.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(140deg, var(--neon), var(--purple));
  color: var(--black);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 20;
}

.chat-fab svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.chat-dot {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3366;
  box-shadow: 0 0 12px rgba(255, 51, 102, 0.8);
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(320px, 90vw);
  max-height: 70vh;
  background: rgba(10, 10, 18, 0.95);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  z-index: 30;
}

.chat-panel.active {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.chat-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.chat-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-form {
  display: grid;
  gap: 10px;
}

.chat-form input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.chat-form button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--neon);
  color: var(--black);
  font-weight: 600;
}

.chat-input {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.chat-input input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.chat-input button {
  border: none;
  border-radius: 10px;
  background: var(--purple);
  color: var(--white);
  padding: 0 16px;
}

.chat-message {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 0.9rem;
}

.chat-message.client {
  align-self: flex-end;
  background: rgba(42, 242, 255, 0.2);
  border: 1px solid rgba(42, 242, 255, 0.4);
}

.chat-message.admin {
  align-self: flex-start;
  background: rgba(139, 61, 255, 0.2);
  border: 1px solid rgba(139, 61, 255, 0.4);
}

.chat-meta {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 0 0 20px rgba(42, 242, 255, 0.9);
  }
  50% {
    text-shadow: 0 0 8px rgba(139, 61, 255, 0.9), 0 0 24px rgba(42, 242, 255, 0.7);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .site-header {
    position: static;
  }

  .site-header {
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(7, 7, 16, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
  }

  .site-nav.open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
