/* --- Design System & CSS Variables --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sleek Dark Palette */
  --bg-color: #030014;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.16);
  
  /* Accents */
  --accent-primary: #ff416c;
  --accent-secondary: #ff4b2b;
  --accent-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* --- Aurora Glow Backgrounds --- */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  background: var(--accent-primary);
  top: -200px;
  left: -200px;
}

.glow-2 {
  background: var(--accent-secondary);
  top: 400px;
  right: -250px;
}

.glow-3 {
  background: #ff416c;
  bottom: 10%;
  left: 20%;
  width: 500px;
  height: 500px;
}

/* --- Navigation Bar --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 0, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--accent-secondary);
  font-size: 1.6rem;
}

.logo-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover {
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(100, 100, 100, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(100, 100, 100, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.btn-nav {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: #fff;
  color: var(--bg-color);
}

/* --- Hero Section --- */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.badge-container {
  margin-bottom: 0.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--accent-secondary);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Dashboard Console Mockup --- */
.dashboard-preview {
  width: 100%;
  max-width: 900px;
  background: rgba(10, 8, 28, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: left;
}

.dashboard-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.85rem;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 320px;
}

.sidebar-mock {
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-item {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-left: 2px solid var(--accent-primary);
}

.main-mock {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.8rem;
}

.metric-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.metric-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}

.font-success {
  color: #10b981;
}

.logs-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.log-line {
  color: #d1d5db;
}

.log-tag {
  font-weight: bold;
  margin-right: 0.5rem;
}

.tag-success { color: #10b981; }
.tag-warning { color: #f59e0b; }
.tag-info { color: #3b82f6; }
.tag-error { color: #ef4444; }
.tag-done { color: #a855f7; }

/* --- Features Section --- */
.features-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 4rem 0 8rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.cta-box h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
}

.cta-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cta-form input {
  flex-grow: 1;
  background: rgba(3, 0, 20, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 0.8rem 1.5rem;
  color: #fff;
  font-family: var(--font-body);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.cta-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* --- Footer --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  background: rgba(2, 0, 10, 0.8);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .dashboard-content {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .sidebar-mock {
    display: none;
  }
  
  .cta-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-form input {
    border-radius: 9999px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}