/* =========================================================================
   LOCAL CURRENCIES & CRYPTO — page-specific styles
   Pixel-built from the Figma "Local Currencies & Crypto" frame  2560:4380
     hero            2560:4381   (full-bleed glass-panel cinematic)
     glass card      2560:4566   (heading + coin row + stats)
     wallet mockup   2560:4557   (rebuilt as crisp, responsive HTML)
   Every colour / size / radius traces to a value pulled from Figma.
   Lives on top of the shared tokens in variables.css / layout.css and
   reuses the site marquee, accordion, CTA and header/footer components.
   ========================================================================= */

.lcc-arc {
  /* exact Figma palette */
  --lcc-bg: #060509;          /* hero frame fill #09090c → flat near-black */
  --lcc-ink: #ffffff;
  --lcc-muted: #8e8e93;       /* Figma sub copy / labels                  */
  --lcc-card-border: #272727; /* GlassCard 1px border                     */
  --lcc-coin-edge: rgba(255, 255, 255, 0.07);
  --lcc-grad-from: #1bff9c;   /* hero title gradient start (green)        */
  --lcc-grad-to: #004dff;     /* hero title gradient end   (blue)         */
  --lcc-accent: #2bd17e;      /* "active" crypto row glow (green)         */
}

/* flat near-black arc (theme-dark would otherwise paint a diagonal wash).
   The hero is the first thing on the page, so the arc sits flush to the top
   edge — no top padding/margin/border/rounded-corners — letting the hero
   background meet the top edge fully (the default story-arc adds a 6rem top
   pad + 32px radius + 1px border that would otherwise cut a band above it). */
.story-arc.lcc-arc {
  background-image: none;
  background-color: var(--lcc-bg);
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.lcc-arc section { background: transparent; background-image: none; border-top: 0; padding: 0; }

/* =========================================================================
   1 — HERO  (full-bleed cinematic, headline overlaid + centred low)
   ========================================================================= */
.lcc-hero {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 40vw, 688px);       /* Figma 1725 x 688 ratio   */
  display: flex;
  align-items: flex-end;                        /* text sits in lower third */
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #09090c;                           /* Figma frame fill         */
}
.lcc-hero__media { position: absolute; inset: 0; z-index: 0; }
.lcc-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;                       /* symmetric panel fan      */
}
.lcc-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(6, 5, 9, 0) 38%, rgba(6, 5, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 5, 9, 0.45) 0%, rgba(6, 5, 9, 0) 26%, rgba(6, 5, 9, 0) 52%, rgba(6, 5, 9, 0.82) 88%, var(--lcc-bg) 100%);
}
.lcc-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  text-align: center;
  padding-bottom: clamp(2.5rem, 7vw, 5.5rem);
}
.lcc-hero__title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 900;                              /* Satoshi Black            */
  font-size: clamp(2rem, 4.6vw, 3.5rem);         /* Figma 56px               */
  line-height: 1.12;                             /* Figma 64/56              */
  letter-spacing: -0.02em;
  /* green → blue gradient (Figma #1bff9c → #004dff) */
  background-image: linear-gradient(90deg, var(--lcc-grad-from) 0%, var(--lcc-grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: 0.1em;                          /* room for descenders     */
}
.lcc-hero__sub {
  margin: clamp(0.5rem, 1vw, 0.85rem) 0 0;
  font-family: var(--font-family);
  font-weight: 500;                              /* Satoshi Medium           */
  font-size: clamp(1.05rem, 1.9vw, 2rem);        /* Figma 32px               */
  line-height: 1.3;
  color: var(--lcc-ink);
}

/* =========================================================================
   2 — SHOWCASE  (wallet mockup  +  glass message card)
   ========================================================================= */
/* note: .lcc-arc prefix beats the `.lcc-arc section{padding:0}` reset above */
.lcc-arc .lcc-showcase { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem); }
.lcc-showcase__grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);  /* Figma 443 : 800 */
  gap: clamp(2rem, 4.5vw, 5.5rem);
  align-items: center;
}
.lcc-showcase__wallet { order: 0; }              /* desktop: wallet left      */
.lcc-showcase__card   { order: 1; }              /* desktop: message right    */

/* ---- glass message card (Figma GlassCard 2560:4566) ---- */
.lcc-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2rem);              /* Figma 32px gap            */
  padding: clamp(1.75rem, 4vw, 4rem);            /* Figma 64px                */
  border: 1px solid var(--lcc-card-border);      /* Figma 1px #272727         */
  border-radius: clamp(24px, 3vw, 40px);         /* Figma 40px                */
  background:
    linear-gradient(180deg, rgba(28, 28, 32, 0.55) 0%, rgba(12, 12, 16, 0.55) 100%);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);                   /* Figma backdrop-blur 30    */
  text-align: center;
}
/* soft inner glows (Figma decorative Vector / Ellipse behind the coins) */
.lcc-card::before,
.lcc-card::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}
.lcc-card::before {
  width: 420px; height: 420px; top: -160px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 77, 255, 0.16), transparent 70%);
}
.lcc-card::after {
  width: 360px; height: 360px; bottom: -120px; right: -60px;
  background: radial-gradient(circle, rgba(27, 255, 156, 0.12), transparent 70%);
}
.lcc-card > * { position: relative; z-index: 1; }

.lcc-card__title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 900;                              /* Satoshi Black            */
  font-size: clamp(1.55rem, 2.9vw, 2.625rem);    /* Figma 42px               */
  line-height: 1.1;
  letter-spacing: -0.03em;                       /* Figma -1.26px            */
  color: var(--lcc-ink);
  max-width: 18ch;
}
.lcc-card__sub {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;                              /* Satoshi Regular          */
  font-size: clamp(1rem, 1.35vw, 1.25rem);       /* Figma 20px               */
  line-height: 1.5;
  color: var(--lcc-muted);
  max-width: 46ch;
}

/* ---- coin row (single inline SVG built from the real Figma assets:
   notched coin bodies, exact glyphs, the gradient brand token + concentric
   rings — see Figma 2560:4570). Vector, so it stays crisp at any size. ---- */
.lcc-coins {
  display: block;
  width: 100%;
  max-width: 600px;                              /* Figma row ~772 @ ~0.78    */
  height: auto;
  margin: clamp(0.25rem, 1vw, 0.75rem) auto;
}

/* ---- stats (Figma FloatingStats 2560:4631) ---- */
.lcc-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.lcc-stat { display: flex; align-items: baseline; gap: 0.6rem; }
.lcc-stat__num {
  font-family: var(--font-family);
  font-weight: 800;                              /* Satoshi Bold             */
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);       /* Figma 40px               */
  line-height: 1;
  color: var(--lcc-ink);
}
.lcc-stat__label {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.72rem, 1vw, 0.875rem);      /* Figma 14px               */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lcc-muted);
}

/* =========================================================================
   3 — WALLET MOCKUP  (rebuilt from Figma 2560:4557 for crisp responsive text)
   ========================================================================= */
.lcc-wallet { position: relative; }
.lcc-wallet::before {                            /* green glow behind panel  */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 78%; height: 46%; left: 4%; top: 28%;
  background: radial-gradient(circle, rgba(43, 209, 126, 0.28), transparent 70%);
  filter: blur(48px);
}
.lcc-wallet__panel {
  position: relative; z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  padding: clamp(0.9rem, 1.6vw, 1.35rem);
  border-radius: clamp(20px, 2.4vw, 28px);
  background: linear-gradient(180deg, #101117 0%, #0a0b10 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lcc-w-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.35rem 0.25rem 0.85rem;
}
.lcc-w-head--ghost { opacity: 0.45; }            /* faint "Fiat" section head */
.lcc-w-head--crypto { padding-top: 0.6rem; }
.lcc-w-head__title { font-family: var(--font-family); font-weight: 700; font-size: 1.1rem; color: #fff; }
.lcc-w-deposit {
  font-family: var(--font-family); font-weight: 600; font-size: 0.8rem;
  color: #fff; padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}

.lcc-w-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.4rem;
}
.lcc-w-row.is-faint { opacity: 0.4; }
.lcc-w-row.is-active {
  padding: 0.7rem 0.6rem;
  border: 1px solid rgba(43, 209, 126, 0.85);
  border-radius: 14px;
  background: rgba(43, 209, 126, 0.06);
  box-shadow: 0 0 26px rgba(43, 209, 126, 0.22);
}
.lcc-w-coin {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
}
.lcc-w-coin svg { width: 56%; height: 56%; color: #fff; }
.lcc-w-coin__txt { font-family: var(--font-family); font-weight: 800; font-size: 0.95rem; color: #fff; }
.lcc-w-name  { font-family: var(--font-family); font-weight: 700; font-size: 0.95rem; color: #fff; line-height: 1.2; }
.lcc-w-sub   { font-family: var(--font-family); font-weight: 400; font-size: 0.78rem; color: #6f6f78; line-height: 1.2; }
.lcc-w-meta  { margin-left: auto; text-align: right; }
.lcc-w-amt   { font-family: var(--font-family); font-weight: 600; font-size: 0.9rem; color: #fff; line-height: 1.25; }
.lcc-w-fiat  { font-family: var(--font-family); font-weight: 400; font-size: 0.75rem; color: #6f6f78; line-height: 1.25; }

.lcc-w-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.7rem; padding: 0.85rem 1rem;
  border-radius: 14px; background: rgba(255, 255, 255, 0.035);
}
.lcc-w-total__label { font-family: var(--font-family); font-weight: 600; font-size: 0.85rem; color: #9a9aa3; }
.lcc-w-total__value { font-family: var(--font-family); font-weight: 700; font-size: 1rem; color: #fff; }

/* brand coin badges (wallet) */
.lcc-w-coin--btc  { background: #f7931a; }
.lcc-w-coin--usdt { background: #26a17b; }
.lcc-w-coin--bnb  { background: #f3ba2f; }
.lcc-w-coin--avax { background: #e84142; }
.lcc-w-coin--mxn  { background: #128a3d; }

/* =========================================================================
   4 — RESPONSIVE
   ========================================================================= */
@media (max-width: 880px) {
  .lcc-showcase__grid { grid-template-columns: 1fr; gap: clamp(2rem, 7vw, 3rem); }
  .lcc-showcase__card   { order: 0; }            /* message first on mobile   */
  .lcc-showcase__wallet { order: 1; }
  .lcc-card { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .lcc-coins { max-width: 460px; }
}
@media (max-width: 400px) {
  .lcc-w-deposit { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
}
