:root {
  --primary: #ffd700;
  --primary-dark: #ffcc00;
  --primary-light: rgba(255, 215, 0, 0.15);
  --primary-glow: rgba(255, 215, 0, 0.6);
  --dark: #101010;
  --dark-light: #151515;
  --gray: #222222;
  --gray-light: #333333;
  --gray-lighter: #444444;
  --text: #f5f5f5;
  --text-muted: #aaaaaa;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  margin: 1rem auto;
  background: rgba(16, 16, 16, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1300px;
  height: 70px;
}

header.scrolled .nav-container {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: rgba(16, 16, 16, 0.85);
  border-color: rgba(255, 215, 0, 0.1);
  margin: 0.5rem auto;
  border-radius: 12px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  font-style: italic;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  height: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white !important;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.nav-links .btn {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover {
  background-color: var(--primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn:hover::before {
  width: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.btn.outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  box-shadow: none;
}

.btn.outline:hover {
  background-color: var(--primary);
  color: white !important;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.btn.dark {
  background-color: var(--gray-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn.dark:hover {
  background-color: var(--gray-lighter);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
  background-color: var(--gray-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 30%,
    var(--primary-light) 0%,
    transparent 40%
  );
  opacity: 0.4;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text h1 span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  position: relative;
}

.hero-text h1 span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  bottom: 5px;
  left: 0;
  background-color: var(--primary-light);
  z-index: -1;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: floatUp 1s ease-out 0.3s both;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal {
  background-color: var(--dark-light);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 550px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
}

.terminal-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-button.red {
  background-color: #ff5f56;
}

.terminal-button.yellow {
  background-color: #ffbd2e;
}

.terminal-button.green {
  background-color: #27c93f;
}

.terminal-title {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: "Fira Code", monospace;
}

.terminal-body {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.command {
  display: flex;
  margin-bottom: 0.8rem;
}

.prompt {
  color: var(--primary);
  margin-right: 0.5rem;
}

.command-text {
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background-color: var(--primary);
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.glow-dot {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.2;
}

.glow-dot.green {
  background-color: var(--primary);
  width: 300px;
  height: 300px;
  top: 20%;
  left: 15%;
}

.glow-dot.gray {
  background-color: #4a4a4a;
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 10%;
}

/* Features Section */
.features {
  padding: 8rem 0;
  margin-top: 2rem;
  background-color: var(--dark-light);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gray-light) 50%,
    transparent 100%
  );
  top: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-header p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background-color: rgba(22, 22, 22, 0.5);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.2);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  background-color: var(--primary-light);
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover h3 {
  color: var(--primary);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.speed-test {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.speed-test::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.15;
  left: -400px;
  top: -200px;
  z-index: -1;
}

.speed-test-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 5rem;
}

.speed-test-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.test-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.test-card {
  background-color: rgba(22, 22, 22, 0.5);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
}

.test-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--primary);
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.test-card.active::before {
  height: 100%;
}

.test-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.gauge-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
}

.gauge-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gray-light);
  overflow: hidden;
}

.gauge-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(
    50% 50%,
    50% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    0% 0%,
    50% 0%
  );
  background-color: var(--primary);
  transform-origin: 50% 50%;
  transform: rotate(0deg);
  transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.gauge-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.gauge-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.test-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

#start-test-btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

/* Pricing Calculator Section */
.calculator {
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
}

.calculator::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.15;
  right: -400px;
  top: -400px;
  z-index: -1;
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 5rem;
}

.calculator-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calculator-content p {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
}

.calculator-card {
  background-color: rgba(22, 22, 22, 0.5);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0.1;
  z-index: -1;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.slider-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.slider-label svg {
  color: var(--primary);
}

.slider-value {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 80px;
  text-align: center;
}

.slider-container {
  position: relative;
  height: 8px;
  background-color: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.calc-total {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.calc-price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 8rem 0 3rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: 0.1;
  left: -300px;
  bottom: -300px;
  z-index: -1;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.footer-logo span {
  color: var(--primary);
}

.footer-description {
  color: var(--text-muted);
  max-width: 300px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.social-links svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-links a:hover svg {
  color: white;
}

.footer-link-group h3 {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 1rem;
}

.footer-link-list a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-link-list a::before {
  content: "→";
  color: var(--primary);
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-link-list a:hover {
  color: var(--text);
  transform: translateX(20px);
}

.footer-link-list a:hover::before {
  opacity: 1;
  left: -15px;
}

.copyright {
  text-align: center;
  padding-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  .calculator-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .calculator-content {
    text-align: center;
  }

  .calculator-content p {
    margin: 0 auto 3rem;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .test-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text p {
    margin: 0 auto 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .speed-test-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .speed-test-content p {
    margin: 0 auto 2.5rem;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .section-header h2,
  .calculator-content h2 {
    font-size: 2.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-description {
    max-width: 100%;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .calculator-card {
    padding: 2rem;
  }

  .calc-total {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .gauge-container {
    width: 150px;
    height: 150px;
  }

  .gauge-value {
    font-size: 1.8rem;
  }

  .gauge-needle {
    width: 60px;
  }
}
