:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --primary: #6366f1;
  /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #a855f7;
  /* Purple */
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border: #27272a;
  --success: #10b981;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  -webkit-text-fill-color: var(--primary);
  /* Reset gradient for icon if needed, or keep it */
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #4f46e5;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-glow:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Navbar offset */
}

/* Background Gradients */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat .label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  width: 280px;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--success);
  margin-bottom: 0.5rem;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.service-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.service-latency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-graph {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 40px;
}

.bar {
  flex: 1;
  background-color: var(--primary);
  border-radius: 2px;
  opacity: 0.7;
  animation: pulseBar 2s infinite ease-in-out;
}

.bar:nth-child(even) {
  animation-delay: 0.2s;
}

@keyframes pulseBar {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* Features Section */
.features {
  padding: 6rem 5%;
  background-color: var(--bg-dark);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Logo Section */
.logos-section {
  padding: 3rem 5%;
  background-color: var(--bg-card);
  /* Slightly lighter background */
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.logos-section p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.company-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.company-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--text-main);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 5%;
  background-color: var(--bg-dark);
  /* Contrast with features if features is card bg? Wait, features is dark. */
  /* Let's make features bg-dark and this one bg-dark too but using cards. */
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1.5rem;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.author .info {
  display: flex;
  flex-direction: column;
}

.author .info strong {
  color: var(--text-main);
}

.author .info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  padding: 6rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
}

/* Footer */
/* Text Page Layout (About, Privacy, Terms) */
.text-page {
  padding-top: 120px;
  padding-bottom: 6rem;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.text-page h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-page h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.text-page p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-page ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.text-page li {
  margin-bottom: 0.5rem;
}

/* Unified Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 5% 2rem;
  background-color: var(--bg-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
    flex-direction: column;
  }
}
