/* mSamex — AI landing variant ("Singularity" language). Loads AFTER landing.css. */

html { scroll-behavior: smooth; }
body { background: var(--bg); }
.btn.ghost.sm { padding: 7px 12px; font-size: 13px; }

.ai-navlink { display: inline-flex; align-items: center; gap: 6px; color: var(--mint) !important; }
.ai-navdot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: aidot 2.4s ease-in-out infinite; }
@keyframes aidot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ===== hero ===== */
.aihero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(60% 90% at 78% 40%, rgba(0,214,143,0.07), transparent 70%),
  radial-gradient(50% 70% at 15% 90%, rgba(0,214,143,0.04), transparent 70%), var(--bg); }
.aihero .chart-bg { position: absolute; inset: 0; pointer-events: none; }
.aihero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 72px 40px 84px; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 32px; align-items: center; }
.aikicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; }
.aikicker .x { color: var(--snow-mute); margin: 0 4px; }
.aihero h1 { font-size: clamp(46px, 4.8vw, 74px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; margin: 0 0 20px; text-wrap: balance; }
.aihero h1 .mint { color: var(--mint); }
.aihero .lede { font-size: 18px; line-height: 1.55; color: var(--snow-dim); max-width: 46ch; margin: 0 0 28px; }
.aihero-copy { animation: heroin 0.9s var(--ease-decel) both; }
@keyframes heroin { from { opacity: 0; transform: translateY(22px); } }

/* Sam constellation field */
.samfield { position: relative; height: 560px; perspective: 900px; }
#heroparticles { position: absolute; inset: 0; width: 100%; height: 100%; }
#samhero { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 24px 70px rgba(0,214,143,0.28)); animation: samfloat 7s ease-in-out infinite; will-change: transform; z-index: 2; }
@keyframes samfloat { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 12px)); } }

.chip-float { position: absolute; z-index: 3; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 0.25s var(--ease-decel); }
.chip-float > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 74%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--e-3); animation: cfloat 6s ease-in-out infinite; }
.cf-1 { left: -4%; top: 9%; } .cf-1 > div { animation-delay: -1.2s; }
.cf-2 { right: -3%; top: 30%; } .cf-2 > div { animation-delay: -3.4s; }
.cf-3 { left: 2%; bottom: 4%; max-width: 300px; } .cf-3 > div { animation-delay: -5s; }
@keyframes cfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cfk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); border-radius: 5px; padding: 2px 6px; flex-shrink: 0; }
.cft { font-size: 13px; color: var(--snow-dim); } .cft b { font-weight: 600; }

/* ===== AI ability cards ===== */
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.ai-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transform-style: preserve-3d; transition: border-color var(--d-base), box-shadow var(--d-base); overflow: hidden; }
.ai-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--mint-wash), transparent 70%); opacity: 0; transition: opacity var(--d-base); pointer-events: none; }
.ai-card:hover { border-color: color-mix(in srgb, var(--mint) 45%, var(--line)); box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--mint-wash); }
.ai-card:hover::before { opacity: 1; }
.ai-card .fic { width: 44px; height: 44px; border-radius: 10px; background: var(--mint-wash); color: var(--mint); display: grid; place-items: center; margin-bottom: 18px; }
.ai-card .fic svg { width: 22px; height: 22px; }
.ai-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.ai-card p { font-size: 13.5px; color: var(--snow-dim); line-height: 1.55; margin: 0 0 16px; }
.ai-card .frow { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; padding: 8px 0 0; border-top: 1px solid var(--line); }
.ai-card .frow span:first-child { color: var(--mute); }
.ai-tilt, .ai-card { will-change: transform; }

/* ===== terminal demo ===== */
.term { margin-top: 44px; background: var(--elevated); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--e-4); }
.term-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.term-pair { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.chip-perp { font-size: 10px; color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); border-radius: 4px; padding: 2px 6px; }
.term-price { font-size: 15px; font-weight: 600; }
.term-chg { font-size: 13px; }
.term-live { margin-left: auto; margin-inline-start: auto; display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mint); }
.term-live .dot, .dc-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: aidot 2s infinite; }
.term-body { display: grid; grid-template-columns: 1fr 360px; height: 448px; }
.term-chart-wrap { position: relative; padding: 16px 8px 12px 16px; height: 400px; }
.term-chart { width: 100%; height: 100%; }
.marker { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-wash); animation: ping 2.2s ease-out infinite; }
.marker.m2 { background: var(--warn); box-shadow: 0 0 0 4px rgba(240,185,11,0.14); animation-delay: -1.1s; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--mint-glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.term-sam { border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; background: var(--surface); }
.term-sam-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term-sam-head b { display: block; font-size: 14px; }
.term-sam-head small { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.06em; }
.term-feed { flex: 1; min-height: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-end; }
.tmsg { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--elevated); font-size: 13px; line-height: 1.5; color: var(--snow-dim); animation: msgin 0.4s var(--ease-decel) both; }
.tmsg.out { opacity: 0; transform: translateY(-8px); transition: all 0.3s; }
@keyframes msgin { from { opacity: 0; transform: translateY(10px); } }
.tmsg .tk { display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; padding: 2px 6px; border-radius: 4px; margin-bottom: 7px; }
.tmsg .tk.insight { color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); }
.tmsg .tk.alert { color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.tmsg .tk.risk { color: var(--info); border: 1px solid color-mix(in srgb, var(--info) 45%, transparent); }
.tmsg .caret { display: inline-block; width: 7px; height: 13px; background: var(--mint); vertical-align: -2px; margin-inline-start: 2px; animation: aidot 0.8s steps(2) infinite; }

/* ===== trust strip / cta ===== */
.trust-strip { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.trust-strip > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--snow-dim); }
.trust-strip .ti { width: 32px; height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--mint); flex-shrink: 0; }
.trust-strip .ti svg { width: 16px; height: 16px; }
#ctasam { display: flex; justify-content: center; margin-bottom: 18px; filter: drop-shadow(0 16px 50px rgba(0,214,143,0.25)); }
.cta-row { display: flex; gap: 12px; justify-content: center; }
.btn.ghost.lg { padding: 13px 26px; font-size: 15px; }

/* hero dynamic meta chips */
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 26px; }
.hero-meta span { font-size: 11.5px; letter-spacing: 0.04em; color: var(--snow-dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hero-meta span b { color: var(--mint); font-weight: 600; }

/* ===== ecosystem: constellation + services ===== */
.eco-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: stretch; margin-top: 44px; }
.constellation { position: relative; min-height: 480px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.const-label { position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 4px 8px; cursor: pointer; font-family: var(--font); transition: opacity 0.3s; will-change: transform, opacity; }
.const-label b { font-size: 13px; font-weight: 600; color: var(--snow); letter-spacing: -0.01em; }
.const-label.soon b { color: var(--snow-mute); }
.const-label .cl-soon { font-family: var(--mono); font-size: 8px; letter-spacing: 0.14em; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 4px; padding: 1px 5px; }
.const-label:hover b { color: var(--mint); }
.const-tip { position: absolute; z-index: 4; width: 210px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--mint) 35%, var(--line)); background: color-mix(in srgb, var(--elevated) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--e-3); pointer-events: none; text-decoration: none; }
.const-tip b { display: block; font-size: 13px; color: var(--snow); margin-bottom: 3px; }
.const-tip b .soon { font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--warn); margin-inline-start: 6px; }
.const-tip span { display: block; font-size: 11.5px; line-height: 1.45; color: var(--snow-dim); }
.const-tip em { display: block; font-style: normal; font-size: 11px; color: var(--mint); margin-top: 5px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--snow); text-decoration: none; transition: border-color var(--d-base), box-shadow var(--d-base), transform var(--d-base) var(--ease-decel); overflow: hidden; }
.svc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--mint) 50%, var(--line)); box-shadow: 0 16px 44px rgba(0,0,0,0.45), 0 0 0 1px var(--mint-wash), 0 0 24px rgba(0,214,143,0.10); }
.svc-top { display: flex; align-items: center; gap: 10px; }
.svc-top .fic { width: 36px; height: 36px; border-radius: 9px; margin: 0; background: var(--mint-wash); color: var(--mint); display: grid; place-items: center; flex-shrink: 0; }
.svc-top .fic svg { width: 18px; height: 18px; }
.svc-top h3 { font-size: 15.5px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.svc-top .arrow { margin-inline-start: auto; color: var(--mute); font-size: 15px; transition: transform var(--d-fast), color var(--d-fast); }
.svc:hover .arrow { transform: translateX(3px); color: var(--mint); }
.svc p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--snow-dim); }
.svc .why { font-size: 11px; color: var(--mute); line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--d-base) var(--ease-decel), opacity var(--d-base); }
.svc:hover .why { max-height: 44px; opacity: 1; }
.svc .stat { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--mint); display: flex; justify-content: space-between; }
.svc .stat i { font-style: normal; color: var(--mute); }
.svc.soon { opacity: 0.62; }
.svc.soon:hover { opacity: 0.85; border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); box-shadow: none; }
.svc .soon-badge { position: absolute; top: 12px; inset-inline-end: 12px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 999px; padding: 2px 8px; }

/* ===== why grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.why-card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.why-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--snow-dim); flex: 1; }
.why-stat { font-size: 12px; color: var(--mint); border-top: 1px solid var(--line); padding-top: 10px; }
.liq-mini { height: 46px; border-top: 1px solid var(--line); padding-top: 10px; display: flex; align-items: flex-end; gap: 2px; }
.liq-mini i { flex: 1; border-radius: 2px 2px 0 0; background: var(--down); opacity: 0.8; min-height: 3px; }
.liq-mini i.g { background: var(--up); }

/* ===== steps ===== */
.steps { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px 12px 14px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--mint-wash); color: var(--mint); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.step-ic { color: var(--mint); display: grid; place-items: center; }
.step-ic svg { width: 17px; height: 17px; }
.step b { font-size: 14px; font-weight: 600; }
.step-arrow { color: var(--mute); font-size: 17px; }
.steps-cta { display: flex; justify-content: center; margin-top: 26px; }

/* ===== live markets segment ===== */
.mkt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mkt-all { font-size: 14px; font-weight: 500; color: var(--mint); white-space: nowrap; padding-bottom: 6px; }
.mkt-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.mkt-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 14px; }
.mkt-cat { position: relative; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; cursor: pointer; color: var(--snow); font-family: var(--font); transition: border-color var(--d-base), background var(--d-base), transform var(--d-base) var(--ease-decel); overflow: hidden; }
.mkt-cat:hover { transform: translateY(-2px); border-color: var(--mute); }
.mkt-cat.on { border-color: color-mix(in srgb, var(--mint) 55%, var(--line)); background: color-mix(in srgb, var(--mint-wash) 60%, var(--surface)); }
.mkt-cat.on::after { content: ""; position: absolute; inset-inline-start: 20px; bottom: 0; width: 46px; height: 2px; background: var(--mint); border-radius: 2px; }
.mkt-cat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mkt-cat-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--mint-wash); color: var(--mint); display: grid; place-items: center; }
.mkt-cat-ic svg { width: 18px; height: 18px; }
.mkt-cat-top b { font-size: 15px; letter-spacing: -0.01em; }
.mkt-cat-top small { font-family: var(--mono); font-size: 10.5px; color: var(--mute); display: block; margin-top: 2px; }
.mkt-breadth { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: var(--elevated); margin-bottom: 8px; }
.mkt-breadth i { height: 100%; transition: width 0.6s var(--ease-standard); }
.mkt-breadth .bu { background: var(--up); } .mkt-breadth .bd { background: var(--down); opacity: 0.85; }
.mkt-cat-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--mute); }

.mkt-table { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.mkt-row { display: grid; grid-template-columns: 44px 1.15fr 0.9fr 0.7fr 1.2fr auto; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); animation: rowin 0.4s var(--ease-decel) both; position: relative; transition: background var(--d-fast); }
.mkt-row:last-child { border-bottom: none; }
.mkt-row:hover { background: var(--elevated); }
.mkt-row:hover::before { content: ""; position: absolute; inset-inline-start: 0; top: 20%; bottom: 20%; width: 2px; background: var(--mint); border-radius: 2px; }
@keyframes rowin { from { opacity: 0; transform: translateY(10px); } }
.mkt-pair { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mkt-pair b { font-size: 14.5px; }
.mkt-pair .perp { font-family: var(--mono); font-size: 9.5px; color: var(--mute); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.mkt-pick { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--mint); border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.mkt-pick .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.mkt-price { font-family: var(--mono); font-size: 14px; font-weight: 600; border-radius: 6px; padding: 3px 8px; margin-inline-start: -8px; width: fit-content; transition: background 0.5s, color 0.5s; }
.mkt-price.fl-up { background: var(--up-wash); color: var(--up); transition: none; }
.mkt-price.fl-down { background: var(--down-wash); color: var(--down); transition: none; }
.mkt-chg { font-family: var(--mono); font-size: 13px; }
.mkt-spark { height: 30px; display: flex; align-items: center; }
.mkt-spark svg { width: 100%; max-width: 190px; height: 30px; overflow: visible; }
.mkt-trade { justify-self: end; border: 1px solid var(--line); background: transparent; color: var(--snow); border-radius: 8px; font-family: var(--font); font-size: 13px; font-weight: 600; padding: 7px 16px; cursor: pointer; transition: all var(--d-fast); }
.mkt-row:hover .mkt-trade { background: var(--mint); border-color: var(--mint); color: var(--ink); }
@media (max-width: 1024px) {
  .mkt-cats { grid-template-columns: 1fr; }
  .mkt-row { grid-template-columns: 40px 1.2fr 1fr 0.8fr auto; }
  .mkt-spark { display: none; }
}
@media (max-width: 560px) {
  .mkt-row { grid-template-columns: 36px 1.3fr 1fr auto; padding: 12px 14px; }
  .mkt-chg { display: none; }
  .mkt-pick { display: none; }
}

/* teaser modal (coming-soon services) */
.teaser-ov { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,10,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; animation: chatin 0.25s var(--ease-decel); }
.teaser { position: relative; width: min(400px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px 26px; text-align: center; box-shadow: var(--e-4); }
.teaser-sam { display: flex; justify-content: center; margin-bottom: 12px; filter: drop-shadow(0 10px 30px rgba(0,214,143,0.25)); }
.teaser h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: center; gap: 10px; }
.teaser h3 .soon-badge { position: static; }
.teaser p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.55; color: var(--snow-dim); }
.teaser .btn.pri { width: 100%; }
.teaser-x { position: absolute; top: 12px; inset-inline-end: 12px; background: none; border: none; color: var(--mute); font-size: 14px; cursor: pointer; padding: 6px; }
.teaser-x:hover { color: var(--snow); }

/* ===== scroll reveal ===== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-decel), transform 0.7s var(--ease-decel); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ===== Sam dock ===== */
.samdock { position: fixed; inset-inline-end: 26px; bottom: 26px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sambtn { width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(120% 120% at 30% 20%, #1C2127, #0B0E11); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: var(--e-3), 0 0 24px rgba(0,214,143,0.12); transition: transform var(--d-base) var(--ease-decel), box-shadow var(--d-base); }
.sambtn:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--e-4), 0 0 34px rgba(0,214,143,0.25); }
.sambtn svg { display: block; }
.samchat { width: 340px; height: 430px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--e-4); display: none; flex-direction: column; overflow: hidden; transform-origin: bottom right; }
.samchat.open { display: flex; animation: chatin 0.3s var(--ease-decel); }
@keyframes chatin { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.dc-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dc-head b { font-size: 14px; }
.dc-status { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.08em; }
.dc-x { margin-left: auto; margin-inline-start: auto; background: none; border: none; color: var(--mute); cursor: pointer; font-size: 13px; padding: 4px; }
.dc-x:hover { color: var(--snow); }
.dc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dc-m { max-width: 82%; padding: 10px 13px; border-radius: 13px; font-size: 13.5px; line-height: 1.5; animation: msgin 0.35s var(--ease-decel) both; }
.dc-m.sam { background: var(--elevated); border: 1px solid var(--line); color: var(--snow-dim); align-self: flex-start; border-start-start-radius: 4px; }
.dc-m.me { background: var(--mint); color: var(--ink); align-self: flex-end; border-end-end-radius: 4px; }
.dc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.dc-form input { flex: 1; background: var(--elevated); border: 1px solid var(--line); border-radius: 9px; color: var(--snow); padding: 10px 12px; font-size: 13.5px; font-family: var(--font); }
.dc-form input:focus { outline: none; border-color: var(--mint); }
.dc-form button { width: 40px; border: none; border-radius: 9px; background: var(--mint); color: var(--ink); font-size: 15px; cursor: pointer; }

/* footer: 6 columns on the AI landing (adds Ecosystem) */
.lfoot-grid { grid-template-columns: 1.3fr repeat(5, 1fr); }
@media (max-width: 900px) { .lfoot-grid { grid-template-columns: 1fr 1fr; } }

/* footer socials */
.lsocials { display: flex; gap: 8px; margin-top: 18px; }
.lsocials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--snow-mute); transition: all var(--d-fast); }
.lsocials a svg { width: 16px; height: 16px; }
.lsocials a:hover { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 50%, var(--line)); transform: translateY(-2px); }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .aihero-inner { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .samfield { height: 440px; }
  .cf-1 { left: 0; } .cf-2 { right: 0; } .cf-3 { left: 4%; }
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .eco-wrap { grid-template-columns: 1fr; }
  .constellation { min-height: 380px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .term-body { grid-template-columns: 1fr; height: auto; grid-template-rows: 330px 320px; }
  .term-chart-wrap { height: auto; }
  .term-sam { border-inline-start: none; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .ai-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .why-grid::-webkit-scrollbar { display: none; }
  .why-card { flex: 0 0 78%; scroll-snap-align: start; }
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: stretch; }
  .cta-row { flex-direction: column; align-items: center; }
  .samchat { width: min(340px, calc(100vw - 40px)); }
}

/* RTL */
[dir="rtl"] .samchat { transform-origin: bottom left; }
