/* ==========================================================================
   EMAIL CAMPAIGNER SAAS DESIGN SYSTEM
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --primary-color: #6366f1;      /* Indigo */
  --primary-hover: #4f46e5;      /* Dark Indigo */
  --primary-light: #818cf8;      /* Light Indigo */
  --accent-color: #06b6d4;       /* Cyan */
  --accent-light: #22d3ee;       /* Light Cyan */
  
  --bg-dark: #0a0f1d;            /* Midnight Blue */
  --bg-card: rgba(17, 24, 39, 0.7); /* Dark Grey Glass Card */
  --border-glass: rgba(99, 102, 241, 0.15); /* Indigo Border */
  
  --text-main: #f3f4f6;          /* Gray 100 */
  --text-muted: #9ca3af;         /* Gray 400 */
  --text-highlight: #ffffff;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.email-body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background blur highlights */
body.email-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  background: radial-gradient(circle at 75% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 2. Header & Navigation */
.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-highlight);
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 50%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary-light);
}

/* 3. Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 10;
}

.hero-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* 4. Mock Dashboard Preview */
.dashboard-container {
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  background: rgba(13, 18, 35, 0.8) !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.dashboard-header {
  background: #111827;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.dashboard-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-weight: 600;
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-box {
  background: rgba(13, 18, 35, 0.9);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-highlight);
}

.metric-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.metric-badge.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.campaigns-list {
  background: rgba(13, 18, 35, 0.85);
  padding: 0.75rem 1.25rem;
}

.campaign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.campaign-row:last-child {
  border-bottom: none;
}

.camp-name {
  color: var(--text-main);
  font-weight: 500;
}

.camp-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.status-active {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.status-completed {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

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

/* 5. Checkout Enrollment Form */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-form-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-highlight);
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  width: 100%;
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group select option {
  background: #0f172a;
  color: #fff;
}

.pricing-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-light);
}

.price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.btn-submit-match {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: var(--transition-smooth);
}

.btn-submit-match:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

/* 6. Layout Grid & Main Content */
.main-layout-container {
  max-width: 1200px;
  margin: 3rem auto 6rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2.3fr 0.7fr;
  gap: 3rem;
}

@media (max-width: 968px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.main-article {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2.5rem;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.meta-item.category {
  color: var(--primary-light);
  font-weight: 600;
}

.meta-item.date {
  color: var(--text-muted);
}

.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-highlight);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.article-content {
  font-size: 1.05rem;
  color: #cbd5e1;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  color: var(--text-highlight);
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
  font-weight: 700;
  font-family: var(--font-display);
}

/* Features list style */
.curriculum-accordion {
  margin: 3rem 0;
}

.curriculum-accordion h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-highlight);
  border-left: 3px solid var(--primary-color);
  padding-left: 0.75rem;
  font-family: var(--font-display);
}

.accordion-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

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

.module-num {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.item-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.item-body {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 7. Sidebar Components */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-highlight);
}

.card-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

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

/* Stats list */
.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 60px;
  font-family: var(--font-display);
}

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

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-link {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.link-bullet {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.link-text {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.sidebar-link:hover .link-title {
  color: var(--primary-light);
}

.link-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.benefit-list li strong {
  color: var(--primary-light);
}

/* 8. Footer Section */
.site-footer {
  background: #060912;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4rem 2rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
}

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
