/* DigitalFront Ghost Theme — screen.css */

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

:root {
  --bg: #0a0a0f;
  --bg-1: #111118;
  --bg-2: #18181f;
  --bg-3: #1e1e28;
  --border: #2a2a38;
  --border-2: #353545;
  --text: #e8e8f0;
  --text-2: #a0a0b8;
  --text-3: #6a6a88;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1160px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { color: var(--text-2); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white { background: #fff; color: #0a0a0f; }
.btn-white:hover { background: #f0f0ff; transform: translateY(-1px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-arrow::after { content: "→"; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a { color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── Section Shared ── */
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header { margin-bottom: 56px; }
.section-title { color: var(--text); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; max-width: 540px; color: var(--text-2); }

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-title {
  margin-bottom: 20px;
  color: var(--text);
}
.hero-title span {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  overflow: hidden;
  display: inline-flex;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 32px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* ── Services ── */
.services {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--bg-1);
  padding: 28px 24px;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { background: var(--bg-2); }
.service-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-2);
}
.service-name { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.service-desc { font-size: 0.84rem; color: var(--text-3); line-height: 1.5; flex: 1; margin-bottom: 16px; }
.service-price { font-size: 0.85rem; color: var(--text-2); margin-bottom: 12px; }
.service-price strong { color: var(--text); }
.service-link { font-size: 0.82rem; color: var(--accent); font-weight: 600; transition: color 0.15s; }
.service-link:hover { color: var(--accent-hover); }

/* ── Features ── */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-item {
  background: var(--bg-1);
  padding: 32px 28px;
  display: flex;
  gap: 20px;
  transition: background 0.2s;
}
.feature-item:hover { background: var(--bg-2); }
.feature-icon-wrap {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-radius: 8px;
  margin-top: 2px;
}
.feature-content h3 { color: var(--text); margin-bottom: 8px; }
.feature-content p { font-size: 0.88rem; line-height: 1.6; color: var(--text-3); }

/* ── How It Works ── */
.how-it-works {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px; left: calc(33.33% - 16px); right: calc(33.33% - 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
}
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.step-desc { font-size: 0.88rem; color: var(--text-3); line-height: 1.6; }

/* ── Tech Stack ── */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.tech-badge:hover { border-color: var(--border-2); color: var(--text); }
.tech-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a40 0%, #0e0e20 100%);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { font-size: 1.05rem; color: rgba(255,255,255,0.7); margin-bottom: 36px; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-3); margin-top: 16px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-3); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-3); }

/* ── Blog / Index ── */
.blog-header { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.blog-title { color: var(--text); margin-bottom: 12px; }
.blog-sub { font-size: 1rem; color: var(--text-2); }

.post-feed { padding: 48px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.post-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 10px; }
.post-card-excerpt { font-size: 0.84rem; color: var(--text-3); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.post-card-meta { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-3); }
.post-card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ── Single Post ── */
.post-header { padding: 64px 0 48px; }
.post-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
.post-title { color: var(--text); margin-bottom: 20px; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--text-3); flex-wrap: wrap; }
.post-meta-author { color: var(--text-2); font-weight: 600; }
.post-meta-sep { color: var(--border-2); }
.post-featured-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 56px; }

.post-content { max-width: 720px; margin: 0 auto; padding: 0 0 80px; }
.post-content p { font-size: 1.05rem; line-height: 1.8; color: var(--text-2); margin-bottom: 24px; }
.post-content h2 { font-size: 1.6rem; color: var(--text); margin: 40px 0 16px; }
.post-content h3 { font-size: 1.2rem; color: var(--text); margin: 32px 0 12px; }
.post-content ul, .post-content ol { margin: 0 0 24px 24px; }
.post-content li { font-size: 1.05rem; line-height: 1.8; color: var(--text-2); margin-bottom: 6px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--accent-hover); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-2);
}
.post-content code {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  color: #a78bfa;
}
.post-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.post-content pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 0.9rem; }
.post-content img { border-radius: var(--radius); margin: 32px 0; }

/* ── Pricing ── */
.pricing-hero { padding: 80px 0 64px; text-align: center; }
.pricing-hero .section-sub { margin: 0 auto; }
.pricing-grid {
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pricing-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, var(--bg-1) 100%);
  position: relative;
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -1px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
}
.pricing-icon { font-size: 2rem; margin-bottom: 16px; }
.pricing-app { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.pricing-tagline { font-size: 0.84rem; color: var(--text-3); margin-bottom: 24px; line-height: 1.5; }
.pricing-price { margin-bottom: 24px; }
.pricing-amount { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-period { font-size: 0.85rem; color: var(--text-3); }
.pricing-features { margin-bottom: 28px; flex: 1; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-feature:first-child { border-top: 1px solid var(--border); }
.pricing-check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-cta { width: 100%; justify-content: center; }

/* ── Features Page ── */
.features-hero { padding: 80px 0 64px; }
.features-deep {
  padding: 0 0 80px;
  display: grid;
  gap: 80px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.feature-row-title { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 16px; line-height: 1.2; }
.feature-row-desc { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.feature-row-list { display: flex; flex-direction: column; gap: 10px; }
.feature-row-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); }
.feature-row-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.feature-visual {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.84rem;
}
.feature-visual-label { color: var(--text-3); }
.feature-visual-value { color: var(--green); font-weight: 600; }
.feature-visual-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ── Error / 404 ── */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; opacity: 0.4; }
.error-title { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.error-desc { font-size: 1rem; color: var(--text-3); margin-bottom: 32px; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 48px 0 80px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all 0.15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

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

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

@media (max-width: 680px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-1); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 200; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .hero { padding: 64px 0 56px; }
  .hero-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; justify-content: space-between; padding: 16px 24px; }
  .stat:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-header { margin-bottom: 36px; }
}

/* ── Koenig editor image width classes (required by Ghost) ── */
.kg-width-wide { margin-left: calc(50% - 50vw + 16px); margin-right: calc(50% - 50vw + 16px); width: auto; }
.kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
