/* CSS Design System for Sonic Flow API Gateway */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #0b0c10;
  --panel-bg: rgba(18, 20, 29, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --color-primary: #6366f1; /* Violet */
  --color-secondary: #3b82f6; /* Blue */
  --glow-gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Gradients Glows */
.ambient-glow-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  z-index: -1;
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -200px;
  z-index: -1;
  pointer-events: none;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 100;
  padding: 1.2rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

.btn-nav {
  background: var(--glow-gradient);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
  max-width: 1000px;
  margin: 6rem auto 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}

.tagline {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 span {
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--glow-gradient);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--panel-border);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

/* Features Grid */
.features {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3.5rem;
}

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

.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  stroke: var(--color-primary);
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--color-primary);
}

.badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--glow-gradient);
  color: #fff;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-card ul li svg {
  stroke: var(--color-primary);
  width: 16px;
  height: 16px;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 4rem 2rem;
  background-color: #07080b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

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

/* Compliance Document Pages Layout */
.doc-container {
  max-width: 800px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.doc-container h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--glow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.doc-container h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
}

.doc-container p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

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

.doc-container ul li {
  margin-bottom: 0.5rem;
}

/* Responsive queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links {
    display: none;
  }
}
