/* ═══════════════════════════════════════════════════
   GRAPHITE.SE — SHARED STYLESHEET
   Used by all inner pages, blog posts, and landing pages
═══════════════════════════════════════════════════ */

:root {
  --graphite: #1a1a2e;
  --graphite-mid: #2d3561;
  --graphite-light: #4a5180;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --snow: #f8fafc;
  --stone: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --green: #059669;
  --green-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; color: var(--graphite);
  text-decoration: none; letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 0.875rem; font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 700; }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 0.45rem 1.1rem; border-radius: 6px;
  font-size: 0.875rem; font-weight: 700; text-decoration: none;
}
.nav-cta:hover { background: #1d4ed8 !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  color: white;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  margin-bottom: 1rem; display: flex; gap: 0.5rem;
  justify-content: center; align-items: center;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero .breadcrumb span { opacity: 0.4; }
.page-hero-eyebrow {
  font-size: 0.75rem; font-weight: 700; color: #93c5fd;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: #fde68a; }
.page-hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  max-width: 620px; margin: 0 auto;
}

/* Landing page hero (lighter, with CTA) */
.landing-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 60%, #bfdbfe 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.landing-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; color: var(--graphite); line-height: 1.15;
  margin-bottom: 1.25rem;
}
.landing-hero h1 em { font-style: normal; color: var(--accent); }
.landing-hero p {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 620px; margin: 0 auto 2rem;
}
.landing-hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }
section { padding: 5rem 2rem; }
.section-alt { background: var(--snow); }

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.65rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--graphite); line-height: 1.2;
  margin-bottom: 1rem;
}
h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--graphite); margin-bottom: 0.5rem; }
.section-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 640px; margin-bottom: 2.5rem; line-height: 1.7;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 0.8rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: #1d4ed8; color: white; }
.btn-secondary {
  display: inline-block;
  background: white; color: var(--graphite);
  border: 2px solid var(--stone);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  display: inline-block;
  background: white; color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
}

/* ── CARDS ── */
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.card {
  background: white; border: 1px solid var(--stone);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-body { padding: 1.5rem; }
.card-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.65rem;
}
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-purple { background: #ede9fe; color: #4c1d95; }
.tag-red { background: #fee2e2; color: #991b1b; }

/* ── BLOG POST LIST ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.blog-card {
  background: white; border: 1px solid var(--stone);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.blog-card-img {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.blog-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 0.5rem; display: flex; gap: 0.75rem; align-items: center;
}
.blog-card-meta .dot { color: var(--stone); }
.blog-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--graphite);
  margin-bottom: 0.5rem; line-height: 1.4;
}
.blog-card p { font-size: 0.875rem; color: var(--text-muted); flex: 1; }
.blog-card-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--accent);
  margin-top: 1rem;
}

/* ── BLOG ARTICLE ── */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 3rem;
  max-width: 1100px; margin: 0 auto; padding: 4rem 2rem;
}
.article-body h2 {
  font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem;
}
.article-body h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.article-body p { margin-bottom: 1.25rem; color: var(--text); line-height: 1.8; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem; color: var(--text); line-height: 1.8;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body thead tr { background: var(--graphite); color: white; }
.article-body thead th { padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; }
.article-body tbody td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--stone); font-size: 0.9rem; }
.article-body tbody tr:hover { background: var(--snow); }
.article-callout {
  background: var(--accent-light); border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.article-callout p { margin: 0; color: #1e3a8a; }
.article-key-fact {
  background: var(--snow); border: 1px solid var(--stone);
  border-radius: 10px; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  display: flex; gap: 1rem; align-items: flex-start;
}
.article-key-fact .icon { font-size: 1.5rem; flex-shrink: 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: 84px; height: fit-content; }
.sidebar-box {
  background: var(--snow); border: 1px solid var(--stone);
  border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-box h4 {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.toc-list a {
  font-size: 0.875rem; color: var(--text-muted); text-decoration: none;
  padding: 0.25rem 0; border-left: 2px solid var(--stone);
  padding-left: 0.75rem; display: block; transition: color 0.15s, border-color 0.15s;
}
.toc-list a:hover { color: var(--accent); border-color: var(--accent); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  color: white; border-radius: 12px; padding: 1.5rem;
  text-align: center; margin-bottom: 1.5rem;
}
.sidebar-cta h4 { color: white; font-size: 0.9rem; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.sidebar-related-post {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.65rem 0; border-bottom: 1px solid var(--stone);
  text-decoration: none; color: inherit;
}
.sidebar-related-post:last-child { border-bottom: none; }
.sidebar-related-post .icon { font-size: 1.25rem; flex-shrink: 0; }
.sidebar-related-post span { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
.sidebar-related-post:hover span { color: var(--accent); }

/* Article meta header */
.article-meta {
  display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stone);
}
.article-meta-item { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.article-author {
  background: var(--snow); border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: center;
  margin-top: 3rem; border: 1px solid var(--stone);
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--graphite); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.author-info h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.author-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── SPEC TABLES ── */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th {
  background: var(--graphite); color: white;
  padding: 0.9rem 1.1rem; text-align: left; font-size: 0.85rem;
}
.specs-table td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--stone); font-size: 0.9rem; }
.specs-table tr:hover td { background: var(--snow); }
.specs-table .grade { font-weight: 700; color: var(--graphite); }
.check { color: var(--green); font-weight: 700; }
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: 4px;
  background: var(--graphite); color: white;
}

/* ── LANDING SPECIFIC ── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feature-item { text-align: center; padding: 2rem 1.25rem; }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.feature-item h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.feature-item p { font-size: 0.875rem; color: var(--text-muted); }

.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.proof-stat {
  background: white; border: 1px solid var(--stone); border-radius: 10px;
  padding: 1.5rem; text-align: center;
}
.proof-stat-number { font-size: 2rem; font-weight: 800; color: var(--graphite); display: block; }
.proof-stat-label { font-size: 0.8rem; color: var(--text-muted); }

.benefit-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.benefit-row.reverse { direction: rtl; }
.benefit-row.reverse > * { direction: ltr; }
.benefit-visual {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  color: white; border-radius: 16px; padding: 3rem;
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 0.75rem; }
.cta-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner .btn-primary { background: #fde68a; color: var(--graphite); }
.cta-banner .btn-primary:hover { background: #fbbf24; color: var(--graphite); }

/* ── FOOTER ── */
footer {
  background: var(--graphite); color: rgba(255,255,255,0.65);
  padding: 3rem 2rem;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand { color: white; font-size: 1.2rem; font-weight: 800; margin-bottom: 0.65rem; }
.footer-brand span { color: #fde68a; }
.footer-desc { font-size: 0.85rem; line-height: 1.6; margin-bottom: 0.75rem; }
footer h4 {
  color: white; font-size: 0.78rem; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
footer ul a:hover { color: white; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem;
}

/* ── UTILITY ── */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--green-light); color: var(--green);
  font-size: 0.78rem; font-weight: 700; padding: 0.28rem 0.7rem;
  border-radius: 20px; margin-bottom: 0.75rem;
}
.pill::before { content: "●"; font-size: 0.55rem; }
.pill.blue { background: var(--accent-light); color: var(--accent); }
.pill.blue::before { color: var(--accent); }

.highlight-box {
  background: var(--accent-light); border: 1px solid #93c5fd;
  border-radius: 12px; padding: 1.5rem 2rem;
}
.highlight-box h3 { color: #1e3a8a; margin-bottom: 0.4rem; }
.highlight-box p { color: #1e40af; margin: 0; font-size: 0.95rem; }

.security-banner {
  background: linear-gradient(135deg, var(--graphite) 0%, var(--graphite-mid) 100%);
  color: white; border-radius: 16px; padding: 2.5rem 2rem;
  display: flex; align-items: flex-start; gap: 1.5rem;
}
.security-icon { font-size: 2.5rem; flex-shrink: 0; }
.security-banner h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.security-banner p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.security-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.security-point { display: flex; gap: 0.45rem; font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.security-point::before { content: "✓"; color: #4ade80; font-weight: 700; flex-shrink: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .card-grid-3, .blog-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .benefit-row { grid-template-columns: 1fr; }
  .benefit-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .card-grid-3, .card-grid-2, .blog-grid, .feature-grid,
  .proof-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 3rem 1.25rem; }
  .cta-banner { padding: 2rem 1.5rem; }
  .security-banner { flex-direction: column; }
  .security-points { grid-template-columns: 1fr; }
}
