/* implansense.css — Implansense site stylesheet */
/* Inlines all component CSS used: base, nav, hero, stats, features, process, team, testimonials, cta, contact, footer, cookie-banner */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --accent: #2563eb;
  --accent-rgb: 37,99,235;
  --secondary: #7c3aed;
  --bg-dark: #0f172a;
  --bg-alt: #1e293b;
  --bg-surface: #1a2332;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-display: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.page-sub { padding-top: 64px; }

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.9; }

img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

.section-dark { background: var(--bg-dark); }
.section-alt { background: var(--bg-alt); }
.section-surface { background: var(--bg-surface); }

/* Self-contained container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV COMPONENT (nav/A-simple + nav/nav.css)
   ============================================================ */
.c-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.c-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.c-nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800;
  text-decoration: none;
  color: inherit;
}
.c-nav__logo-img { height: 28px; width: auto; display: none; }

.c-nav__links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.c-nav__links a {
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s;
}
.c-nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-weight: 600;
}
.c-nav__cta:hover { opacity: 0.9; color: #fff !important; }

.c-nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.c-nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; transition: 0.3s; }

/* Nav theme: DARK */
.c-nav[data-nav-theme="dark"] { background: transparent; }
.c-nav[data-nav-theme="dark"].scrolled,
.c-nav[data-nav-theme="dark"].c-nav--solid {
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.c-nav[data-nav-theme="dark"] .c-nav__logo,
.c-nav[data-nav-theme="dark"] .c-nav__logo-fallback { color: #f1f5f9; }
.c-nav[data-nav-theme="dark"] .c-nav__logo-img--light { display: none; }
.c-nav[data-nav-theme="dark"] .c-nav__logo-img--dark  { display: inline; }
.c-nav[data-nav-theme="dark"] .c-nav__links a { color: #94a3b8; }
.c-nav[data-nav-theme="dark"] .c-nav__links a:hover,
.c-nav[data-nav-theme="dark"] .c-nav__links a.active { color: #f1f5f9; }
.c-nav[data-nav-theme="dark"] .c-nav__toggle span { background: #f1f5f9; }

/* Nav theme: LIGHT */
.c-nav[data-nav-theme="light"] {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.c-nav[data-nav-theme="light"] .c-nav__logo,
.c-nav[data-nav-theme="light"] .c-nav__logo-fallback { color: #0f172a; }
.c-nav[data-nav-theme="light"] .c-nav__logo-img--light { display: inline; }
.c-nav[data-nav-theme="light"] .c-nav__logo-img--dark  { display: none; }
.c-nav[data-nav-theme="light"] .c-nav__links a { color: #334155; }
.c-nav[data-nav-theme="light"] .c-nav__links a:hover,
.c-nav[data-nav-theme="light"] .c-nav__links a.active { color: #0f172a; }
.c-nav[data-nav-theme="light"] .c-nav__toggle span { background: #0f172a; }

.c-nav__logo-img ~ .c-nav__logo-fallback,
.c-nav__logo:has(.c-nav__logo-img) .c-nav__logo-fallback { display: none !important; }

@media (max-width: 768px) {
  .c-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #0f172a;
    padding: 16px;
    border-top: 1px solid #1e293b;
  }
  .c-nav[data-nav-theme="light"] .c-nav__links {
    background: #ffffff;
    border-top-color: rgba(15,23,42,0.08);
  }
  .c-nav[data-nav-theme="light"] .c-nav__links a { color: #0f172a; }
  .c-nav__links.open { display: flex; }
  .c-nav__toggle { display: block; }
}

/* ============================================================
   HERO COMPONENT (hero/D-full-bleed + hero/hero.css)
   ============================================================ */
.c-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  color: #f1f5f9;
}

.c-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.7) 100%);
  z-index: 1;
}

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

.c-hero__wrap {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}
.c-hero__col { min-width: 0; }
.c-hero__col--8 { max-width: 66.666%; }
.c-hero__col--center {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .c-hero__col--8,
  .c-hero__col--center { max-width: 100%; }
}

.c-hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.c-hero__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 720px;
}

.c-hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 600px;
}

.c-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.c-hero--full-bleed { min-height: 92vh; padding: 0; }
.c-hero--full-bleed .c-hero__bg { position: absolute; inset: 0; z-index: 0; }
.c-hero--full-bleed .c-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-hero__overlay--gradient {
  background: linear-gradient(90deg, rgba(10,14,23,0.82) 0%, rgba(10,14,23,0.55) 55%, rgba(10,14,23,0.1) 100%);
}

@media (max-width: 768px) {
  .c-hero--full-bleed { min-height: 78vh; }
  .c-hero__overlay--gradient {
    background: linear-gradient(180deg, rgba(10,14,23,0.45) 0%, rgba(10,14,23,0.85) 100%);
  }
  .c-hero { min-height: 70vh; padding: 80px 0 60px; }
  .c-hero__title { font-size: 32px; }
  .c-hero__subtitle { font-size: 16px; }
}

/* Buttons */
.c-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.c-btn--primary {
  background: var(--accent);
  color: #ffffff;
}
.c-btn--primary:hover { opacity: 0.9; color: #ffffff; }
.c-btn--outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(226,232,240,0.3);
}
.c-btn--outline:hover { border-color: #e2e8f0; color: #ffffff; }
.c-btn--sm { padding: 8px 16px; font-size: 14px; }

/* ============================================================
   PAGE HERO (sub-pages small header)
   ============================================================ */
.c-page-hero {
  background: var(--bg-alt);
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}
.c-page-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.c-page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.c-page-hero__title {
  font-size: 36px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.c-page-hero__lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.c-section-header { text-align: center; margin-bottom: 56px; }
.c-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.c-section-title {
  font-size: 36px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 16px;
}
.c-section-desc {
  font-size: 17px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   STATS COMPONENT (stats/B-cards + stats/stats.css)
   ============================================================ */
.c-stats { padding: 48px 0; }
.c-stats--cards { background: #0f172a; padding: 64px 0; }

.c-stats__wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.c-stats__grid {
  display: grid;
  gap: 32px;
  text-align: center;
}
.c-stats__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.c-stats__card {
  background: #1e293b;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  height: 100%;
}

.c-stats__number {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.c-stats__label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-top: 8px;
  line-height: 1.4;
}
.c-stats__desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .c-stats__grid--4 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .c-stats__number { font-size: 28px; }
}

/* ============================================================
   FEATURES COMPONENT (features/A-grid-6 + features/features.css)
   ============================================================ */
.c-features { padding: 80px 0; }

.c-features__grid--6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.c-features__card {
  background: #1e293b;
  border-radius: 12px;
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.c-features__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.c-features__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235, 0.12);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--accent);
}

.c-features__name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.c-features__text {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .c-features__grid--6 { grid-template-columns: 1fr; }
  .c-section-title { font-size: 28px; }
}

/* ============================================================
   PROCESS COMPONENT (process/A-numbered + process/process.css)
   ============================================================ */
.c-process { padding: 80px 0; background: var(--bg-alt); }

.c-process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.c-process__step {
  position: relative;
  padding: 32px 24px;
  background: #1e293b;
  border-radius: 12px;
}

.c-process__num {
  display: inline-block;
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.c-process__name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}

.c-process__text {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
}

@media (max-width: 992px) {
  .c-process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .c-process__steps { grid-template-columns: 1fr; }
}

/* ============================================================
   TEAM COMPONENT (team/A-grid + team/team.css)
   ============================================================ */
.c-team { padding: 80px 0; }
.c-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}
.c-team__card { text-align: center; }
.c-team__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin-bottom: 16px;
  border: 3px solid #1e293b;
}
.c-team__name { font-size: 17px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.c-team__role { font-size: 14px; color: #64748b; }

/* ============================================================
   TESTIMONIALS COMPONENT (testimonials/B-stats + testimonials/testimonials.css)
   ============================================================ */
.c-testimonials { padding: 80px 0; }
.c-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.c-testimonials__card {
  background: #1e293b;
  border-radius: 12px;
  padding: 36px 28px;
}
.c-testimonials__stat {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}
.c-testimonials__source {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.c-testimonials__text { font-size: 14px; color: #94a3b8; line-height: 1.7; }

@media (max-width: 768px) {
  .c-testimonials__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA COMPONENT (cta/A-banner + cta/cta.css)
   ============================================================ */
.c-cta { background: var(--accent); padding: 64px 0; text-align: center; }
.c-cta__title { font-size: 32px; font-weight: 800; color: #ffffff; margin-bottom: 16px; }
.c-cta__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.c-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.c-cta .c-btn--primary { background: #ffffff; color: var(--accent); }
.c-cta .c-btn--primary:hover { opacity: 0.9; }
.c-cta .c-btn--outline { border-color: rgba(255,255,255,0.4); color: #ffffff; }
.c-cta .c-btn--outline:hover { border-color: #ffffff; }

/* ============================================================
   CONTACT COMPONENT (contact/A-split + contact/contact.css)
   ============================================================ */
.c-contact { padding: 80px 0; }
.c-contact__wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-contact__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) {
  .c-contact__grid { grid-template-columns: 7fr 4fr; gap: 72px; }
}
.c-contact__form-col { min-width: 0; }
.c-contact__info-col { min-width: 0; }
.c-contact__row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) {
  .c-contact__row-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.c-contact__title { font-size: 28px; font-weight: 800; color: #f1f5f9; margin-bottom: 32px; }
.c-contact__form input,
.c-contact__form select,
.c-contact__form textarea {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.c-contact__form input:focus,
.c-contact__form select:focus,
.c-contact__form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.c-contact__form select option { background: #1e293b; }
.c-contact__form button { cursor: pointer; }
.c-contact__info-title { font-size: 20px; font-weight: 700; color: #f1f5f9; margin-bottom: 24px; }
.c-contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #94a3b8;
}
.c-contact__info-item i { color: var(--accent); font-size: 16px; margin-top: 3px; min-width: 20px; }
.c-contact__info-item a { color: #94a3b8; text-decoration: none; }
.c-contact__info-item a:hover { color: var(--accent); }

/* ============================================================
   FOOTER COMPONENT (footer/A-4col + footer/footer.css)
   ============================================================ */
.c-footer {
  background: #0f172a;
  padding: 64px 0 0;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
}
.c-footer .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}
.c-footer__logo-img {
  height: 28px;
  width: auto;
  display: inline-block;
  margin-bottom: 12px;
}
.c-footer__tagline { font-size: 14px; color: #64748b; line-height: 1.6; }
.c-footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.c-footer__col ul { list-style: none; padding: 0; margin: 0; }
.c-footer__col ul li { margin-bottom: 10px; color: #94a3b8; font-size: 14px; }
.c-footer__col ul li a { color: #94a3b8; font-size: 14px; text-decoration: none; transition: color 0.2s; }
.c-footer__col ul li a:hover { color: var(--accent); }
.c-footer__contact p { font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.c-footer__contact i { color: var(--accent); width: 18px; font-size: 13px; margin-right: 8px; }
.c-footer__bottom {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #475569;
}
.c-footer__legal { display: flex; gap: 20px; }
.c-footer__legal a { color: #64748b; text-decoration: none; font-size: 13px; }
.c-footer__legal a:hover { color: #94a3b8; }

@media (max-width: 768px) {
  .c-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .c-footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   COOKIE BANNER COMPONENT (cookie-banner/A-generic + cookie-banner.css)
   ============================================================ */
.c-cookie {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 720px;
  margin-left: auto;
  z-index: 1080;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 20px 50px rgba(15,23,42,0.18);
  border-radius: 12px;
  padding: 14px 18px;
}
.c-cookie[hidden] { display: none !important; }
.c-cookie__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.c-cookie__text {
  flex: 1 1 320px;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #374151;
}
.c-cookie__text a { color: var(--accent); }
.c-cookie__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 576px) {
  .c-cookie { inset: auto 8px 8px 8px; }
  .c-cookie__actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   ABOUT PAGE — STORY SECTION
   ============================================================ */
.c-about { padding: 80px 0; }
.c-about__wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.c-about__story h2 {
  font-size: 32px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 24px;
}
.c-about__story p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 20px;
}
.c-about__mission {
  background: #1e293b;
  border-radius: 12px;
  padding: 36px 32px;
  border-left: 4px solid var(--accent);
}
.c-about__mission-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.c-about__mission-text {
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
  margin-bottom: 32px;
}
.c-about__values { list-style: none; padding: 0; margin: 0; }
.c-about__values li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #94a3b8;
  padding: 8px 0;
  border-bottom: 1px solid #334155;
}
.c-about__values li:last-child { border-bottom: none; }
.c-about__values li i { color: var(--accent); font-size: 14px; }
@media (max-width: 768px) {
  .c-about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   PRODUCT PAGE — INTEGRATIONS SECTION
   ============================================================ */
.c-integrations { padding: 80px 0; background: var(--bg-alt); }
.c-integrations__wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-integrations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.c-integrations__item {
  background: #0f172a;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  border: 1px solid #334155;
}
.c-integrations__item i { color: var(--accent); font-size: 18px; }

/* ============================================================
   404 PAGE
   ============================================================ */
.c-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-dark);
}
.c-404__inner { max-width: 560px; }
.c-404__code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 16px;
}
.c-404__title {
  font-size: 32px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 16px;
}
.c-404__text {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.c-legal { padding: 80px 0; }
.c-legal__wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.c-legal__wrap h1 { font-size: 32px; font-weight: 800; color: #f1f5f9; margin-bottom: 8px; }
.c-legal__date { font-size: 14px; color: #64748b; margin-bottom: 40px; }
.c-legal__wrap h2 { font-size: 22px; font-weight: 700; color: #f1f5f9; margin: 32px 0 12px; }
.c-legal__wrap p { font-size: 15px; color: #94a3b8; line-height: 1.8; margin-bottom: 16px; }
.c-legal__wrap ul { color: #94a3b8; font-size: 15px; line-height: 1.8; padding-left: 24px; margin-bottom: 16px; }
.c-legal__wrap a { color: var(--accent); }

/* ============================================================
   BLOG GRID COMPONENT (blog-grid/A-cards + blog-grid.css)
   ============================================================ */
.c-blog-grid { padding: clamp(56px, 8vw, 96px) 0; background: #f8fafc; }
.c-blog-grid .c-section-header { margin-bottom: clamp(32px, 4vw, 48px); }
.c-blog-grid .c-section-title { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; margin: 0; color: #0f172a; }
.c-blog-grid .c-section-lede { font-size: 17px; color: #64748b; margin: 12px 0 0; line-height: 1.55; }

.c-blog-grid__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.c-blog-grid__card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.c-blog-grid__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.c-blog-grid__thumb { width: 100%; height: 200px; object-fit: cover; display: block; }
.c-blog-grid__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.c-blog-grid__date { font-size: 12px; color: #94a3b8; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.c-blog-grid__title { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 10px; line-height: 1.4; }
.c-blog-grid__title a { color: inherit; text-decoration: none; }
.c-blog-grid__title a:hover { color: var(--accent); }
.c-blog-grid__excerpt { font-size: 14px; color: #64748b; line-height: 1.6; flex-grow: 1; margin: 0; }
@media (max-width: 768px) { .c-blog-grid__list { grid-template-columns: 1fr; } }

/* Blog article reading width (mandatory) */
.c-post__body,
.c-article__container,
article.c-article .c-post__body {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
}
.c-post__body h1 { font-size: 32px; font-weight: 800; color: #0f172a; line-height: 1.3; margin-bottom: 12px; }
.c-post__body h2 { font-size: 24px; font-weight: 700; color: #1e293b; margin-top: 40px; margin-bottom: 16px; }
.c-post__body h3 { font-size: 20px; font-weight: 700; color: #1e293b; margin-top: 28px; margin-bottom: 12px; }
.c-post__body p { margin-bottom: 20px; }
.c-post__body ul, .c-post__body ol { padding-left: 24px; margin-bottom: 18px; }
.c-post__body li { margin-bottom: 8px; line-height: 1.7; }
.c-post__body img { width: 100%; border-radius: 12px; margin: 24px 0 32px; }
.c-post__body a { color: var(--accent); text-decoration: underline; }

/* Blog article page wrapper */
.c-blog-post { padding: 60px 0 80px; background: #ffffff; color: #334155; }
.c-blog-post__header { max-width: 780px; margin: 0 auto 40px; padding: 0 24px; }
.c-blog-post__cover { width: 100%; max-width: 900px; margin: 0 auto 48px; padding: 0 24px; }
.c-blog-post__cover img { width: 100%; border-radius: 12px; }
.c-blog-post__inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.c-blog-post__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.c-blog-post__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #0f172a; line-height: 1.2; margin-bottom: 16px; }
.c-blog-post__meta { font-size: 14px; color: #94a3b8; margin-bottom: 32px; }

/* ============================================================
   BLOG INDEX PAGE HERO
   ============================================================ */
.c-blog-index-hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  text-align: center;
}
.c-blog-index-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #ffffff;
}
.c-blog-index-hero p {
  font-size: 18px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BLOG GRID INDEX PAGE LAYOUT
   ============================================================ */
.c-blog-index { padding: 64px 0 96px; background: #f8fafc; }
.c-blog-index .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-blog-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.c-blog-index__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.c-blog-index__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.c-blog-index__thumb { width: 100%; height: 200px; object-fit: cover; display: block; }
.c-blog-index__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.c-blog-index__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.c-blog-index__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border-radius: 4px;
  padding: 2px 8px;
}
.c-blog-index__date { font-size: 12px; color: #94a3b8; }
.c-blog-index__title { font-size: 17px; font-weight: 700; color: #1e293b; line-height: 1.4; margin: 0 0 10px; }
.c-blog-index__title a { color: inherit; text-decoration: none; }
.c-blog-index__title a:hover { color: #2563eb; }
.c-blog-index__author { font-size: 13px; color: #64748b; margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.c-blog-index__read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}
.c-blog-index__read-more:hover { text-decoration: underline; }
@media (max-width: 900px) { .c-blog-index__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .c-blog-index__grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG ARTICLE HERO
   ============================================================ */
.c-blog-article-hero {
  padding: 100px 0 48px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
}
.c-blog-article-hero__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.c-blog-article-hero__cat {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.c-blog-article-hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #ffffff;
}
.c-blog-article-hero__meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #94a3b8;
}
.c-blog-article-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   BLOG ARTICLE NAV (prev/next)
   ============================================================ */
.c-article-nav {
  max-width: 780px;
  margin: 40px auto 0;
  padding: 28px 24px 0;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.c-article-nav__prev,
.c-article-nav__next {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-article-nav__prev:hover,
.c-article-nav__next:hover { text-decoration: underline; }
.c-article-nav__next { margin-left: auto; }

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.c-related { padding: 64px 0; background: #f8fafc; }
.c-related__inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.c-related h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 28px;
}
.c-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.c-related__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.c-related__card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.c-related__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.c-related__card-body { padding: 12px 16px 16px; }
.c-related__card-body h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  color: #1e293b;
}
.c-related__card-body h3 a { color: inherit; text-decoration: none; }
.c-related__card-body h3 a:hover { color: #2563eb; }
.c-related__card-body .c-related__date { font-size: 12px; color: #94a3b8; }
@media (max-width: 768px) { .c-related__grid { grid-template-columns: 1fr; } }
