:root {
  --primary-color: #ffffff;
  --secondary-color: #94a3b8;
  --bg-color: #0b1120; /* Deep Navy */
  --text-color: #cbd5e1;
  --link-color: #3b82f6; /* Blue highlight */
  --link-hover-color: #60a5fa;
  --nav-bg: rgba(11, 17, 32, 0.75);
  --nav-border: rgba(255, 255, 255, 0.08);
  --max-width: 1200px;
  --font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;

  --card-bg: rgba(30, 41, 59, 0.4);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --highlight-blue: #2563eb;
  --highlight-red: #ef4444;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image:
    radial-gradient(
      circle at 15% 50%,
      rgba(37, 99, 235, 0.08),
      transparent 25%
    ),
    radial-gradient(circle at 85% 30%, rgba(239, 68, 68, 0.05), transparent 25%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header {
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  background: linear-gradient(
    135deg,
    var(--highlight-blue),
    var(--highlight-red)
  );
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
}

/* Base Typography for secondary pages (privacy/tos) */
h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.meta {
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--nav-border);
  padding-bottom: 1.25rem;
}

h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-color);
  font-size: 1.05rem;
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Landing Page Specific Styles */
.hero {
  text-align: center;
  padding: 100px 0 120px;
  position: relative;
}

.hero h1 {
  font-size: 4.5rem;
  background: linear-gradient(to right, #ffffff, #a5b4fc);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 680px;
  margin: 0 auto 3rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--link-color);
  color: #fff;
  border: 1px solid var(--link-color);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background: var(--link-hover-color);
  border-color: var(--link-hover-color);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary-color);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-color);
  text-decoration: none;
  transform: translateY(-2px);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.glow-orb.blue {
  width: 500px;
  height: 500px;
  background: var(--highlight-blue);
  top: -150px;
  left: -150px;
}

.glow-orb.red {
  width: 400px;
  height: 400px;
  background: var(--highlight-red);
  bottom: -100px;
  right: -100px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 3rem;
  margin-top: 0;
}

.section-header p {
  color: var(--secondary-color);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  position: relative;
  z-index: 2;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 80px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--card-shadow);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.feature-card.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-content p {
  color: var(--secondary-color);
  font-size: 1.15rem;
  line-height: 1.7;
}

.feature-image {
  flex: 1.2;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--nav-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.feature-card:hover .feature-image img {
  opacity: 1;
  transform: scale(1.02);
}

/* Fallback styling for the alt text when dummy images don't exist yet */
.feature-image::before {
  content: attr(alt);
  position: absolute;
  color: var(--secondary-color);
  font-size: 0.95rem;
  text-align: center;
  padding: 30px;
  z-index: -1;
}

footer {
  text-align: center;
  padding: 5rem 24px 3rem;
  margin-top: 100px;
  border-top: 1px solid var(--nav-border);
  background: rgba(11, 17, 32, 0.95);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1.05rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

footer p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 1024px) {
  .feature-card,
  .feature-card.reverse {
    flex-direction: column;
    gap: 40px;
    padding: 40px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }

  nav ul {
    gap: 20px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .feature-content h3 {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 24px;
    border-radius: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}
