@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #6366f1;
  --accent: #f43f5e;
  
  /* Backgrounds */
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(15, 23, 42, 0.6);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  
  /* UI Elements */
  --border: rgba(255, 255, 255, 0.1);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Effects */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(15,23,42,0) 70%);
  top: -200px;
  left: -200px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.bg-glow.right {
  top: auto;
  bottom: -200px;
  left: auto;
  right: -200px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(15,23,42,0) 70%);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
}
.logo img {
  height: 32px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-main);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text .subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.section-padding { padding: 5rem 0; }
.text-center { text-align: center; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pricing-card .card-accent {
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.pricing-card.tier-free .card-accent { background: linear-gradient(90deg, #64748b, #94a3b8); }
.pricing-card.tier-growth .card-accent { background: linear-gradient(90deg, var(--primary), #38bdf8); }
.pricing-card.tier-pro .card-accent { background: linear-gradient(90deg, var(--secondary), #a78bfa); }
.pricing-card.tier-enterprise .card-accent { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.pricing-card.popular {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: 14px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1;
}
.price-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.plan-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
}
.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}
.feature-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.feature-list li .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  margin-top: 2px;
}
.feature-list li .check.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.feature-list li .check.blue {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
}
.feature-list li .check.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}
.feature-list li .check.gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.feature-list li .check.muted {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}
.feature-list li.missing {
  color: #475569;
}
.feature-list li.missing .check {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

/* Documentation / Guide Layout */
.doc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding-top: 8rem;
  min-height: 100vh;
}
.doc-sidebar {
  position: sticky;
  top: 100px;
  height: max-content;
}
.doc-nav {
  list-style: none;
}
.doc-nav li { margin-bottom: 0.5rem; }
.doc-nav a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.doc-nav a:hover, .doc-nav a.active {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
}

.doc-content h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-top: 3rem; }
.doc-content h2:first-child { margin-top: 0; }
.doc-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  background: rgba(0,0,0,0.3);
  padding: 3rem 0;
  margin-top: 5rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero { padding-top: 6rem; }
  .hero-text div { justify-content: center; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid > div:last-child { text-align: center; }
}
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-main);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-links.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card.popular { transform: none; }
  .features-grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}
