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

:root {
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --muted:       #64748b;
  --accent:      #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light:#eff6ff;
  --header-bg:   #0f172a;
  --footer-bg:   #0f172a;
  --green:       #059669;
  --purple:      #7c3aed;
  --orange:      #ea580c;
  --teal:        #0891b2;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Typography ────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }
p + p { margin-top: .85rem; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Navigation ────────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.72); font-size: .875rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 6px; transition: all .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: .45rem 1rem !important; border-radius: 6px !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; margin: 4px 0; transition: .3s;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.3);
  color: #93c5fd; font-size: .75rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 100px; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: #60a5fa; }
.hero p { color: rgba(255,255,255,.65); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-art {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.hero-stat {
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  padding: 1.25rem; text-align: center;
}
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: .25rem; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all .18s; line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline-dark:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block; color: var(--accent); font-size: .78rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-header h2 { color: var(--text); margin-bottom: .75rem; }
.section-header p { max-width: 520px; margin: 0 auto; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }

/* ── Grid Layouts ──────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

/* ── Tags / Badges ─────────────────────────────────────────── */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .2rem .65rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .04em;
}
.tag-blue   { background: #dbeafe; color: #1d4ed8; }
.tag-purple { background: #ede9fe; color: #6d28d9; }
.tag-green  { background: #d1fae5; color: #065f46; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-teal   { background: #cffafe; color: #0e7490; }
.tag-gray   { background: #f1f5f9; color: #475569; }

/* ── Post Cards ────────────────────────────────────────────── */
.post-card .card-body { display: flex; flex-direction: column; height: 100%; }
.post-card .post-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .78rem; color: var(--muted); margin-bottom: .85rem;
}
.post-card h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .6rem; color: var(--text); }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: .9rem; flex: 1; }
.post-card .read-more { margin-top: 1rem; font-size: .85rem; font-weight: 600; color: var(--accent); }
.post-card .read-more:hover { gap: .5rem; }

/* ── Product Cards ─────────────────────────────────────────── */
.product-card .card-body { padding: 1.75rem; }
.product-card .product-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 1.1rem;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.product-card .price { font-size: 1.25rem; font-weight: 800; color: var(--text); margin: .85rem 0; }
.product-card .price .original { font-size: .85rem; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-left: .4rem; }
.product-card .free-badge { color: var(--green); font-weight: 700; }
.product-card ul { list-style: none; margin: .75rem 0 1.25rem; }
.product-card ul li { font-size: .875rem; color: var(--muted); padding: .2rem 0; padding-left: 1.2rem; position: relative; }
.product-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ── Article Body ──────────────────────────────────────────── */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { color: var(--text); margin: 2rem 0 .75rem; }
.article-body h3 { color: var(--text); margin: 1.5rem 0 .5rem; }
.article-body p  { color: #374151; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { color: #374151; margin-bottom: .35rem; }
.article-body code {
  background: #f1f5f9; color: #0f172a; font-size: .85em;
  padding: .15em .4em; border-radius: 4px; font-family: 'Fira Code', 'Cascadia Code', monospace;
}
.article-body pre {
  background: #0f172a; color: #e2e8f0; padding: 1.25rem;
  border-radius: var(--radius); overflow-x: auto; margin: 1.25rem 0;
  font-size: .85rem; line-height: 1.7;
}
.article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: .75rem 1.25rem;
  background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0; font-style: italic; color: #1e40af;
}
.article-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }

/* ── Services ──────────────────────────────────────────────── */
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all .2s;
}
.service-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.service-icon {
  width: 48px; height: 48px; background: var(--accent-light);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: .5rem; }

/* ── CTA Strip ─────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  padding: 4rem 0; text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: .75rem; }
.cta-strip p  { color: rgba(255,255,255,.7); max-width: 480px; margin: 0 auto 2rem; }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-inner { display: flex; justify-content: space-around; padding: 2rem 0; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-item .lbl { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted); padding: 1rem 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--muted);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .875rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.5); font-size: .875rem; transition: color .15s; }
.footer-col ul a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; font-size: .8rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.highlight-bg { background: var(--bg); }
.surface-bg { background: var(--surface); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
}

/* ── Article content brought over from the old site ───────── */
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.article-body figure { margin: 1.5rem 0; text-align: center; }
.article-body h4, .article-body h5, .article-body h6 { color: var(--text); margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.article-body a:not(.btn) { color: var(--accent); text-decoration: underline; }
.article-body pre { overflow-x: auto; white-space: pre; max-width: 100%; }
.article-body pre.prettyprint { border: 0 !important; }
.article-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.article-body .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article-body .video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.article-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.article-body .embed { margin: 1.5rem 0; overflow-x: auto; }
.article-body .embed iframe { max-width: 100%; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; display: block; overflow-x: auto; }
.article-body td, .article-body th { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.legal-body h2, .legal-body h3, .legal-body h4, .legal-body h5, .legal-body h6 { font-size: 1.1rem; }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--border); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Cookie bar ───────────────────────────────────────────── */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; max-width: 760px; margin: 0 auto;
  background: var(--header-bg); color: #e2e8f0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: .875rem; color: #cbd5e1; flex: 1 1 280px; }
.cookie-bar a { color: #93c5fd; text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; }

/* ── Phone fixes ──────────────────────────────────────────── */
.article-body { min-width: 0; }
.article-body pre { display: block; box-sizing: border-box; width: 100%; }
.article-body p, .article-body li, .article-body h1, .article-body h2, .article-body h3 { overflow-wrap: anywhere; }
@media (max-width: 768px) {
  main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}
.container.section, .container.section-sm { padding-left: 1.5rem; padding-right: 1.5rem; }
.card-body > .tag { align-self: flex-start; }
