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

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #64748b;
  --success: #22c55e;
  --accent: #8b5cf6;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

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

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

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e1b4b 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(59,130,246,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139,92,246,0.08) 0%, transparent 50%);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--card-bg);
  text-decoration: none;
}

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

.btn-accent:hover {
  background: #7c3aed;
  text-decoration: none;
}

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

.btn-success:hover {
  background: #16a34a;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Section */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 100%);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: -30px -30px 20px -30px;
}

.blog-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Article */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}

.article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.article-meta {
  color: var(--text-muted);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.article-content p {
  margin-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 15px 20px;
  margin: 20px 0;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-cta {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  border: 1px solid var(--border);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px 30px;
  border: 1px solid var(--border);
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.pricing-period {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  margin-right: 10px;
  font-weight: 700;
}

/* Tools */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.tool-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tool-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tool-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Form */
.form-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Newsletter */
.newsletter {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  margin-top: 60px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 20px auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 30px;
}

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

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

/* Notifications */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(150%);
  transition: transform 0.3s;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

/* Debug Panel */
.debug-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #0f172a;
  color: #d4d4d4;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 12px;
  max-width: 350px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.debug-panel h4 {
  margin-bottom: 10px;
  color: var(--success);
}

.debug-entry {
  padding: 3px 0;
  border-bottom: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid,
  .pricing-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form {
    flex-direction: column;
  }
}
