/* ============================================================================
   CoinLobster homepage compositions (docs/cl-design.txt). Asymmetric, oversized,
   fewer cards (§7). Requires ai-first.css + cl-deep.css. Homepage-scoped (.hd-*).
   ========================================================================== */

/* ── HERO: headline + the lobster's sonar of the market ─────────────────── */
.hd-hero { position: relative; padding: clamp(56px, 8vw, 116px) 24px clamp(40px, 6vw, 88px); overflow: clip;
    background:
        radial-gradient(80% 60% at 78% 42%, rgba(51,194,200,0.06), transparent 60%),
        radial-gradient(120% 80% at 50% -10%, rgba(255,246,234,0.04), transparent 58%),
        linear-gradient(180deg, #0A1826 0%, #071320 60%, #05101C 100%); }
.hd-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(130% 120% at 78% 45%, transparent 52%, rgba(3,8,14,0.5) 100%); }
.hd-hero > * { position: relative; z-index: 1; }
.hd-hero__grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(20px, 3vw, 56px); align-items: center; }
.hd-hero__h1 { font-family: var(--ai-disp); font-weight: 800; color: var(--ai-ink); letter-spacing: -0.04em; line-height: 0.96;
    font-size: clamp(3rem, 6.9vw, 6rem); text-align: left; max-width: none; margin: 0; text-wrap: balance; }
.hd-hero__sub { margin: 26px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.5; color: var(--ai-body); }
.hd-hero .aihero__cta { justify-content: flex-start; margin-top: 32px; }
.hd-hero .aihero__clients { justify-content: flex-start; margin-top: 26px; }

/* the radar: a square detection field, the lobster at its heart */
.hd-radar { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; justify-self: center; }
.hd-radar__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hd-radar__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 128px; z-index: 3;
    filter: drop-shadow(0 0 34px rgba(51,194,200,0.35)) drop-shadow(0 14px 26px rgba(0,0,0,0.55)); }
.hd-radar__core::after { content: ""; position: absolute; left: 50%; top: 54%; width: 220%; height: 220%; transform: translate(-50%,-50%); z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(51,194,200,0.16), rgba(238,90,44,0.08) 38%, transparent 66%); }
/* signals surfaced by the sweep (JS sets left/top %, adds .is-on) */
.hd-sonar-label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; z-index: 4;
    font-family: var(--ai-mono); font-size: .8rem; color: var(--ai-ink); padding: 7px 11px; border-radius: 9px;
    background: rgba(8,19,32,0.86); border: 1px solid rgba(238,90,44,0.4); box-shadow: 0 8px 22px -8px rgba(0,0,0,0.8);
    opacity: 0; transition: opacity .5s var(--ai-ease), transform .5s var(--ai-ease); backdrop-filter: blur(3px); }
.hd-sonar-label.is-on { opacity: 1; }
.hd-sonar-label b { color: var(--ai-orange-lt); font-weight: 800; margin-right: 5px; }
.hd-sonar-label i { font-style: normal; font-weight: 700; }
.hd-radar__status { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ai-mono); font-size: .72rem; color: var(--ai-dim); white-space: nowrap; }
.hd-radar__pip { width: 7px; height: 7px; border-radius: 50%; background: var(--cl-teal); box-shadow: 0 0 8px 1px rgba(51,194,200,0.7); animation: hd-pip 1.8s ease-in-out infinite; }
@keyframes hd-pip { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hd-radar__pip, .hd-radar__core { animation: none; } }

/* ── DEMO band ──────────────────────────────────────────────────────────── */
.hd-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ai-dim); }
.hd-live__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ai-up); box-shadow: 0 0 8px 1px rgba(55,217,138,0.6); }

/* ── "YOUR AI UNDERSTANDS MARKETS" : asymmetric, live data appears ──────── */
.hd-static__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hd-static__now { color: var(--ai-orange-lt); margin-top: 6px; }
.hd-static__viz { position: relative; min-height: 360px; display: grid; place-items: center; }
.hd-brain { position: relative; width: 176px; height: 176px; border-radius: 50%; display: grid; place-items: center; text-align: center;
    border: 1px solid var(--ai-hair-bold); background: radial-gradient(circle, rgba(255,246,234,0.05), transparent 70%);
    box-shadow: 0 0 60px -20px rgba(255,246,234,0.14); }
.hd-brain::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(255,246,234,0.08); }
.hd-brain__core { font-family: var(--ai-mono); font-size: .72rem; color: var(--ai-dim); max-width: 116px; line-height: 1.55; }
.hd-live-tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 100px; background: rgba(8,19,32,0.9);
    border: 1px solid rgba(238,90,44,0.4); font-family: var(--ai-mono); font-size: .76rem; color: var(--ai-ink); white-space: nowrap;
    opacity: 0; animation: hd-tag-in .7s var(--ai-ease) forwards; box-shadow: 0 12px 26px -12px rgba(0,0,0,0.8); backdrop-filter: blur(3px); }
.hd-live-tag--1 { top: 6%; left: 0; animation-delay: .3s; }
.hd-live-tag--2 { top: 40%; right: 0; animation-delay: .6s; }
.hd-live-tag--3 { bottom: 30%; left: 0; animation-delay: .9s; }
.hd-live-tag--4 { bottom: 4%; right: 3%; animation-delay: 1.2s; }
@keyframes hd-tag-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hd-live-tag { opacity: 1 !important; animation: none !important; } }

/* ── JOB stage: tabs + big changing environment ─────────────────────────── */
.hd-jobs { margin-top: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.hd-jobstage { display: grid; grid-template-rows: auto auto; gap: 16px; }
.hd-jobcopy { }
.hd-jobcopy .aijob-panel__desc { color: var(--ai-body); font-size: 1.05rem; line-height: 1.5; margin: 0 0 14px; }

/* ── SHOWCASES: varied sizes, not four identical cards ──────────────────── */
.hd-showcases { margin-top: 44px; display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(200px, auto); gap: 20px; }
.hd-show { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--ai-hair); background: var(--ai-panel);
    display: flex; padding: clamp(22px, 3vw, 34px); gap: 24px; }
.hd-show__copy { flex: 1 1 46%; min-width: 0; align-self: center; }
.hd-show__copy h3 { margin: 0 0 10px; }
.hd-show__copy p { color: var(--ai-body); font-size: .98rem; line-height: 1.5; margin: 0 0 16px; max-width: 40ch; }
.hd-show__vis { flex: 1 1 54%; min-width: 0; border-radius: 14px; background: var(--cl-depth-2, #050D17); border: 1px solid var(--ai-hair-soft); padding: 16px; position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.hd-show__tag { position: absolute; left: 16px; bottom: 12px; font-family: var(--ai-mono); font-size: .74rem; color: var(--ai-dim); }
.hd-show--wide { grid-column: 1 / 2; }           /* Whales: wide */
.hd-show--tall { grid-column: 2 / 3; grid-row: 1 / 3; flex-direction: column; }  /* Smart Money: tall, portrait */
.hd-show--tall .hd-show__vis { margin-top: 8px; }
.hd-show--terminal { grid-column: 1 / 2; }       /* Terminal */
.hd-show--radar { grid-column: 1 / 3; }          /* Radar: full-width sonar */
.hd-show--radar .hd-show__vis { overflow: hidden; }
.hd-show__vis--radar .hd-radar-rows { position: relative; z-index: 2; }
.wbar { display: flex; align-items: flex-end; gap: 6px; height: 130px; width: 100%; }
.wbar span { flex: 1; border-radius: 4px 4px 0 0; background: var(--ai-up-soft); border-top: 2px solid var(--ai-up); }
.wbar span.sell { background: var(--ai-down-soft); border-top-color: var(--ai-down); }

/* ── PROMPT STRIP ───────────────────────────────────────────────────────── */
.hd-promptstrip { padding: clamp(48px, 7vw, 96px) 24px; position: relative; }
.hd-promptstrip__label { font-family: var(--ai-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ai-orange-lt); margin: 0 0 10px; }
.hd-promptstrip__q { font-family: var(--ai-disp); font-weight: 600; font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--ai-ink); margin: 0 auto 22px; max-width: 24ch; letter-spacing: -0.02em; transition: opacity .35s var(--ai-ease); }

/* ── FINAL CTA: the big mascot moment ───────────────────────────────────── */
.hd-final { position: relative; padding: clamp(80px, 12vw, 168px) 24px clamp(64px, 8vw, 120px); text-align: center; overflow: clip; }
.hd-final__in { max-width: 760px; margin: 0 auto; position: relative; }
.hd-final__mascot { width: 240px; margin: 0 auto 8px; }
.hd-final__h { font-size: clamp(3rem, 8vw, 6rem); margin: 0; }
.hd-final__sub { margin: 20px auto 32px; max-width: 40ch; font-size: 1.15rem; color: var(--ai-body); }
.ai-btn--lg { padding: 18px 34px; font-size: 1.12rem; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
    .hd-hero__grid { grid-template-columns: 1fr; }
    .hd-hero__h1, .hd-hero__sub { text-align: left; }
    .hd-hero .aihero__cta, .hd-hero .aihero__clients { justify-content: flex-start; }
    .hd-scene { margin-top: 12px; }
    .hd-scene__mascot { right: 0; bottom: -30px; width: 130px; }
    .hd-static__in { grid-template-columns: 1fr; }
    .hd-static__viz { min-height: 300px; margin-top: 16px; }
    .hd-jobs { grid-template-columns: 1fr; }
    .aijobs__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .aijob-tab { white-space: nowrap; }
    .hd-showcases { grid-template-columns: 1fr; }
    .hd-show--wide, .hd-show--tall, .hd-show--terminal, .hd-show--radar { grid-column: 1 / 2; grid-row: auto; }
    .hd-show { flex-direction: column; }
}
