:root {
  font-family: "Space Grotesk", sans-serif;
  color: #0f172a;
  background-color: #f5f6fb;
  --bg: #f6f7fb;
  --white: #ffffff;
  --primary: #3b82f6;
  --accent: #0ea5e9;
  --text-muted: #6b7280;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  color: #0f172a;
  overflow-x: hidden;
}

.background-waves {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at top, #e0f2ff, transparent 50%),
    radial-gradient(circle at bottom, #e3ffe7, transparent 40%);
}

.background-waves span {
  position: absolute;
  width: 140%;
  height: 80%;
  left: -20%;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.3), transparent);
  filter: blur(60px);
  animation: wave 16s ease-in-out infinite alternate;
}

.background-waves span:nth-child(2) {
  top: 30%;
  animation-duration: 22s;
  background: linear-gradient(150deg, rgba(14, 165, 233, 0.3), transparent);
}

.background-waves span:nth-child(3) {
  top: 60%;
  animation-duration: 18s;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.25), transparent);
}

@keyframes wave {
  0% {
    transform: translateX(-10%) translateY(-10%) rotate(5deg);
  }
  100% {
    transform: translateX(10%) translateY(10%) rotate(-5deg);
  }
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 251, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo span {
  display: inline-block;
}

nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
  color: #0f172a;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

button {
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

button.primary.glow {
  position: relative;
}

button.primary.glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

button.primary.glow:hover::after {
  opacity: 1;
}

button.ghost {
  background: rgba(15, 23, 42, 0.07);
  color: #0f172a;
}

button:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--text-muted);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  margin: 1rem 0;
  line-height: 1.1;
}

h1 span {
  display: block;
  color: var(--primary);
}

.lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  text-align: left;
}

.metrics strong {
  font-size: 2rem;
  display: block;
}

.metrics span {
  color: var(--text-muted);
}

section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card,
.pricing-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.feature-card.in-view,
.pricing-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pill {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.step-card span {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.08);
}

.features .feature-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.group h4 {
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
  min-height: 180px;
}

.feature-card.pro {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
}

.pricing {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent),
    rgba(255, 255, 255, 0.6);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.discount-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.2);
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(28px);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-muted);
}

.pricing-card ul li {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 16px;
  padding: 0.8rem;
  font-size: 0.95rem;
}

.pricing-card ul li span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}

.card-header .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.price .price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.price .yearly-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.footnote,
.note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.featured {
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
  position: relative;
}

.featured .badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.audience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.audience-cards article {
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  border-radius: 32px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  box-shadow: 0 30px 80px rgba(59, 130, 246, 0.2);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.text-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

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

@media (max-width: 900px) {
  nav {
    display: none;
  }
  .nav-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .cta {
    flex-direction: column;
    text-align: center;
  }
  .metrics {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav-actions {
    flex-direction: column;
  }
  button {
    width: 100%;
  }
  .cta {
    padding: 2rem;
  }
}

/* Legal Pages Styles */
.legal-page {
  padding: 4rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1rem 2rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: #0f172a;
  font-weight: 600;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

@media (max-width: 600px) {
  .legal-content {
    padding: 2rem 1.5rem;
  }
  .legal-content h1 {
    font-size: 2rem;
  }
}
