/* VPS.Limited — Modern Dark Theme */

:root {
  --bg-primary: #0c0808;
  --bg-secondary: #140e0e;
  --bg-card: #1a1212;
  --bg-card-hover: #221616;
  --bg-elevated: #2a1a1a;

  --text-primary: #f8f4f4;
  --text-secondary: #a89a9a;
  --text-muted: #6b5c5c;

  --accent: #ef4444;
  --accent-light: #f87171;
  --accent-glow: rgba(239, 68, 68, 0.4);
  --accent-secondary: #f97316;
  --accent-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 45%, #dc2626 100%);

  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(148, 163, 184, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --header-height: 72px;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(239, 68, 68, 0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { color: var(--text-primary); }

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(12, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(12, 8, 8, 0.96);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.logo__mark {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo__text { color: var(--text-primary); }

.nav__list {
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--accent-light);
  background: rgba(239, 68, 68, 0.08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hide-mobile { display: inline-flex; }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(239, 68, 68, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: #ef4444;
  top: -200px;
  right: -100px;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: #dc2626;
  bottom: -100px;
  left: -100px;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__title-line { display: block; }

.hero__title-accent {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: lowercase;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Sections ── */

.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Offer Cards ── */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.offer-card:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(239, 68, 68, 0.08);
}

.offer-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}

.offer-card__icon svg { width: 24px; height: 24px; }

.offer-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.offer-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.offer-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.offer-card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent-light);
  transition: color var(--transition);
}

.offer-card__link:hover { color: var(--accent); }

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: var(--shadow-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 100px;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pricing-card__speed {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pricing-card__old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-card__period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-card__features {
  margin-bottom: 2rem;
}

.pricing-card__features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--accent-secondary);
  font-weight: 700;
  font-size: 0.8125rem;
}

.pricing-card__features li:last-child { border-bottom: none; }

/* ── KVM ── */

.kvm-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.kvm-intro .section__title { text-align: left; }
.kvm-intro .section__desc { text-align: left; margin-bottom: 2rem; }

.kvm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.kvm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}

.kvm-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.kvm-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.kvm-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kvm-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Hardware ── */

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition);
}

.hardware-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

.hardware-card__label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.hardware-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Testimonials ── */

.testimonials {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial {
  flex: 0 0 100%;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.testimonial p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial footer span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition);
}

.testimonials__btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(239, 68, 68, 0.1);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.testimonials__dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ── CTA ── */

.cta-section { padding-bottom: 6rem; }

.cta-box {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  position: relative;
}

.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
}

/* ── Footer ── */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 360px;
}

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer__col ul li { margin-bottom: 0.5rem; }

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--accent-light); }

.footer__bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Reveal Animation ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hardware-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kvm-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(12, 8, 8, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .offer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .kvm-grid {
    grid-template-columns: 1fr;
  }

  .hardware-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .cta-box__actions {
    flex-direction: column;
  }

  .cta-box__actions .btn {
    width: 100%;
  }
}
