/* RusAndes Global Markets — dedicated educational service page */
.gm-page {
  background: var(--bg-0);
  color: var(--text-0);
}

.gm-page .section-label { color: var(--gold-accessible); }
.gm-page .nav-link.active { color: var(--text-0); }
.gm-page .nav-link.active::after { width: 100%; }

.gm-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}

.gm-skip-link:focus { transform: none; }

.gm-page :focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 4px;
}

.gm-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 92px;
  background:
    radial-gradient(circle at 80% 42%, rgba(38,183,200,0.14), transparent 30%),
    linear-gradient(145deg, var(--panel-bg) 0%, var(--panel-bg2) 72%, #0D2940 100%);
}

.gm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.gm-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.gm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: #CDD5E4;
  font-size: 13px;
}

.gm-breadcrumb a { color: #fff; }
.gm-breadcrumb a:hover { color: var(--gold-light); }

.gm-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gm-hero h1 {
  max-width: 800px;
  margin-bottom: 22px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6.2vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.gm-hero-copy {
  max-width: 670px;
  color: #D5DDEA;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
}

.gm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.gm-hero-note {
  max-width: 650px;
  margin-top: 22px;
  color: #ABB7C9;
  font-size: 12px;
  line-height: 1.65;
}

.gm-hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.gm-blueprint-card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(240,207,114,0.36);
  border-radius: var(--radius-lg);
  background: rgba(5,11,31,0.76);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
}

.gm-blueprint-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #BFC9D8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gm-blueprint-stack { display: grid; gap: 10px; }

.gm-blueprint-layer {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.045);
}

.gm-blueprint-layer::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}

.gm-blueprint-layer:nth-child(2)::after { background: var(--gold-light); }
.gm-blueprint-layer:nth-child(3)::after { background: #8FA7C6; }
.gm-blueprint-layer:nth-child(4)::after { background: #6DB8A7; }
.gm-blueprint-layer strong { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.gm-blueprint-layer span { color: #AEB9CA; font-size: 11px; }
.gm-blueprint-layer b { color: var(--gold-light); font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; }

.gm-hero-orbit {
  position: absolute;
  border: 1px solid rgba(38,183,200,0.28);
  border-radius: 50%;
}

.gm-hero-orbit--one { width: 470px; height: 470px; }
.gm-hero-orbit--two { width: 600px; height: 600px; border-color: rgba(215,184,95,0.18); }

.gm-trust {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.gm-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gm-trust-grid > div {
  min-width: 0;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.gm-trust-grid > div:last-child { border-right: 0; }
.gm-trust-grid strong { display: block; margin-bottom: 4px; color: var(--text-0); font-size: 14px; }
.gm-trust-grid span { display: block; color: var(--text-2); font-size: 12px; line-height: 1.5; }

.gm-section { padding: 104px 0; }
.gm-section-heading { max-width: 760px; margin-bottom: 56px; }
.gm-section-heading .section-desc { max-width: 700px; }

.gm-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 64px;
  align-items: end;
  max-width: none;
}

.gm-fit-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.gm-fit-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.gm-fit-card--dark {
  color: #fff;
  border-color: rgba(215,184,95,0.25);
  background: linear-gradient(145deg, var(--panel-bg), var(--panel-bg2));
}

.gm-fit-card h3 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 500;
}

.gm-check-list { display: grid; gap: 14px; }
.gm-check-list li { position: relative; padding-left: 28px; color: var(--text-1); line-height: 1.65; }
.gm-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.gm-fit-card--dark .gm-check-list li { color: #D6DFEA; }
.gm-fit-card--dark .gm-check-list li::before { content: '—'; color: var(--gold-light); }

.gm-framework { background: var(--bg-1); }

.gm-framework-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.gm-framework-visual {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding: 34px;
  color: #fff;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #071127 0%, #10294A 100%);
  box-shadow: var(--shadow-lg);
}

.gm-framework-visual h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
}

.gm-framework-visual > p { color: #C8D3E1; font-size: 14px; line-height: 1.7; }
.gm-role-stack { display: grid; gap: 10px; margin-top: 28px; }
.gm-role {
  padding: 16px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255,255,255,0.06);
}
.gm-role:nth-child(2) { border-left-color: var(--gold-light); }
.gm-role:nth-child(3) { border-left-color: #8FA7C6; }
.gm-role:nth-child(4) { border-left-color: #6DB8A7; }
.gm-role strong { display: block; margin-bottom: 3px; font-size: 13px; }
.gm-role span { color: #B7C2D2; font-size: 11px; line-height: 1.5; }
.gm-visual-note { margin-top: 20px; color: #AEB9CA !important; font-size: 11px !important; }

.gm-framework-list,
.gm-faq-list,
.gm-asset-list { display: grid; gap: 14px; }

.gm-framework-list details,
.gm-faq-list details,
.gm-asset-list details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.gm-framework-list summary,
.gm-faq-list summary,
.gm-asset-list summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  color: var(--text-0);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.gm-framework-list summary::-webkit-details-marker,
.gm-faq-list summary::-webkit-details-marker,
.gm-asset-list summary::-webkit-details-marker { display: none; }

.gm-framework-list summary::after,
.gm-faq-list summary::after,
.gm-asset-list summary::after {
  content: '+';
  margin-left: auto;
  color: var(--teal-dark);
  font-size: 1.45rem;
  font-weight: 400;
}

.gm-framework-list details[open] summary::after,
.gm-faq-list details[open] summary::after,
.gm-asset-list details[open] summary::after { content: '−'; }
.gm-step-index { color: var(--gold-dark); font-family: var(--font-display); font-size: 1.4rem; }
.gm-detail-body { padding: 0 22px 22px 58px; color: var(--text-1); line-height: 1.72; }
.gm-detail-body p + p { margin-top: 10px; }

.gm-assets { background: var(--bg-card); }
.gm-asset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gm-asset-list details { align-self: start; background: var(--bg-0); }
.gm-asset-list h3 { font-family: inherit; font-size: 1rem; }
.gm-asset-list .gm-detail-body { padding-left: 22px; }
.gm-asset-facts { display: grid; gap: 12px; }
.gm-asset-facts div { padding: 13px 14px; border-left: 3px solid var(--teal-dark); background: var(--bg-card); }
.gm-asset-facts strong { display: block; margin-bottom: 4px; color: var(--text-0); font-size: 12px; }
.gm-asset-facts span { color: var(--text-2); font-size: 13px; line-height: 1.55; }

.gm-deliverables { background: var(--bg-1); }
.gm-deliverable-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gm-deliverable-card {
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.gm-deliverable-index { display: block; margin-bottom: 54px; color: var(--gold-dark); font-family: var(--font-display); font-size: 2.4rem; }
.gm-deliverable-card h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.8rem; font-weight: 500; }
.gm-deliverable-card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

.gm-process-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: process; }
.gm-process-list li {
  position: relative;
  min-height: 250px;
  padding: 28px 22px;
  counter-increment: process;
  border-top: 3px solid var(--teal-dark);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.gm-process-list li::before { content: '0' counter(process); display: block; margin-bottom: 42px; color: var(--gold-dark); font-family: var(--font-display); font-size: 1.8rem; }
.gm-process-list h3 { margin-bottom: 10px; font-size: 15px; }
.gm-process-list p { color: var(--text-2); font-size: 13px; line-height: 1.65; }

.gm-boundaries { padding: 80px 0; color: #fff; background: var(--panel-bg); }
.gm-boundary-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 72px; align-items: start; }
.gm-boundaries .section-label { color: var(--gold-light); }
.gm-boundaries h2 { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 500; line-height: 1.04; }
.gm-boundaries p { color: #C8D2E1; line-height: 1.75; }
.gm-boundary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gm-boundary-list li { padding: 18px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); color: #E1E8F0; background: rgba(255,255,255,0.04); font-size: 13px; line-height: 1.55; }
.gm-regulatory-note { margin-top: 24px; padding: 18px; border-left: 3px solid var(--gold-light); color: #C8D2E1 !important; font-size: 12px; }

.gm-faq { background: var(--bg-1); }
.gm-faq-list { max-width: 900px; }
.gm-faq-list .gm-detail-body { padding-left: 22px; }

.gm-consult { background: var(--bg-card); }
.gm-consult-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr); gap: 72px; align-items: start; }
.gm-consult-copy h2 { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; line-height: 1; }
.gm-consult-copy > p { color: var(--text-1); font-size: 17px; line-height: 1.75; }
.gm-consult-copy ul { display: grid; gap: 12px; margin-top: 28px; }
.gm-consult-copy li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 14px; }
.gm-consult-copy li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-dark); }

.gm-form {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-0);
  box-shadow: var(--shadow-md);
}
.gm-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gm-form .form-group { margin-bottom: 16px; }
.gm-form label:not(.gm-consent) { display: block; margin-bottom: 7px; color: var(--text-1); font-size: 12px; font-weight: 700; }
.gm-form input,
.gm-form select,
.gm-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font: inherit;
}
.gm-form textarea { min-height: 112px; resize: vertical; }
.gm-form input:focus,
.gm-form select:focus,
.gm-form textarea:focus { border-color: var(--teal-dark); }
.gm-consent { display: flex; min-height: 44px; align-items: flex-start; gap: 10px; margin: 4px 0 14px; color: var(--text-2); font-size: 12px; line-height: 1.55; cursor: pointer; }
.gm-consent input { width: 20px; min-height: 20px; margin-top: 2px; flex: 0 0 20px; }
.gm-consent a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.gm-form .form-fine-print { margin-bottom: 14px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.gm-form .form-email-link { display: flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 8px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.gm-form-success { margin-top: 14px; padding: 12px 14px; color: #0A553A; border: 1px solid rgba(10,85,58,0.18); border-radius: var(--radius-sm); background: rgba(26,164,107,0.1); font-size: 12px; }
.gm-form-success[hidden] { display: none !important; }
.gm-footer { background: var(--panel-bg); }

@media (max-width: 1024px) {
  .gm-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr); gap: 32px; }
  .gm-hero-visual { min-height: 440px; }
  .gm-blueprint-card { padding: 20px; }
  .gm-process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .gm-hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 64px; }
  .gm-hero::before { mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 100%); }
  .gm-hero-inner { display: block; }
  .gm-breadcrumb { margin-bottom: 38px; }
  .gm-hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .gm-hero-visual { min-height: 410px; margin-top: 44px; }
  .gm-hero-orbit--one { width: 350px; height: 350px; }
  .gm-hero-orbit--two { width: 430px; height: 430px; }
  .gm-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gm-trust-grid > div { border-bottom: 1px solid var(--border); }
  .gm-trust-grid > div:nth-child(2) { border-right: 0; }
  .gm-section { padding: 76px 0; }
  .gm-section-heading { margin-bottom: 40px; }
  .gm-section-heading--split,
  .gm-fit-grid,
  .gm-framework-grid,
  .gm-consult-grid,
  .gm-boundary-grid { grid-template-columns: 1fr; gap: 36px; }
  .gm-framework-visual { position: static; }
  .gm-asset-list,
  .gm-deliverable-grid { grid-template-columns: 1fr; }
  .gm-deliverable-card { min-height: 240px; }
  .gm-process-list { grid-template-columns: 1fr; }
  .gm-process-list li { min-height: 0; }
  .gm-process-list li::before { margin-bottom: 22px; }
  .gm-boundary-list { grid-template-columns: 1fr; }
  .gm-consult-grid { align-items: stretch; }
  .gm-form { padding: 24px; }
}

@media (max-width: 540px) {
  .gm-hero-actions { flex-direction: column; }
  .gm-hero-actions .btn { width: 100%; justify-content: center; }
  .gm-trust-grid { grid-template-columns: 1fr; }
  .gm-trust-grid > div { border-right: 0; }
  .gm-fit-card,
  .gm-framework-visual,
  .gm-deliverable-card { padding: 24px; }
  .gm-blueprint-card { width: calc(100% - 16px); }
  .gm-blueprint-layer { min-height: 70px; padding: 14px; }
  .gm-detail-body { padding-left: 22px; }
  .gm-form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-skip-link { transition: none; }
}
