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

:root {
  --bg:           #ffffff;
  --bg-alt:       #f5f6fa;
  --surface:      #ffffff;
  --border:       #e2e4ed;
  --text:         #111827;
  --muted:        #6b7280;
  --accent:       #e7005e;
  --accent-hover: #c9004f;
  --navy:         #130f25;
  --navy-alt:     #1a1635;
  --radius:       8px;
  --radius-pill:  999px;
  --max-w:        1200px;
  --shadow:       0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Helvetica, Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 15, 37, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
}

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: #ffffff; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ── Hero (stays dark) ── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1635 0%, #130f25 55%, #1f0a2e 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(231, 0, 94, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(231, 0, 94, 0.1);
  border: 1px solid rgba(231, 0, 94, 0.3);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.accent { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Stats (light) ── */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.8;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(231, 0, 94, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ── Two-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-text .section-text { margin-top: 1rem; }

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.visual-block {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.visual-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.visual-row span { font-size: 0.9rem; color: var(--muted); }
.visual-row strong { font-size: 0.9rem; color: var(--text); margin-left: auto; font-weight: 600; }

/* ── Contact ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  margin-top: 2.5rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231, 0, 94, 0.08);
}

.contact-form textarea { resize: vertical; }

.form-msg {
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-logo {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.footer-logo span { color: var(--accent); }

/* ── Blog Listing ── */
.blog-listing { padding: 4rem 0 6rem; }

.category-section {
  margin-top: 4rem;
}

.category-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.category-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.category-section-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-card-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.4;
}

.post-card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.post-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #adb5bd;
  margin-top: 1rem;
}

/* ── Post Page ── */
.post-page { padding: 3rem 0 6rem; }

.post-header {
  max-width: 760px;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

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

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
  color: var(--text);
}

.post-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.post-body {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #374151;
}

.post-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body strong { color: var(--text); }

.post-body a { color: var(--accent); text-decoration: underline; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}

.post-body code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.45em;
  font-size: 0.88em;
  color: var(--accent);
}

.post-body pre {
  background: var(--navy);
  border-radius: 10px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e4ed;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav { gap: 1.25rem; }
  .hero { min-height: 75vh; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-inner { gap: 2rem; }
  .hero-cta { flex-direction: column; }
  .btn-outline { margin-left: 0; }
}
