/* =============================================
   NETREX — Inner Pages Stylesheet
   ============================================= */

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: calc(var(--header-h) + 14px) 0 14px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  position: relative;
  z-index: 1;
}
.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb__list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.breadcrumb__list li:not(:last-child)::after { content: '/'; color: var(--c-border); }
.breadcrumb__list a { color: var(--c-muted); text-decoration: none; transition: color .2s; }
.breadcrumb__list a:hover { color: #a5b4fc; }
.breadcrumb__list li:last-child { color: var(--c-text); }

/* ---- Page Hero ---- */
.page-hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black, transparent);
}
.page-hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.18), transparent);
  top: -200px;
  right: -100px;
  border-radius: 50%;
  filter: blur(80px);
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(99,102,241,.12);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.page-hero__desc {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 32px;
}
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}
.hero-meta__item { display: flex; flex-direction: column; }
.hero-meta__val { font-size: 22px; font-weight: 900; color: #fff; }
.hero-meta__label { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

/* ---- Content Layout ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 100px; }

/* ---- Prose ---- */
.prose h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; margin: 48px 0 16px; line-height: 1.2; }
.prose h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 32px 0 12px; }
.prose p { font-size: 16px; color: var(--c-muted); line-height: 1.8; margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 20px; }
.prose li { font-size: 15px; color: var(--c-muted); line-height: 1.7; margin-bottom: 8px; }
.prose strong { color: var(--c-text); font-weight: 600; }
.prose a { color: #a5b4fc; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }

/* ---- Highlight Box ---- */
.highlight-box {
  padding: 24px 28px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius-md);
  margin: 28px 0;
}
.highlight-box p { margin: 0; color: var(--c-text); }

/* ---- Feature List ---- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.feature-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  align-items: flex-start;
  transition: border-color .2s;
}
.feature-item:hover { border-color: rgba(99,102,241,.35); }
.feature-item__icon {
  width: 38px;
  height: 38px;
  background: rgba(99,102,241,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  flex-shrink: 0;
}
.feature-item__title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.feature-item__desc { font-size: 13px; color: var(--c-muted); line-height: 1.55; }

/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--c-text);
  padding: 12px 16px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.checklist li::before {
  content: '✓';
  min-width: 20px;
  height: 20px;
  background: rgba(16,185,129,.15);
  color: var(--c-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Process Steps ---- */
.steps-list { display: flex; flex-direction: column; gap: 0; margin: 28px 0; }
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-item__num {
  width: 40px;
  height: 40px;
  background: var(--grad-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.step-item__title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.step-item__desc { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* ---- Sidebar Widgets ---- */
.sidebar-widget {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-widget__title { font-size: 14px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.sidebar-cta {
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.08));
  border-color: rgba(99,102,241,.25);
  text-align: center;
}
.sidebar-cta__title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.sidebar-cta__desc { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-bottom: 20px; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.sidebar-links a:hover { color: #a5b4fc; background: rgba(99,102,241,.06); }
.sidebar-links a::before { content: '→'; color: var(--c-accent); font-size: 12px; }

/* ---- Stat Cards Row ---- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.stat-card {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.stat-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }
.stat-card__val {
  font-size: 30px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__label { font-size: 13px; color: var(--c-muted); }

/* ---- FAQ ---- */
.faq { margin: 40px 0; }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item.open { border-color: rgba(99,102,241,.3); }
.faq__question {
  width: 100%;
  background: var(--c-surface);
  border: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq__question span { font-size: 15px; font-weight: 600; color: #fff; }
.faq__icon {
  width: 24px;
  height: 24px;
  background: rgba(99,102,241,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  font-size: 16px;
  font-weight: 300;
}
.faq__item.open .faq__icon { transform: rotate(45deg); background: rgba(99,102,241,.2); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq__item.open .faq__answer { max-height: 400px; }
.faq__answer p { padding: 0 22px 18px; font-size: 14px; color: var(--c-muted); line-height: 1.7; margin: 0; }

/* ---- Comparison Table ---- */
.comparison-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.comparison-table th {
  background: rgba(99,102,241,.1);
  color: #a5b4fc;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: .04em;
  border: 1px solid var(--c-border);
}
.comparison-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  vertical-align: top;
  line-height: 1.55;
}
.comparison-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.comparison-table .check { color: var(--c-green); font-weight: 700; }
.comparison-table .cross { color: #f87171; }

/* ---- Tags Grid ---- */
.tags-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag {
  padding: 6px 14px;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: rgba(99,102,241,.4); color: #a5b4fc; }

/* ---- Related Pages Cards ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.related-card {
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-2px); }
.related-card__cat { font-size: 11px; color: #a5b4fc; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.related-card__title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.related-card__desc { font-size: 13px; color: var(--c-muted); line-height: 1.55; }

/* ---- Ville Hero Map Block ---- */
.ville-intro {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  margin: 40px 0;
  align-items: start;
}
.ville-map-card {
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.ville-map-card__emoji { font-size: 48px; margin-bottom: 12px; }
.ville-map-card__name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.ville-map-card__region { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.ville-map-card__stats { display: flex; flex-direction: column; gap: 10px; }
.vstat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--c-border); font-size: 13px; }
.vstat__label { color: var(--c-muted); }
.vstat__val { color: #fff; font-weight: 700; }

/* ---- Blog Article ---- */
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.article-meta__tag { padding: 4px 12px; background: rgba(99,102,241,.12); color: #a5b4fc; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.article-meta__date, .article-meta__read { font-size: 13px; color: var(--c-muted); }
.article-toc { padding: 20px 24px; background: var(--c-surface2); border: 1px solid var(--c-border); border-radius: var(--radius-md); margin: 28px 0; }
.article-toc__title { font-size: 13px; font-weight: 700; color: var(--c-text); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.article-toc ol { padding-left: 18px; }
.article-toc li { font-size: 14px; color: var(--c-muted); margin-bottom: 6px; }
.article-toc a { color: var(--c-muted); text-decoration: none; }
.article-toc a:hover { color: #a5b4fc; }

/* ---- Pricing Page ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.pricing-card {
  padding: 36px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .25s, transform .25s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured {
  border-color: rgba(99,102,241,.4);
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.05));
  position: relative;
}
.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--grad-main);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.pricing-card__name { font-size: 14px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.pricing-card__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.pricing-card__amount { font-size: 42px; font-weight: 900; color: #fff; line-height: 1; }
.pricing-card__currency { font-size: 20px; font-weight: 700; color: var(--c-muted); }
.pricing-card__period { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; }
.pricing-card__desc { font-size: 14px; color: var(--c-muted); line-height: 1.6; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--c-text); }
.pricing-card__features li::before { content: '✓'; color: var(--c-green); font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.pricing-card__features li.disabled { color: var(--c-muted); opacity: .5; }
.pricing-card__features li.disabled::before { content: '–'; color: var(--c-muted); }

/* ---- About ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.team-card {
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.team-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }
.team-card__avatar {
  width: 70px;
  height: 70px;
  background: var(--grad-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
}
.team-card__name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.team-card__role { font-size: 13px; color: #a5b4fc; margin-bottom: 12px; }
.team-card__bio { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.value-card {
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s;
}
.value-card:hover { border-color: rgba(99,102,241,.35); }
.value-card__icon { font-size: 28px; margin-bottom: 14px; }
.value-card__title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value-card__desc { font-size: 14px; color: var(--c-muted); line-height: 1.65; }

/* ---- Blog Index ---- */
.blog-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blog-index-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
  text-decoration: none;
  display: block;
}
.blog-index-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }
.blog-index-card--featured { grid-column: span 2; }
.blog-index-card__img {
  height: 180px;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.blog-index-card--featured .blog-index-card__img { height: 240px; }
.blog-index-card__body { padding: 24px; }
.blog-index-card__tag { font-size: 11px; color: #a5b4fc; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-index-card__title { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.blog-index-card--featured .blog-index-card__title { font-size: 22px; }
.blog-index-card__excerpt { font-size: 14px; color: var(--c-muted); line-height: 1.65; margin-bottom: 14px; }
.blog-index-card__meta { font-size: 12px; color: var(--c-muted); display: flex; gap: 12px; }

/* ---- Responsive Inner Pages ---- */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .feature-list { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .ville-intro { grid-template-columns: 1fr; }
  .blog-index-grid { grid-template-columns: 1fr; }
  .blog-index-card--featured { grid-column: span 1; }
}

@media (max-width: 768px) {
  /* ---- Page hero ---- */
  .page-hero { padding: 52px 0 40px; }
  .page-hero__title { font-size: 26px; }
  .page-hero__desc { font-size: 15px; }
  .page-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-hero__meta { gap: 16px; }
  .hero-meta__val { font-size: 18px; }

  /* ---- Content ---- */
  .content-layout { grid-template-columns: 1fr; gap: 32px; }
  .content-sidebar { position: static; }

  /* ---- Cards / Grids ---- */
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 18px 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }

  /* ---- Prose ---- */
  .prose h2 { font-size: 22px; margin: 36px 0 14px; }
  .prose h3 { font-size: 18px; margin: 24px 0 10px; }

  /* ---- Pricing ---- */
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* ---- FAQ ---- */
  .faq__question span { font-size: 14px; }
  .faq__answer p { font-size: 13px; padding: 0 16px 16px; }

  /* ---- Contact info (inner page) ---- */
  .contact__grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* ---- Breadcrumb ---- */
  .breadcrumb { padding: calc(var(--header-h) + 10px) 0 12px; }
  .breadcrumb__list { font-size: 12px; gap: 6px; }

  /* ---- Ville map ---- */
  .ville-intro { grid-template-columns: 1fr; }
  .ville-map-card { max-width: 360px; }
}

@media (max-width: 480px) {
  .page-hero__title { font-size: 22px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 28px 20px; }
  .pricing-card__amount { font-size: 36px; }
  .sidebar-widget { padding: 18px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .blog-index-card__body { padding: 18px; }
}

/* ===================== LIGHT MODE — INNER PAGES ===================== */
[data-theme="light"] .page-hero__title,
[data-theme="light"] .hero-meta__val,
[data-theme="light"] .prose h2,
[data-theme="light"] .prose h3,
[data-theme="light"] .feature-item__title,
[data-theme="light"] .step-item__title,
[data-theme="light"] .sidebar-widget__title,
[data-theme="light"] .sidebar-cta__title,
[data-theme="light"] .faq__question span,
[data-theme="light"] .related-card__title,
[data-theme="light"] .ville-map-card__name,
[data-theme="light"] .vstat__val,
[data-theme="light"] .pricing-card__amount,
[data-theme="light"] .team-card__name,
[data-theme="light"] .value-card__title { color: #0f172a; }

[data-theme="light"] .breadcrumb { background: #f1f5f9; }
[data-theme="light"] .page-hero { background: var(--c-bg); }

[data-theme="light"] .comparison-table tr:nth-child(even) td { background: rgba(0,0,0,.02); }
[data-theme="light"] .comparison-table th { background: rgba(99,102,241,.07); }

[data-theme="light"] .prose a:hover { color: #4f46e5; }

[data-theme="light"] .pricing-card--featured {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.04));
}

[data-theme="light"] .blog-index-card__title { color: #0f172a; }
