:root {
  --bg: #030712;
  --bg-card: rgba(17, 24, 39, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(94, 106, 210, 0.3);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #5e6ad2;
  --accent-glow: rgba(94, 106, 210, 0.15);
  --cyan: #06b6d4;
  --emerald: #10b981;
  --purple: #8b5cf6;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients */
.bg-glow-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.08) 0%, transparent 70%);
  top: -10%;
  left: 10%;
  z-index: -1;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  top: 40%;
  right: 5%;
  z-index: -1;
  pointer-events: none;
}

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

/* Header */
header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeIn 0.8s ease-out;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Metadata file link banner */
.metadata-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

.metadata-banner:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

/* Grid */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Glass Card */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: 24px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.badge-blue { background: rgba(94, 106, 210, 0.1); color: #818cf8; border: 1px solid rgba(94, 106, 210, 0.2); }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.2); }
.badge-emerald { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  font-size: 0.88rem;
  color: #d1d5db;
}

.features-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: bold;
}

.pricing-section {
  border-t: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  margin-top: auto;
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  margin-bottom: 16px;
}

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

.btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  background: #4f5bbf;
  box-shadow: 0 0 15px rgba(94, 106, 210, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-top: 10px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Tabs System */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(94, 106, 210, 0.3);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* Publisher Playbook Dashboard Layout */
.playbook-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  min-height: 600px;
}

.playbook-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-right: 20px;
}

.subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.subtab-btn.active {
  background: rgba(94, 106, 210, 0.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  font-weight: 600;
}

.playbook-content {
  padding-left: 10px;
}

.subtab-content {
  display: none;
}

.subtab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* Playbook styling components */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Code block container with copy button */
.code-container {
  position: relative;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 25px;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px 10px 0 0;
}

.code-lang {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.btn-copied {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}

.code-container pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Playbook Tables */
.playbook-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.playbook-table th, .playbook-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playbook-table th {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.01);
}

.playbook-table td {
  color: var(--text-muted);
}

.playbook-table tr:hover td {
  color: #ffffff;
}

/* Outreach Script Generator Widget */
.outreach-generator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.generator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.01);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
}

.form-group input, .form-group select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(94, 106, 210, 0.2);
}

.generator-outputs {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.output-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.output-header h4 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 1rem;
}

.output-box textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #e5e7eb;
  padding: 15px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
  height: 160px;
  outline: none;
}

.output-box textarea:focus {
  border-color: var(--cyan);
}

/* Steps Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.checklist-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.checklist-check {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(94, 106, 210, 0.05);
}

.checklist-content h5 {
  margin: 0 0 4px 0;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 0.95rem;
}

.checklist-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsive Playbook Grid */
@media (max-width: 900px) {
  .playbook-layout {
    grid-template-columns: 1fr;
  }
  .playbook-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 0;
    padding-bottom: 20px;
    flex-direction: row;
    overflow-x: auto;
  }
  .outreach-generator {
    grid-template-columns: 1fr;
  }
}

