/* --- HERO MODERN --- */
.hero-modern {
  position: relative;
  padding: 5.4rem 0;
  max-width: 980px;
  overflow: hidden;
}

/* Motif "Sommets Géométriques" & IA */
.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image:
    conic-gradient(from 150deg at 80% 20%, rgba(15, 137, 148, 0.1) 0deg, transparent 40deg),
    conic-gradient(from 170deg at 75% 25%, rgba(255, 105, 20, 0.05) 0deg, transparent 30deg);
  opacity: 0.05;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* Utilisation du logo comme filigrane technologique */
.hero-modern::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  height: 380px;
  background: url('./assets/logo_geostratum.svg') no-repeat center;
  opacity: 0.035;
  filter: grayscale(1);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--brand-orange);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "// ";
  color: var(--brand-teal-dark);
}

.hero-modern h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(95deg, var(--brand-dark) 0%, var(--brand-teal-dark) 45%, var(--brand-teal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 0.9rem + 1vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2.2rem;
  font-weight: 500;
  max-width: 100%;
}

.hero {
  background: linear-gradient(135deg, rgba(15, 137, 148, 0.1) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(255, 105, 20, 0.1) 100%);
  border: 1px solid rgba(15, 137, 148, 0.18);
  border-radius: calc(var(--radius) + 2px);
  padding: 2.6rem;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: clamp(2rem, 1.45rem + 2vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.hero-actions {
  display: flex;
  gap: clamp(0.65rem, 1.4vw, 1rem);
  flex-wrap: wrap;
}

.hero-actions .btn {
  flex: 1 1 clamp(11rem, 30vw, 16rem);
}

/* --- SHOWCASE SECTION (LITHOTHEQUE) --- */
.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 137, 148, 0.2);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
}

.showcase-card:hover {
  border-color: rgba(15, 137, 148, 0.3);
  box-shadow: var(--shadow-lg);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 137, 148, 0.18) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  opacity: 0.16;
  pointer-events: none;
}

.showcase-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.showcase-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Ombre icône app */
}

.showcase-brand h3 {
  font-size: 2rem;
  color: var(--text);
}

.showcase-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem 0;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  background: rgba(15, 137, 148, 0.05);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.showcase-list li::before {
  content: "✓";
  color: var(--brand-teal);
  font-weight: bold;
}

.showcase-visual {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  overflow: hidden;
  z-index: 1;
}

/* --- HOME SIGNAL SECTION --- */
.signal-section {
  background: linear-gradient(160deg, rgba(15, 137, 148, 0.08) 0%, rgba(255, 255, 255, 0.95) 45%);
  border: 1px solid rgba(15, 137, 148, 0.22);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.signal-head {
  max-width: 900px;
  margin-bottom: 1.5rem;
}

.signal-head .kicker {
  text-transform: none;
}

.signal-head h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
  color: var(--brand-dark);
}

.signal-head p {
  color: var(--muted);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.15rem);
  margin-bottom: 1.5rem;
}

.signal-card {
  background: #ffffff;
  border: 1px solid rgba(15, 137, 148, 0.18);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.signal-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 137, 148, 0.9), rgba(255, 105, 20, 0.85));
}

.signal-card h3 {
  color: var(--brand-teal-dark);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.signal-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.signal-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(0.8rem, 1.6vw, 1rem);
}

.signal-media {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.signal-media:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.signal-media img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.signal-media figcaption {
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
}

/* --- SERVICES CARDS --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: rgba(15, 137, 148, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(15, 137, 148, 0.1);
  /* Lueur IA */
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 137, 148, 0.9), rgba(255, 105, 20, 0.85));
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--brand-teal);
  background: rgba(15, 137, 148, 0.1);
  /* Fond coloré style SaaS */
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* --- LITHOTHEQUE DETAILS --- */
.app-description h2 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.detail-intro {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 1000px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 137, 148, 0.82), rgba(255, 105, 20, 0.8));
}

.detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.detail-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 137, 148, 0.12);
  color: var(--brand-teal-dark);
  border: 1px solid rgba(15, 137, 148, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.detail-card h3 {
  color: var(--brand-teal-dark);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.detail-illustration {
  margin: 0.2rem 0 0.9rem;
  border: 1px solid rgba(15, 137, 148, 0.24);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(15, 137, 148, 0.11), rgba(255, 255, 255, 0.96));
  padding: 0.35rem 0.45rem;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--brand-teal-dark);
}

.detail-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 137, 148, 0.18) 0.8px, transparent 0.8px);
  background-size: 14px 14px;
  opacity: 0.28;
  pointer-events: none;
}

.detail-illustration svg {
  width: 100%;
  max-width: 170px;
  height: 66px;
  display: block;
  position: relative;
  z-index: 1;
}

.detail-illustration .stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-illustration .thin {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.detail-illustration .fill-soft {
  fill: rgba(255, 255, 255, 0.82);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.detail-illustration .dot {
  fill: var(--brand-orange);
  stroke: var(--brand-orange-light);
  stroke-width: 1;
}

.detail-illustration-map {
  color: #0d717a;
}

.detail-illustration-struct {
  color: #0b6a73;
}

.detail-illustration-notebook {
  color: #0b6472;
}

.detail-illustration-ai {
  color: #165f89;
}

.detail-illustration-exports {
  color: #176777;
}

.detail-illustration-security {
  color: #22676d;
}

.detail-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.detail-list li {
  color: var(--muted);
}

.detail-list li::marker {
  color: var(--brand-teal);
}

.detail-closing {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--brand-orange);
  background: rgba(255, 105, 20, 0.07);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

/* --- LITHOTHEQUE VIDEO --- */
.video-section {
  width: 100%;
  margin-top: 1rem;
}

.detail-closing {
  background: rgba(255, 105, 20, 0.08);
  border-left: 3px solid var(--brand-orange);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- LITHOTHEQUE GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
}

.gallery-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-caption {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.gallery-img-wrapper img,
.signal-media img,
.showcase-visual img,
.brand-logo,
.showcase-icon {
  -webkit-user-drag: none;
  user-select: none;
}

.showcase-visual::after,
.signal-media::after,
.gallery-img-wrapper::after {
  content: 'GeoStratum · Lithotheque';
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  background: rgba(6, 18, 26, 0.42);
  color: rgba(240, 248, 252, 0.9);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

/* --- CTA SECTION --- */
.cta-panel {
  background: linear-gradient(145deg, #21343d 0%, #314650 42%, #465d68 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.2) 0.7px, transparent 0.7px),
    linear-gradient(120deg, rgba(15, 137, 148, 0.25), rgba(255, 105, 20, 0.2));
  background-size: 24px 24px, 100% 100%;
  opacity: 0.33;
  pointer-events: none;
}

.cta-panel h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-panel p {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-panel .btn {
  position: relative;
  z-index: 1;
}


/* --- PRIVACY PAGE --- */
.privacy-main {
  max-width: 900px;
}

.policy-shell {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 252, 0.94));
  border: 1px solid rgba(15, 137, 148, 0.22);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.policy-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(165deg, rgba(79, 95, 105, 0.08) 0 1px, transparent 1px 24px);
  opacity: 0.3;
  pointer-events: none;
}

.policy-shell>* {
  position: relative;
  z-index: 1;
}

.policy-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.policy-page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.policy-status {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  min-height: 1.5rem;
}

.policy-content p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* --- AGENTIC AI GUIDE STYLES --- */
.guide-container {
  max-width: 1250px;
}

.guide-hero {
  text-align: left;
  background: linear-gradient(135deg, rgba(15, 137, 148, 0.05) 0%, rgba(255, 105, 20, 0.05) 100%);
  border-bottom: 2px solid var(--brand-teal);
}

.guide-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--brand-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.guide-hero .lead {
  font-size: 1.2rem;
  max-width: 100%;
  margin: 0;
  opacity: 0.9;
}

.usage-box {
  background: rgba(15, 137, 148, 0.08);
  border-left: 4px solid var(--brand-teal);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.usage-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--brand-teal);
  text-transform: uppercase;
}

.usage-box ul {
  margin-bottom: 1rem;
}

.example-text {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.result-text {
  margin-bottom: 0;
  color: var(--brand-teal-dark);
  font-style: italic;
}

/* --- DOCUMENTATION CENTER SPLIT PANEL LAYOUT --- */
.guide-layout-wrapper {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin: 2rem 0;
}

/* Sidebar Navigation */
.guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}

.guide-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.guide-sidebar-menu {
  list-style: none !important;
  list-style-type: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
  padding: 0 !important;
  margin: 0 !important;
}

.guide-sidebar-menu li {
  list-style: none !important;
  list-style-type: none !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}

.guide-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.guide-sidebar-link svg {
  flex-shrink: 0;
  margin-right: 0.5rem;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.guide-sidebar-link:hover {
  background: rgba(15, 137, 148, 0.05);
  color: var(--brand-teal);
  border-left-color: rgba(15, 137, 148, 0.3);
}

.guide-sidebar-link:hover svg {
  transform: scale(1.1);
  stroke: var(--brand-teal);
}

.guide-sidebar-link.is-active {
  background: rgba(15, 137, 148, 0.08);
  color: var(--brand-teal-dark);
  font-weight: 600;
  border-left-color: var(--brand-teal);
  padding-left: 1rem;
}

.guide-sidebar-link.is-active svg {
  stroke: var(--brand-teal);
}

/* Mobile Sticky Selector */
.guide-mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  margin-bottom: 2rem;
}

.guide-mobile-select-wrapper {
  position: relative;
  width: 100%;
}

.guide-mobile-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.guide-mobile-select:focus {
  border-color: var(--brand-teal);
}

.guide-mobile-select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

/* Content Panels */
.guide-chapters {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.guide-chapter-panel {
  scroll-margin-top: calc(var(--header-height) + 4rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-chapter-panel:hover {
  border-color: rgba(15, 137, 148, 0.2);
  box-shadow: var(--shadow-md);
}

.guide-chapter-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.guide-chapter-header h2 {
  font-size: 1.8rem;
  color: var(--brand-dark);
  margin-top: 0.5rem;
}

.guide-chapter-badge {
  display: inline-block;
  background: rgba(15, 137, 148, 0.1);
  color: var(--brand-teal-dark);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.guide-chapter-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.guide-chapter-body p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Steps list */
.guide-steps-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 2rem 0 1rem 0;
}

.guide-steps-list {
  list-style: none !important;
  list-style-type: none !important;
  counter-reset: steps-counter;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: 0 !important;
}

.guide-steps-list li {
  counter-increment: steps-counter;
  position: relative;
  padding-left: 3.5rem;
  min-height: 2.2rem;
  list-style: none !important;
}

.guide-steps-list li::before {
  content: counter(steps-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(15, 137, 148, 0.2);
}

.guide-steps-list li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.guide-steps-list li span {
  font-size: 0.95rem;
  color: var(--muted);
  display: block;
}

/* Boxes */
.guide-note-box {
  background: rgba(15, 137, 148, 0.05);
  border-left: 4px solid var(--brand-teal);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.guide-note-box strong {
  display: block;
  color: var(--brand-teal-dark);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.guide-note-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.guide-warning-box {
  background: rgba(255, 105, 20, 0.05);
  border-left: 4px solid var(--brand-orange);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.guide-warning-box strong {
  display: block;
  color: var(--brand-orange);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.guide-warning-box p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* FAQ Item */
.guide-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.guide-faq-item:last-child {
  border-bottom: none;
}

.guide-faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 0.5rem;
}

.guide-faq-answer {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Structured Blocks */
.guide-export-schema {
  background: #1e293b;
  color: #cbd5e1;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid #334155;
  margin: 1.5rem 0;
}

/* RTL Adjustments */
html[dir="rtl"] .guide-sidebar {
  border-right: none;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 1.5rem;
}

html[dir="rtl"] .guide-sidebar-link {
  border-left: none;
  border-right: 3px solid transparent;
}

html[dir="rtl"] .guide-sidebar-link svg {
  margin-right: 0;
  margin-left: 0.5rem;
}

html[dir="rtl"] .guide-sidebar-link:hover {
  border-right-color: rgba(15, 137, 148, 0.3);
}

html[dir="rtl"] .guide-sidebar-link.is-active {
  border-right-color: var(--brand-teal);
  padding-left: 0.8rem;
  padding-right: 1rem;
}

html[dir="rtl"] .guide-steps-list li {
  padding-left: 0;
  padding-right: 3.5rem;
}

html[dir="rtl"] .guide-steps-list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .guide-note-box {
  border-left: none;
  border-right: 4px solid var(--brand-teal);
  border-radius: var(--radius) 0 0 var(--radius);
}

html[dir="rtl"] .guide-warning-box {
  border-left: none;
  border-right: 4px solid var(--brand-orange);
  border-radius: var(--radius) 0 0 var(--radius);
}

/* Dark Mode Theme Overrides */
.theme-dark .guide-chapter-panel {
  background: #1e293b;
  border-color: #334155;
}

.theme-dark .guide-chapter-header h2 {
  color: #f1f5f9;
}

.theme-dark .guide-chapter-badge {
  background: rgba(15, 137, 148, 0.2);
  color: #38bdf8;
}

.theme-dark .guide-steps-list li strong {
  color: #f1f5f9;
}

.theme-dark .guide-steps-list li span {
  color: #94a3b8;
}

.theme-dark .guide-note-box {
  background: rgba(15, 137, 148, 0.1);
}

.theme-dark .guide-note-box strong {
  color: #38bdf8;
}

.theme-dark .guide-note-box p {
  color: #cbd5e1;
}

.theme-dark .guide-warning-box {
  background: rgba(255, 105, 20, 0.1);
}

.theme-dark .guide-warning-box p {
  color: #cbd5e1;
}

.theme-dark .guide-faq-question {
  color: #f1f5f9;
}

.theme-dark .guide-faq-answer {
  color: #94a3b8;
}

.theme-dark .guide-sidebar {
  border-color: #334155;
}

.theme-dark .guide-mobile-nav {
  background: rgba(15, 23, 42, 0.95);
  border-color: #334155;
}

.theme-dark .guide-mobile-select {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

@media (max-width: 900px) {
  .guide-layout-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  
  .guide-sidebar {
    display: none !important;
  }
  
  .guide-mobile-nav {
    display: block !important;
  }
  
  .guide-chapters {
    gap: 2.5rem;
  }
  
  .guide-chapter-panel {
    padding: 1.5rem;
  }
}

@media (min-width: 901px) {
  .guide-sidebar {
    display: block !important;
  }
  
  .guide-mobile-nav {
    display: none !important;
  }
}

.accent-panel {
  border-top: 3px solid var(--accent);
  text-align: center;
  background: rgba(255, 105, 20, 0.03);
}

/* --- MAP LAYERS GUIDE STYLES --- */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 800px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.step-item:hover {
  transform: translateX(10px);
  border-color: var(--brand-teal);
}

.step-number {
  background: var(--brand-teal);
  color: white;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-content p {
  margin: 0;
  line-height: 1.6;
}

.source-alphabet-group {
  margin-bottom: 3rem;
}

.alphabet-letter {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-teal);
  opacity: 0.3;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  display: block;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.source-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.source-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.source-header strong {
  color: var(--brand-teal-dark);
  font-size: 1.1rem;
}

.source-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.copy-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.copy-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: bold;
  color: var(--brand-teal);
  margin-bottom: -0.2rem;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-card code {
  flex-grow: 1;
  background: rgba(0,0,0,0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  word-break: break-all;
  font-family: monospace;
}

.btn-copy {
  background: var(--brand-teal);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 60px;
}

.btn-copy:hover {
  background: var(--brand-teal-dark);
}

.btn-copy.copied {
  background: #28a745;
}

.footer-note {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.engine-note {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Adjust justification for specific guide elements */
.guide-container .panel p,
.guide-container .panel li,
.guide-container .lead {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-break: break-word;
  line-height: 1.7;
}

/* Ensure images/SVGs in guide are responsive */
.guide-container svg {
  max-width: 100%;
  height: auto;
}

/* --- SPACEGEOL PROMO SECTION --- */
.spacegeol-promo-section {
  background: radial-gradient(circle at top right, #001220, #000205);
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 137, 148, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(15, 137, 148, 0.1);
}

.spacegeol-promo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.3;
  pointer-events: none;
}

.spacegeol-promo-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.spacegeol-promo-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 1rem 0 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #0f8994 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.spacegeol-promo-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
}

.spacegeol-promo-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.promo-tags {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0f8994;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .spacegeol-promo-section {
    padding: 3rem 1.5rem;
    margin: 2rem 0;
  }
}

