/* ============================================================
   ShamimFX — clean unified stylesheet
   Replaces the 10,400-line patchwork. Single source of truth.
   All colors flow from :root tokens. Edit a color in ONE place.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette */
  --ink:    #050b17;   /* main dark background */
  --navy:   #091426;
  --blue:   #1f6dff;
  --blue-2: #62c8ff;
  --gold:   #f8c64e;
  --green:  #37e7a1;
  --red:    #ff5c7c;
  --on-gold: #2b2f36;   /* soft "light black" for text on gold/light buttons */

  /* Dark-theme text (on dark backgrounds) */
  --text:   #f7fbff;
  --muted:  #a9b7c9;

  /* Light-theme text (on paper / cards) */
  --ink-strong: #071225;   /* headings on cards */
  --body-soft:  #52657d;   /* paragraph text on cards */
  --paper:   #f7faff;       /* light section background */
  --card:    #ffffff;       /* card background */

  /* Lines & shadows */
  --line:      rgba(255,255,255,.14);
  --dark-line: rgba(9,20,38,.12);
  --shadow:    0 18px 46px rgba(9,20,38,.08);
  --shadow-lg: 0 24px 60px rgba(9,20,38,.12);

  /* Layout */
  --radius: 8px;
  --max:    1200px;
  --header-h: 60px;

  font-family: Inter, "Segoe UI Variable", "Segoe UI", Roboto, Arial, ui-sans-serif, system-ui, sans-serif;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding-top: var(--header-h);   /* room for fixed header */
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Ambient dark gradient + subtle grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(31,109,255,.30), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(248,198,78,.14), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(55,231,161,.10), transparent 34%),
    linear-gradient(180deg, #050b17 0%, #091426 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

/* ---------- 3. Layout primitives ---------- */
.shell {
  width: min(var(--max), calc(100% - 32px));
  max-width: calc(100% - 32px);
  margin-inline: auto;
}

.content-band {
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--paper);
  color: var(--ink-strong);
}
.content-band.dark {
  background: #06101f;
  color: var(--text);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Hero */
.page-hero {
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31,109,255,.18), rgba(5,11,23,.2) 45%, rgba(248,198,78,.08));
  color: var(--text);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* Two-column aside + article grid */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* Section heading */
.section-head,
.compact-head {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  text-align: center;
}
.section-head h2,
.compact-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.section-head p,
.compact-head p {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  opacity: .82;
}

/* ---------- 4. Navigation (fixed header, working mobile menu) ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(5, 13, 28, .96);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
  color: #fff;
}
.brand-logo {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 0 22px rgba(31,109,255,.35);
}
.brand span { display: grid; line-height: 1.1; font-size: 1rem; }
.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Hamburger — clean 3 lines, default hidden on desktop */
.menu-toggle {
  display: none;
  position: relative;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.menu-toggle::before { transform: translate(-50%, -8px); }
.menu-toggle::after  { transform: translate(-50%, 8px); }
.menu-toggle span { background: transparent; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  margin-left: auto;
  color: rgba(247,251,255,.86);
  font-size: 13.5px;
  font-weight: 700;
}
.nav-links > a,
.nav-links .nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(247,251,255,.86);
  white-space: nowrap;
}
.nav-links > a:hover,
.nav-links .nav-drop-toggle:hover,
.nav-links a.is-active,
.nav-drop-toggle.is-active { color: #fff; background: rgba(255,255,255,.10); }

/* Dropdowns (desktop hover/click) */
.nav-item.nav-dropdown { position: relative; }
.nav-drop-toggle { background: transparent; border: 0; color: inherit; font-weight: inherit; }
.nav-drop-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: .8em;
  opacity: .7;
}
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  max-width: min(90vw, 360px);
  padding: 10px;
  border-radius: 12px;
  background: rgba(5, 14, 31, .985);
  border: 1px solid rgba(148,163,184,.24);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1001;
}
.dropdown-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #dbe7f5;
  font-size: 13.5px;
  font-weight: 600;
}
.dropdown-panel a:hover { background: var(--gold); color: var(--on-gold); }
.nav-item.nav-dropdown:hover > .dropdown-panel,
.nav-item.nav-dropdown:focus-within > .dropdown-panel,
.nav-item.nav-dropdown.is-open > .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Nav trailing CTA */
.nav-strategy-cta { color: var(--ink) !important; font-weight: 800; }

/* Brand text stays readable on small tablets */
@media (max-width: 1040px) {
  .brand span { font-size: .95rem; }
}

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #ffe08a);
  color: var(--on-gold);
  box-shadow: 0 12px 28px rgba(248,198,78,.28);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.22);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-mt { margin-top: 24px; }   /* replaces the inline style="margin-top:24px" */

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
  font-size: .96rem;
}
.mini-link::after { content: " →"; }
.mini-link:hover { color: #0b5ed7; }

/* ---------- 6. Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.eyebrow span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-lead {
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
  max-width: 780px;
  color: #c5d2e4;
}
.content-band .page-lead { color: var(--body-soft); }
.last-reviewed { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* ---------- 7. Panels (shared card chrome) ---------- */
.side-panel,
.article-panel,
.service-card,
.step,
.faq-page details,
.proof-card,
.fit-box,
.quick-answer,
.service-table-wrap {
  background: var(--card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* Hero proof panel: translucent glass on the dark hero (NOT a white card) */
.hero-proof-panel {
  padding: clamp(10px, 1.4vw, 18px);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.hero-proof-panel img { display: block; width: 100%; max-height: 520px; height: auto; object-fit: cover; object-position: center top; border-radius: var(--radius); }

.article-panel { padding: clamp(26px, 4vw, 44px); }
.article-panel h1,
.article-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink-strong);
}
.article-panel h3 { margin: 0 0 12px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); color: var(--ink-strong); }
.article-panel p,
.service-card p,
.step p,
.faq-page p { color: var(--body-soft); font-size: 1.04rem; }

.side-panel { padding: 30px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-panel h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--ink-strong); }

/* Dark sections: keep generic cards white & readable (the original bug, fixed at source).
   NOTE: intentionally-dark cards (profile-proof-card, value-card, portfolio-value-grid
   article) are EXEMPTED so their dark background + light text stays readable. */
.content-band.dark .article-panel,
.content-band.dark .side-panel,
.content-band.dark .service-card:not(.profile-proof-card),
.content-band.dark .step,
.content-band.dark .proof-card,
.content-band.dark .fit-box,
.content-band.dark .faq-page details { background: var(--card); }
/* Generic dark-section service-card headings/paragraphs = dark text (white card) */
.content-band.dark .service-card:not(.profile-proof-card) h3,
.content-band.dark .service-card:not(.profile-proof-card) p { color: var(--ink-strong); }
.content-band.dark .proof-card h3 { color: var(--ink-strong); }
.content-band.dark .proof-card p { color: var(--body-soft); }

/* ---------- 8. Lists ---------- */
.quick-list, .rich-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.quick-list li, .rich-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--body-soft);
}
.quick-list li::before, .rich-list li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold), #ffe7a4);
  font-weight: 900;
  font-size: .8rem;
}

.seo-detail-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.seo-detail-list li {
  min-height: 96px;
  padding: 16px 18px;
  background: #f1f6ff;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--body-soft);
}
.seo-detail-list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-strong);
  font-weight: 800;
}

/* ---------- 9. Service / scope / proof cards ---------- */
.service-cards,
.scope-card-grid,
.scope-showcase-grid,
.proof-grid,
.discuss-card-grid,
.profile-proof-grid,
.portfolio-proof-grid,
.portfolio-value-grid,
.testimonial-grid,
.upwork-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}
.service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }

.service-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 100%;
}
.service-card .label {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff1b5;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: .8rem;
}
.service-card-heading,
.service-card h3 { margin: 0 0 8px; color: var(--ink-strong); font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9f1ff, #fff2c6);
  color: var(--blue);
}
.service-icon svg { width: 30px; height: 30px; stroke-width: 2.2; }

/* Scope showcase cards (colored accents) */
.scope-showcase-card {
  padding: clamp(24px, 2.5vw, 36px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  border-top: 4px solid var(--blue);
}
.scope-showcase-card.scope-gold { border-top-color: var(--gold); }
.scope-showcase-card.scope-green { border-top-color: var(--green); }
.scope-showcase-card.scope-blue { border-top-color: var(--blue); }
.scope-showcase-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31,109,255,.12), rgba(248,198,78,.18));
  color: var(--blue);
}
.scope-showcase-icon svg { width: 28px; height: 28px; stroke-width: 2.2; }
.scope-showcase-card h3 { margin: 0; color: var(--ink-strong); }
.scope-showcase-card p { margin: 0; color: var(--body-soft); }
.scope-card-link { margin-top: auto; color: var(--blue); font-weight: 700; }

/* Proof cards */
.proof-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); }
.proof-card .label {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff1b5;
  color: var(--ink-strong);
  font-weight: 800;
  font-size: .8rem;
}
.proof-card h3 { margin: 0; color: var(--ink-strong); font-size: 1.28rem; }
.proof-card p { margin: 0; color: var(--body-soft); }

/* ---------- 10. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 26px; counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 900;
}
.step h3 { margin: 0 0 8px; color: var(--ink-strong); }

/* ---------- 11. Trust strip (hero) ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.trust-item {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: #d7e2f0;
}
.trust-item strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.05rem; }

/* ---------- 12. Fit grid ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.fit-box { padding: 28px; border-radius: var(--radius); }
.fit-box h3 { margin-top: 0; color: var(--ink-strong); }
.fit-box ul { margin: 0; padding-left: 20px; color: var(--body-soft); display: grid; gap: 8px; }

/* ---------- 13. Identity / process band (home) ---------- */
.identity-summary-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.identity-proof-panel { display: grid; gap: 14px; }
.identity-proof-panel > div { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); box-shadow: var(--shadow); }
.identity-proof-panel strong { display: block; color: var(--ink-strong); }
.identity-proof-panel span { color: var(--body-soft); }

.support-process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.process-lead-card h2, .process-detail-card h2 { color: var(--ink-strong); }
.process-points { margin-top: 20px; display: grid; gap: 14px; }
.process-points > div { padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); }
.process-points strong { display: block; color: var(--ink-strong); }
.process-points span { color: var(--body-soft); }
.support-clarity-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.support-clarity-row span { padding: 8px 14px; border-radius: 999px; background: rgba(31,109,255,.10); color: var(--blue); font-weight: 700; font-size: .9rem; }
.support-result-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.support-result-grid span { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); color: var(--ink-strong); font-weight: 700; text-align: center; }

/* ---------- 14. Unified Testimonials (home + portfolio) ---------- */
.upwork-review-card,
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.5vw, 36px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.upwork-review-card:hover,
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.review-meta,
.rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
  font-weight: 800;
  font-size: .9rem;
}
.review-meta span:last-child { color: var(--body-soft); font-weight: 600; }
.upwork-review-card strong,
.testimonial-card h2 {
  display: block;
  margin: 4px 0 0;
  font-size: clamp(1.18rem, 1.5vw, 1.36rem);
  color: var(--ink-strong);
}
.upwork-review-card blockquote,
.testimonial-card p {
  margin: 0;
  color: #3c4d63;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}
.review-author,
.testimonial-card span:last-child {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--dark-line);
  color: var(--ink-strong);
  font-weight: 700;
}
.proof-note { margin: 22px 0 0; color: var(--body-soft); text-align: center; }

/* Star row helper */
.stars { color: var(--gold); letter-spacing: 2px; }
.upwork-badge { color: #14a800; font-weight: 700; font-size: .82rem; }

/* ---------- 15. Trading profile page ---------- */
.profile-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.profile-cta-row .btn { width: auto; }

.trading-id-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.trading-id-item {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow);
}
.trading-id-item strong { display: block; color: var(--ink-strong); font-size: 1.1rem; }
.trading-id-item span { color: var(--body-soft); }

.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #091426, #050b17);
  border: 1px solid rgba(98,200,255,.28);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.strategy-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(31,109,255,.25); }
.strategy-card .strategy-num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: var(--blue-2); }
.strategy-card h3 { margin: 0; color: #fff; font-size: 1.3rem; }
.strategy-card p { margin: 0; color: var(--muted); }
.strategy-card .scope-card-link { color: var(--gold); margin-top: auto; }

.risk-band {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  background: rgba(255,92,124,.08);
  border: 1px solid rgba(255,92,124,.34);
  border-left: 5px solid var(--red);
}
.risk-band h2, .risk-band h3 { margin: 0 0 10px; color: var(--ink-strong); }
.risk-band p { margin: 0 0 10px; color: var(--body-soft); }
.risk-band p:last-child { margin: 0; }

/* ---------- 16. Portfolio cards ---------- */
.portfolio-proof-card,
.portfolio-value-grid article {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.portfolio-proof-card h3,
.portfolio-value-grid article h3 { margin: 0; color: var(--ink-strong); }
.portfolio-proof-card p,
.portfolio-value-grid p { margin: 0; color: var(--body-soft); }
.proof-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.proof-upwork  { background: linear-gradient(135deg, #14a800, #37e7a1); }
.proof-linkedin{ background: linear-gradient(135deg, #0a66c2, #62c8ff); }
.proof-trade   { background: linear-gradient(135deg, #f8c64e, #ffe08a); color: var(--on-gold); }
.proof-work    { background: linear-gradient(135deg, #1f6dff, #62c8ff); }

/* Portfolio value grid — dark cards variant */
.content-band.dark .portfolio-value-grid article {
  background: linear-gradient(145deg, #0b1c38, #071225);
  border-color: rgba(98,200,255,.20);
  color: var(--text);
}
.content-band.dark .portfolio-value-grid article h3 { color: #fff; }
.content-band.dark .portfolio-value-grid article p { color: #c5d2e4; }

.hero-note { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }

/* ---------- 17. About profile cards ---------- */
.profile-proof-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: #121c2b;
  border: 1px solid rgba(98,200,255,.18);
  color: var(--text);
  display: flex; flex-direction: column; gap: 12px;
}
.profile-proof-card h3 { margin: 0; color: #fff; }
.profile-proof-card p { margin: 0; color: #d5dfec; }
.profile-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.linkedin-icon { background: linear-gradient(135deg, #0a66c2, #62c8ff); }
.upwork-icon   { background: linear-gradient(135deg, #14a800, #37e7a1); }
.trading-icon  { background: linear-gradient(135deg, #f8c64e, #ffe08a); color: var(--on-gold); }
.work-icon     { background: linear-gradient(135deg, #1f6dff, #62c8ff); }

/* ---------- 18. Discuss cards (contact) ---------- */
.discuss-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--dark-line);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.discuss-card-blue { border-top-color: var(--blue); }
.discuss-card-gold { border-top-color: var(--gold); }
.discuss-card-green { border-top-color: var(--green); }
.discuss-card h3 { margin: 0; color: var(--ink-strong); }
.discuss-card p { margin: 0; color: var(--body-soft); }
.discuss-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.discuss-card-gold .discuss-icon { background: linear-gradient(135deg, var(--gold), #ffe08a); }
.discuss-card-green .discuss-icon { background: linear-gradient(135deg, var(--green), #5ff0b8); }
.discuss-link { color: var(--blue); font-weight: 800; margin-top: auto; }
.discuss-head { max-width: 820px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.discuss-head h2 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.4vw, 3.1rem); color: var(--ink-strong); }
.discuss-head p { margin: 0; opacity: .82; }

/* Section-band wrappers that inherit .content-band spacing but carry their own identity */
.audience-band,
.service-scope-section,
.support-process-band,
.identity-summary-band,
.upwork-testimonial-section,
.profile-history-section,
.discuss-options-band { /* styled via .content-band; these hooks exist for anchor/JS targeting */ }

/* ---------- 19. SEO sections ---------- */
.seo-depth-section,
.seo-context-section { background: #eef3f9; }
.seo-depth-section .content-grid { grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); }
.seo-context-section .article-panel { max-width: 1200px; }

.seo-proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(24px, 3vw, 38px); }
.seo-proof-strip > * {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #09244b, #174a8a);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
}
.seo-proof-strip a { color: #fff; }
.seo-proof-strip a:hover { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }

/* ---------- 20. FAQ ---------- */
.faq-page { display: grid; gap: 14px; max-width: 880px; margin: 0 auto; }
.faq-page details { padding: 0; overflow: hidden; }
.faq-page summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 800;
  color: var(--ink-strong);
}
.faq-page summary::-webkit-details-marker { display: none; }
.faq-page summary::after {
  content: "+";
  flex: 0 0 34px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(31,109,255,.12);
  color: var(--blue);
  font-weight: 900;
}
.faq-page details[open] summary::after { content: "−"; background: var(--gold); color: var(--on-gold); }
.faq-page details > p, .faq-page details > ul { margin: 0; padding: 0 24px 24px; color: var(--body-soft); }
.faq-side-panel { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); box-shadow: var(--shadow); }
.faq-side-proof { margin-top: 16px; display: grid; gap: 10px; }

/* ---------- 21. Contact ---------- */
.contact-showcase { padding-block: clamp(48px, 6vw, 80px); }
.contact-showcase-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* Both intro card and form panel sit on the dark body bg -> translucent glass + light text */
.contact-intro-card,
.contact-panel,
.contact-panel-dark {
  padding: clamp(26px, 4vw, 42px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  color: #f7fbff;
}
.contact-intro-card h2,
.contact-panel-dark h2 { color: #f7fbff; }
.contact-intro-card p,
.contact-note,
.contact-scope-list { color: #cbd7e8; }
.contact-note { margin-top: 16px; }
.contact-scope-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }

/* Contact form panel: dark translucent glass (original design) */
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; color: var(--text); font-size: .92rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 22px;
  min-height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  color: #ffffff;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b7c5d8; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #51c7ff;
  box-shadow: 0 0 0 3px rgba(81,199,255,.16);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .btn,
.contact-panel-dark .btn { width: 100%; min-height: 72px; font-size: 1.08rem; }
.form-response { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: center; min-height: 116px; margin-top: 4px; padding: 24px 26px; border-radius: 8px; }
.form-response[hidden] { display: none; }
.form-response.is-loading { background: rgba(255,255,255,.06); color: #c7d4e6; }
.form-response.is-success { background: rgba(111,240,167,.14); }
.form-response.is-success::before { content: "\2713"; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 999px; background: #6ff0a7; color: #04131f; font-size: 2rem; font-weight: 900; }
.form-response.is-error { background: rgba(255,92,124,.14); }
.form-response.is-error::before { content: "!"; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 999px; background: var(--red); color: #fff; font-size: 2rem; font-weight: 900; }
.form-response strong { color: #ffffff; font-size: 1.2rem; line-height: 1.22; display: block; }
.form-response span { color: #c7d4e6; line-height: 1.5; display: block; }
.form-botcheck { position: absolute !important; left: -9999px !important; opacity: 0 !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- 22. Support note panel (guides) ---------- */
.support-note-panel { padding: clamp(26px, 4vw, 42px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); box-shadow: var(--shadow); }
.support-note-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; color: var(--body-soft); }
.panel-links { margin-top: 16px; display: grid; gap: 8px; }
.panel-note { margin-top: 14px; color: var(--body-soft); font-size: .92rem; }
.side-fill-block { margin-top: 20px; padding: 18px; border-radius: var(--radius); background: #f1f6ff; border-left: 4px solid var(--blue); color: var(--body-soft); }
.side-mini-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.side-mini-grid > div { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--dark-line); color: var(--ink-strong); font-weight: 700; font-size: .9rem; text-align: center; }

/* Service table (case studies / scope) */
.service-table-wrap { overflow-x: auto; }
.service-table { width: 100%; min-width: 720px; border-collapse: collapse; color: var(--ink-strong); }
.service-table th, .service-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dark-line); }
.service-table th { background: #eef5ff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.service-table td { color: var(--body-soft); }
.service-table td strong { color: var(--ink-strong); }

/* Quick answer (guides/faqs) */
.quick-answer { padding: clamp(22px, 3vw, 34px); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.quick-answer p { color: var(--body-soft); margin: 0; font-size: 1.08rem; }

/* ---------- 23. CTA band ---------- */
.cta-band { padding: clamp(48px, 6vw, 80px) 0; background: linear-gradient(135deg, rgba(31,109,255,.26), rgba(248,198,78,.16)); }
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(5,11,23,.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.cta-box h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.9rem); color: #fff; line-height: 1.1; }
.cta-box .page-lead { margin: 12px 0 0; color: #c5d2e4; }

/* ---------- 24. Footer ---------- */
.footer { padding-block: 54px 46px; background: #040a14; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 36px; }
.footer .brand { color: #fff; }
.footer-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.footer-contact a {
  display: flex; align-items: center; justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: #e7eef9;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
  font-weight: 600; font-size: .85rem;
  text-align: center;
}
.footer-contact a:hover { background: linear-gradient(135deg, var(--gold), #ffe08a); color: var(--on-gold); }
.footer-risk { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; color: #a9b7c9; font-size: .9rem; line-height: 1.6; }

/* ---------- 25. Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   RESPONSIVE — one clean block, no !important wars
   ============================================================ */
@media (max-width: 1040px) {
  :root { --header-h: 56px; }

  /* Mobile menu: show hamburger, hide inline nav, slide-down panel */
  .menu-toggle { display: inline-flex; align-self: center; }
  .nav-links {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    left: 10px; right: 10px;
    height: auto;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(5, 14, 31, .985);
    border: 1px solid rgba(148,163,184,.24);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.is-open { display: flex; }

  .nav-links > a,
  .nav-links .nav-drop-toggle {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 1rem;
  }
  .nav-item.nav-dropdown { width: 100%; }
  .nav-item.nav-dropdown > .dropdown-panel {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-width: none;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 6px;
    box-shadow: none;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.10);
    display: none;
  }
  .nav-item.nav-dropdown.is-open > .dropdown-panel { display: block !important; }
  .dropdown-panel a { min-height: 40px; }
  .nav-strategy-cta { width: 100%; justify-content: center; }

  /* grids collapse to 1-2 columns */
  .page-hero-grid,
  .content-grid,
  .contact-showcase-grid,
  .identity-summary-card,
  .support-process-grid { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .service-cards,
  .steps,
  .scope-showcase-grid,
  .proof-grid,
  .testimonial-grid,
  .upwork-review-grid,
  .discuss-card-grid,
  .profile-proof-grid,
  .portfolio-proof-grid,
  .portfolio-value-grid,
  .trading-id-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .footer-contact a { min-height: 40px; padding: 7px 8px; font-size: .82rem; }
}

@media (max-width: 680px) {
  :root { --header-h: 56px; }
  .page-hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .page-lead { font-size: 1.02rem; }
  .section-head h2,
  .article-panel h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); }

  .service-cards,
  .steps,
  .scope-showcase-grid,
  .proof-grid,
  .testimonial-grid,
  .upwork-review-grid,
  .discuss-card-grid,
  .profile-proof-grid,
  .portfolio-proof-grid,
  .portfolio-value-grid,
  .trading-id-card,
  .trust-strip,
  .seo-proof-strip,
  .support-result-grid { grid-template-columns: 1fr; }

  .cta-box { flex-direction: column; align-items: flex-start; }
  .cta-box .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-panel,
  .service-card,
  .contact-panel,
  .contact-intro-card { padding: 22px; }
  .quick-list li, .rich-list li { grid-template-columns: 24px 1fr; }
}

@media (max-width: 420px) {
  :root { --header-h: 52px; }
  .brand span { display: none; }   /* logo only on tiny screens */
}
