/* ========== CSS VARIABLES ========== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f111a;
  --bg-card: #13151c;
  --bg-card-hover: #1a1d26;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-red: #ef4444;
  --accent-red-light: #f87171;
  --accent-cyan: #22d3ee;
  --accent-cyan-light: #67e8f9;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-red: rgba(239, 68, 68, 0.3);
  --shadow-cyan: rgba(34, 211, 238, 0.3);
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== ANIMATED BACKGROUND ========== */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 350px 50px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 400px 200px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 450px 100px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 500px 250px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 550px 30px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 600px 180px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 650px 90px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 700px 220px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 750px 60px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 800px 140px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 850px 190px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 900px 40px, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 950px 110px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 1000px 170px, rgba(255,255,255,0.2), transparent);
  background-repeat: repeat;
  background-size: 1000px 300px;
  animation: twinkle 8s ease-in-out infinite;
}

.stars-2 {
  background-position: 500px 150px;
  animation-delay: -2s;
  opacity: 0.5;
}

.stars-3 {
  background-position: 250px 75px;
  animation-delay: -4s;
  opacity: 0.3;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.logo-container {
  position: relative;
  margin-bottom: 2rem;
  width: 180px;
  height: 180px;
  margin-left: auto;
  margin-right: auto;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.6) 0%, rgba(239, 68, 68, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
  filter: blur(20px);
}

.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  animation: rotateRing 10s linear infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-red);
}

.logo-ring-2 {
  width: 250px;
  height: 250px;
  border-color: rgba(34, 211, 238, 0.2);
  animation: rotateRing 15s linear infinite reverse;
}

.logo-ring-2::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
  bottom: -4px;
  top: auto;
}

.logo-img {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 80px rgba(239, 68, 68, 0.6),
    0 0 120px rgba(239, 68, 68, 0.3),
    inset 0 0 60px rgba(239, 68, 68, 0.2);
  animation: floatLogo 3s ease-in-out infinite, logoPulse 4s ease-in-out infinite;
  border: 3px solid rgba(239, 68, 68, 0.5);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow:
      0 0 80px rgba(239, 68, 68, 0.6),
      0 0 120px rgba(239, 68, 68, 0.3),
      inset 0 0 60px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow:
      0 0 100px rgba(239, 68, 68, 0.8),
      0 0 150px rgba(239, 68, 68, 0.5),
      inset 0 0 80px rgba(239, 68, 68, 0.3);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes rotateRing {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-red);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  box-shadow: 0 0 30px var(--shadow-red);
  transform: translateY(-2px);
}

.new-badge {
  background: var(--accent-red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(4px);
}

/* ========== SECTION STYLES ========== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-icon {
  color: var(--accent-red);
  font-size: 1.5rem;
}

.view-all {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.view-all:hover {
  opacity: 0.8;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-4px);
}

.testimonial-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.author-handle {
  color: var(--accent-red);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ========== QUICK START ========== */
.terminal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tab.active {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
}

.tab:hover:not(.active) {
  color: var(--text-primary);
}

.terminal-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.platform-change {
  color: var(--accent-red);
}

.platform-badge {
  background: var(--accent-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

.beta-badge {
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Fira Code', 'Consolas', monospace;
}

.terminal-comment {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.command-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prompt {
  color: var(--accent-red);
  font-weight: bold;
}

.command {
  color: var(--text-primary);
  flex: 1;
  font-size: 0.95rem;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.quick-start-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-red);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== INTEGRATIONS ========== */
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.integration-badge:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.integration-icon {
  font-size: 1rem;
}

.integrations-links {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.integrations-links a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

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

/* ========== FEATURED ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.featured-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
}

.featured-source {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.source-icon {
  font-size: 1.5rem;
}

.source-name {
  font-weight: 600;
  color: var(--text-primary);
}

.featured-card blockquote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.featured-card cite {
  color: var(--accent-red);
  font-style: normal;
  font-weight: 500;
}

/* ========== LINKS SECTION ========== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-4px);
}

.link-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent-red);
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ========== NEWSLETTER ========== */
.newsletter-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
}

.newsletter h2 {
  justify-content: center;
  margin-bottom: 1rem;
}

.newsletter p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 250px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--shadow-red);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.subscribe-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-red);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background: var(--accent-red-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow-red);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-credit {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-credit .highlight {
  color: var(--accent-red);
  text-decoration: none;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .terminal-platform {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .newsletter-container {
    padding: 2rem 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .email-input {
    min-width: 100%;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-card-hover);
}