/* Delulu Design System - Dark ASCII Theme */
:root {
  /* Backgrounds - Dark theme */
  --bg-root: #0a0806;
  --bg-surface: rgba(18, 14, 10, 0.85);
  --bg-elevated: rgba(26, 20, 14, 0.9);
  --bg-card: rgba(26, 20, 14, 0.85);
  --bg-card-inner: rgba(18, 14, 10, 0.8);

  /* Text - Light on dark */
  --text-primary: #FEF9F2;
  --text-secondary: rgba(254, 249, 242, 0.85);
  --text-muted: rgba(254, 249, 242, 0.6);
  --text-faint: rgba(254, 249, 242, 0.4);

  /* Accent */
  --accent-primary: #F6B61E;
  --accent-hover: #FFD04A;
  --accent-muted: rgba(246, 182, 30, 0.2);

  /* Semantic */
  --success: #4CAF50;
  --warning: #F6B61E;
  --error: #EF5350;
  --info: #42A5F5;

  /* Borders */
  --border-subtle: rgba(254, 249, 242, 0.15);
  --border-default: rgba(254, 249, 242, 0.3);
  --border-strong: rgba(246, 182, 30, 0.6);
  --border-width: 2px;

  /* Radii */
  --radius-card: 28px;
  --radius-bar: 16px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Component Dimensions */
  --bar-height: 48px;
  --bar-gap: 12px;
  --row-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Full-page ASCII canvas */
#page-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Hide ASCII animation on blog pages */
.blog-page-body #page-canvas {
  display: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  padding: var(--space-md) 0;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header .logo {
  color: #FEF9F2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.header .nav-link {
  color: rgba(254, 249, 242, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.header .nav-link:hover,
.header .nav-link.active {
  color: #FEF9F2;
}

/* Non-homepage header styles */
body:not(.home) .header {
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
  position: sticky;
  border-bottom: var(--border-width) solid var(--border-subtle);
}

body:not(.home) .header .logo {
  color: var(--text-primary);
  text-shadow: none;
}

body:not(.home) .header .nav-link {
  color: var(--text-secondary);
  text-shadow: none;
}

body:not(.home) .header .nav-link:hover,
body:not(.home) .header .nav-link.active {
  color: var(--text-primary);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-bar);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-primary);
  border: var(--border-width) solid var(--border-strong);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card-inner);
  color: var(--text-secondary);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(246, 182, 30, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent-primary);
  margin-bottom: var(--space-lg);
}

.hero-title {
  margin-bottom: var(--space-md);
  color: #FEF9F2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(254, 249, 242, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  background: rgba(254, 249, 242, 0.15);
  color: #FEF9F2;
  border-color: rgba(254, 249, 242, 0.4);
  backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
  background: rgba(254, 249, 242, 0.25);
  border-color: rgba(254, 249, 242, 0.6);
  color: #FEF9F2;
}

/* Stats Section */
.stats {
  padding: var(--space-xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* Services Section */
.services {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(21, 13, 8, 0.1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-muted);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-bar);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-muted);
}

/* Financials Section */
.financials {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
}

.financials-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

.financial-row {
  margin-bottom: var(--space-lg);
}

.financial-row.highlight {
  padding-top: var(--space-lg);
  border-top: 2px dashed var(--border-subtle);
}

.financial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

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

.financial-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.financial-value.positive {
  color: var(--success);
}

.financial-value.negative {
  color: var(--text-muted);
}

.financial-value.profit {
  color: var(--text-primary);
}

.financial-bar-container {
  height: var(--bar-height);
  background: var(--bg-card-inner);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-bar);
  position: relative;
  overflow: hidden;
}

.financial-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: var(--radius-bar);
  border: var(--border-width) solid var(--border-default);
}

.financial-bar.revenue {
  background: var(--success);
}

.financial-bar.costs {
  background: var(--text-muted);
}

.financial-bar.profit {
  background: var(--accent-primary);
}

.costs-breakdown {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.cost-item {
  background: var(--bg-card-inner);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 2px solid var(--border-subtle);
}

.margin-badge {
  text-align: center;
  margin-top: var(--space-md);
}

.margin-badge span {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-muted);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-primary);
}

/* Why Buy Section */
.why-buy {
  padding: var(--space-3xl) 0;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.opportunity-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.opportunity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 13, 8, 0.08);
}

.opportunity-card.highlight {
  background: var(--accent-muted);
  border-color: var(--accent-primary);
}

.opportunity-card.highlight:hover {
  box-shadow: 0 6px 20px rgba(246, 182, 30, 0.2);
}

.opportunity-card h3 {
  margin-bottom: var(--space-sm);
}

.opportunity-card p {
  color: var(--text-muted);
}

/* Target Section */
.target {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.target-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.target-range {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.target-card > p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.target-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.target-list li {
  background: var(--bg-card-inner);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 2px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Demo Showcase Section */
.demo-showcase {
  padding: var(--space-3xl) 0;
  background: transparent;
}

.demo-gallery {
  position: relative;
  max-width: 900px;
  margin: 0 auto var(--space-lg);
}

.demo-item {
  display: none;
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.demo-item.active {
  display: block;
}

.demo-item img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-caption {
  padding: var(--space-md);
  background: var(--bg-card);
  border-top: 2px solid var(--border-subtle);
}

.demo-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  background: var(--accent-muted);
  border: 2px solid var(--accent-primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-xs);
}

.demo-caption p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.demo-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.2s;
}

.demo-dot:hover {
  border-color: var(--border-default);
}

.demo-dot.active {
  background: var(--accent-primary);
  border-color: var(--border-default);
}

/* Calculator Section */
.calculator {
  padding: var(--space-3xl) 0;
}

.calculator-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 2px dashed var(--border-subtle);
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.input-prefix {
  color: var(--text-faint);
  font-weight: 600;
}

.input-wrapper input[type="range"] {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-card-inner);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  outline: none;
}

.input-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border: var(--border-width) solid var(--border-default);
  border-radius: 50%;
  cursor: pointer;
}

.input-wrapper input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border: var(--border-width) solid var(--border-default);
  border-radius: 50%;
  cursor: pointer;
}

.input-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

.calculator-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.result-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.result-item {
  background: var(--bg-card-inner);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-bar);
  padding: var(--space-md);
  text-align: center;
}

.result-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.result-chart {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

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

.chart-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

.chart-bar-container {
  position: relative;
  height: var(--bar-height);
  background: var(--bg-card-inner);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-bar);
  overflow: hidden;
}

.chart-bar-bg {
  position: absolute;
  inset: 0;
}

.chart-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--success));
  border-radius: var(--radius-bar);
  border: var(--border-width) solid var(--border-default);
  transition: width 0.3s ease;
}

.chart-bar-target {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--text-faint);
  opacity: 0.5;
}

.chart-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.roi-highlight {
  background: var(--accent-muted);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-bar);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.roi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Contact Section */
.contact {
  padding: var(--space-3xl) 0;
  background: transparent;
}

.contact-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .section-title {
  margin-bottom: var(--space-md);
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.contact-item {
  text-align: center;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.contact-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Blog Preview Section */
.blog-preview {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.blog-header .section-title {
  text-align: left;
  margin-bottom: 0;
}

.view-all {
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.view-all:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.blog-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card a {
  display: block;
  padding: var(--space-lg);
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.read-more {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0;
  border-top: var(--border-width) solid var(--border-default);
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

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

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

.footer-bottom {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* Blog Page */
.blog-page {
  padding: var(--space-3xl) 0;
}

.blog-page-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.blog-page-header h1 {
  margin-bottom: var(--space-sm);
}

.blog-page-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-list-item {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-md);
  transition: transform 0.2s;
}

.blog-list-item:hover {
  transform: translateY(-2px);
}

.blog-list-item a {
  display: block;
  padding: var(--space-lg);
}

.blog-list-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-sm);
}

.blog-list-meta time {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.blog-category {
  background: var(--accent-muted);
  color: var(--text-primary);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-list-item h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.blog-list-item p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Blog Post */
.blog-post {
  padding: var(--space-3xl) 0;
}

.blog-post-header {
  max-width: 860px;
  margin: 0 auto var(--space-2xl);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text-primary);
}

.back-link::before {
  content: '\2190';
}

.blog-post-meta {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.blog-post-meta time {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.blog-post-description {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.blog-post-image {
  margin-top: var(--space-xl);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border-width) solid var(--border-subtle);
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  max-width: 860px;
  margin: 0 auto;
  background: rgba(38, 28, 18, 0.9);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--space-2xl) var(--space-3xl);
  backdrop-filter: blur(8px);
  font-size: 1.125rem;
  line-height: 1.8;
}

.blog-post-content h2 {
  font-size: 1.875rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.blog-post-content h3 {
  font-size: 1.375rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.blog-post-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.blog-post-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.blog-post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-post-footer {
  max-width: 860px;
  margin: var(--space-2xl) auto;
}

.blog-cta-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  text-align: center;
}

.blog-cta-card h3 {
  margin-bottom: var(--space-sm);
}

.blog-cta-card p {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.related-posts {
  max-width: 860px;
  margin: 0 auto;
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-subtle);
}

.related-posts h3 {
  margin-bottom: var(--space-lg);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.related-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  transition: transform 0.2s;
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.related-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Blog Shortcodes */
.takeaways {
  background: rgba(246, 182, 30, 0.1);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.takeaways-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.takeaways ul {
  margin: 0;
  padding-left: var(--space-md);
}

.takeaways li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.takeaways li strong {
  color: var(--text-primary);
}

.definition {
  background: rgba(26, 20, 14, 0.8);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-bar) var(--radius-bar) 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.definition-term {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
}

.definition p {
  margin: 0;
  color: var(--text-secondary);
}

.faq-item {
  background: rgba(26, 20, 14, 0.6);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin: var(--space-md) 0;
  overflow: hidden;
}

.faq-question {
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  background: rgba(246, 182, 30, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.faq-answer {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
}

.faq-answer p {
  margin: 0;
}

/* AI Chat Interface */
.ai-chat {
  background: rgba(18, 14, 10, 0.95);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin: var(--space-lg) 0;
  overflow: hidden;
}

.ai-chat-user,
.ai-chat-assistant {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}

.ai-chat-user {
  background: rgba(26, 20, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.ai-chat-assistant {
  background: rgba(38, 28, 18, 0.6);
}

.ai-chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ai-chat-avatar-user {
  background: var(--border-subtle);
  color: var(--text-muted);
}

.ai-chat-avatar-ai {
  background: linear-gradient(135deg, var(--accent-primary), #E5A617);
  color: #150D08;
}

.ai-chat-message {
  flex: 1;
  min-width: 0;
}

.ai-chat-user .ai-chat-message {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding-top: 6px;
}

.ai-chat-assistant .ai-chat-message {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ai-chat-assistant .ai-chat-message p {
  margin: 0 0 var(--space-sm) 0;
}

.ai-chat-assistant .ai-chat-message p:last-child {
  margin-bottom: 0;
}

.ai-chat-assistant .ai-chat-message strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Content Calendar Page */
.calendar-page {
  padding: var(--space-3xl) 0;
}

.calendar-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.calendar-header h1 {
  margin-bottom: var(--space-sm);
}

.calendar-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.calendar-wrapper {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.calendar-nav-btn {
  background: var(--bg-card-inner);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-bar);
  padding: var(--space-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.calendar-month {
  font-size: 1.5rem;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

.legend-dot.type-post {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.legend-dot.type-comment {
  background: var(--success);
  border-color: var(--success);
}

.legend-dot.type-engagement {
  background: var(--info);
  border-color: var(--info);
}

.legend-dot.type-research {
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-bar);
  overflow: hidden;
}

.calendar-day-header {
  background: var(--bg-elevated);
  padding: var(--space-sm);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.calendar-day {
  background: var(--bg-card-inner);
  min-height: 100px;
  padding: var(--space-xs);
  position: relative;
  transition: background 0.2s;
}

.calendar-day:hover {
  background: var(--bg-elevated);
}

.calendar-day.other-month {
  opacity: 0.4;
}

.calendar-day.today {
  background: rgba(246, 182, 30, 0.1);
}

.calendar-day.today .day-number {
  background: var(--accent-primary);
  color: var(--bg-root);
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50%;
  margin-bottom: var(--space-xs);
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calendar-event {
  padding: 4px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-event.type-post {
  background: rgba(246, 182, 30, 0.2);
  color: var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
}

.calendar-event.type-comment {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success);
  border-left: 3px solid var(--success);
}

.calendar-event.type-engagement {
  background: rgba(66, 165, 245, 0.2);
  color: var(--info);
  border-left: 3px solid var(--info);
}

.calendar-event.type-research {
  background: rgba(254, 249, 242, 0.1);
  color: var(--text-muted);
  border-left: 3px solid var(--text-muted);
}

.calendar-event-detail {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  display: none;
}

.calendar-event-detail.active {
  display: block;
}

.event-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.event-detail-header h3 {
  font-size: 1.25rem;
}

.event-detail-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color 0.2s;
}

.event-detail-close:hover {
  color: var(--text-primary);
}

.event-detail-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.event-detail-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.event-meta-item {
  background: var(--bg-card-inner);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-bar);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
}

.event-meta-item strong {
  color: var(--text-primary);
}

/* Calendar CTA Section */
.calendar-cta {
  padding: var(--space-3xl) 0;
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
}

.cta-card {
  background: var(--bg-elevated);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.cta-content > p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.cta-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.cta-feature svg {
  color: var(--success);
  flex-shrink: 0;
}

.cta-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: var(--space-xl);
  border-left: 2px solid var(--border-subtle);
}

.cta-stat {
  text-align: center;
}

.cta-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

/* Contact Page */
.contact-page {
  padding: var(--space-3xl) 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.contact-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--success);
  margin-bottom: var(--space-md);
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.contact-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.check-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.check-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-default);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-faint);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card-inner);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-bar);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  padding: var(--space-md);
  background: var(--success);
  color: #fff;
  border: 2px solid var(--success);
  border-radius: var(--radius-bar);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: var(--space-sm);
}

.btn-submit:hover {
  background: #2E7D32;
  border-color: #2E7D32;
  transform: translateY(-2px);
}

.form-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: var(--space-md);
}

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.form-success.active {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(76, 175, 80, 0.15);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--success);
}

.form-success h2 {
  margin-bottom: var(--space-xs);
  color: var(--success);
}

.form-success p {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-checklist {
    align-items: center;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .calendar-day {
    min-height: 80px;
  }

  .calendar-event {
    font-size: 0.5rem;
    padding: 2px 4px;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-stats {
    flex-direction: row;
    justify-content: space-around;
    padding-left: 0;
    padding-top: var(--space-lg);
    border-left: none;
    border-top: 2px solid var(--border-subtle);
  }

  .contact-info h1 {
    font-size: 2rem;
  }

  .hero {
    height: 100vh;
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .stats-grid,
  .services-grid,
  .opportunity-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
  }

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

  .chart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .roi-highlight {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .blog-header {
    flex-direction: column;
    gap: var(--space-md);
  }

  .blog-header .section-title {
    text-align: center;
  }

  .contact-details {
    flex-direction: column;
    gap: var(--space-md);
  }

  .blog-post-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav-links {
    gap: var(--space-md);
  }
}
