/* Agent District prototype — homepage.
   Compact hero, industry bento, project catalogue cards, Build & Learn and Community.
   The hero is deliberately short so the industry tiles are visible without scrolling on a laptop. */

/* Hero */
.hero { padding-top: 132px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hero h1 { color: var(--soft); max-width: 13ch; }
.hero h1 span { color: var(--ink); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 26px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; letter-spacing: -.012em; }
.hero-cta { display: flex; gap: 10px; flex: none; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-facts b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
#industries.section { padding-top: 56px; }

/* Industry bento — each tile is a tinted destination with its own drawn scene. */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 248px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--t); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile-top { display: grid; gap: 8px; max-width: 24ch; }
.tile-top b { font-size: 20px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.tile-top span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.tile-art { position: absolute; z-index: -1; right: -6px; bottom: -6px; width: 54%; transition: transform .6s var(--ease); transform-origin: 80% 100%; }
.tile:hover .tile-art { transform: scale(1.04); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; }
.tile-count { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.tile-count.has { background: var(--ink); color: #fff; }
.tile-go { width: 38px; height: 38px; border-radius: 50%; background: #fff var(--arrow) center/18px no-repeat; opacity: 0; transform: translate(-6px, 6px); transition: opacity .25s, transform .3s var(--ease); position: absolute; right: 20px; top: 20px; box-shadow: var(--shadow-1); }
.tile:hover .tile-go, .tile:focus-visible .tile-go { opacity: 1; transform: none; }
.tile-xl { grid-column: span 2; grid-row: span 2; padding: 34px; }
.tile-xl .tile-top { max-width: 28ch; gap: 12px; }
.tile-xl .tile-top b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1; }
.tile-xl .tile-top span { font-size: 17px; }
.tile-xl .tile-art { width: 84%; right: -10px; bottom: -10px; }
.tile-wide { grid-column: span 2; }
.tile-wide .tile-top b { font-size: 26px; letter-spacing: -.03em; }
.tile-wide .tile-top span { font-size: 15px; }
.tile-wide .tile-art { width: 48%; right: 10px; bottom: 6px; }

/* Project catalogue */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); padding: 10px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); }
.pcard-top { height: 208px; border-radius: 24px; background: var(--t); overflow: hidden; position: relative; }
.pcard-body { padding: 20px 16px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 550; color: var(--d); }
.pcard h3 { font-size: 23px; letter-spacing: -.028em; line-height: 1.12; }
.pcard-problem { font-size: 15px; line-height: 1.45; color: var(--ink); }
.pcard-problem small { display: block; font-size: 12.5px; font-weight: 550; color: var(--muted); margin-bottom: 3px; }
.pcard-sum { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.pcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.pcard-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--soft); margin: 0 4px; }
.pcard-go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink) var(--arrow-w) center/18px no-repeat; transition: transform .3s var(--ease); flex: none; }
.pcard:hover .pcard-go { transform: translateX(3px); }
:root { --arrow-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.empty { grid-column: 1 / -1; border-radius: var(--r-xl); background: var(--t, var(--surface)); padding: 56px 32px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.empty p { color: var(--ink-2); max-width: 44ch; }
.empty .btn { margin-top: 8px; }

/* Card previews — miniature fragments of the real experience, not stock artwork. */
.pv { position: absolute; inset: 0; padding: 22px; font-size: 13px; line-height: 1.4; }
.pv-chat { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pv-b { max-width: 78%; padding: 10px 14px; border-radius: 18px; box-shadow: 0 6px 16px -8px rgba(12, 14, 18, .18); }
.pv-guest { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.pv-agent { background: #fff; border-bottom-left-radius: 6px; }
.pv-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--d); color: #fff; font-weight: 550; font-size: 12.5px; }
.pv-pill .ic { width: 15px; height: 15px; }
.pv-plan { padding: 22px 22px 0; }
.pv-sheet { border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(12, 14, 18, .3); transform: rotate(-2deg) translateY(6px); transform-origin: 0 0; }
.pv-plan .zone[data-zone="A"] .hl { opacity: 1; }
.pv-float { position: absolute; right: 18px; bottom: 18px; background: var(--ink); padding: 0 12px; box-shadow: var(--shadow-2); }
.pv-float span { opacity: .6; font-weight: 500; margin-left: 4px; }
.pv-ops { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.pv-row { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(12, 14, 18, .2); }
.pv-row i { width: 10px; height: 10px; border-radius: 50%; background: var(--d); margin: auto; }
.pv-row b { font-weight: 600; }
.pv-row span { color: var(--muted); text-align: right; font-size: 12.5px; }
.pv-row.wait { background: var(--ink); color: #fff; }
.pv-row.wait i { background: none; box-shadow: 0 0 0 2px var(--m); animation: pulse 1.8s var(--ease) infinite; }
.pv-row.wait span { color: rgba(255, 255, 255, .7); }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px var(--m), 0 0 0 7px rgba(255, 255, 255, .12); } }

/* The synthetic plan sheet (also used inside the demo stage). */
.sheet-svg, .pv-sheet svg, .canvas svg { width: 100%; height: auto; }
svg .sheet { fill: #fff; stroke: var(--line-2); }
svg .mod { fill: var(--d, #4c6b1e); opacity: .8; }
svg .inv { fill: none; stroke: var(--d, #4c6b1e); stroke-width: 1.6; }
svg .rule { stroke: var(--line-2); }
svg text { font: 500 9px var(--mono); fill: var(--muted); letter-spacing: .04em; }
svg text.title { font: 600 11px var(--font); fill: var(--ink); letter-spacing: 0; }
svg text.lbl { font-size: 8px; } svg text.dark { fill: var(--ink-2); font-size: 8.5px; letter-spacing: 0; }
svg .hl { fill: var(--m, #bdcf7d); opacity: 0; transition: opacity .4s; }
svg .zone.lit .hl { opacity: .45; }

/* Build & Learn */
.moves { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: m; border-top: 1px solid var(--line-2); margin-bottom: 20px; }
.moves li { counter-increment: m; padding: 24px 24px 32px 0; }
.moves li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.moves li::before { content: "0" counter(m); display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 36px; font-variant-numeric: tabular-nums; }
.moves b { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.moves p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .card { display: flex; flex-direction: column; gap: 12px; }
.duo .card > p:not(.kicker):not(.fine) { color: var(--ink-2); max-width: 46ch; }
.duo h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; max-width: 18ch; }
.brief-teaser { background: var(--stage); color: #fff; box-shadow: none; }
.brief-teaser .kicker { color: rgba(255, 255, 255, .55); }
.brief-teaser > p:not(.kicker) { color: rgba(255, 255, 255, .72) !important; }
.brief-teaser pre { margin-top: 12px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--stage-line); font: 13px/1.7 var(--mono); color: rgba(255, 255, 255, .7); white-space: pre-wrap; }
.brief-teaser pre b { color: #fff; } .brief-teaser pre i { color: #9db7ff; font-style: normal; }
.platform .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 auto; align-items: start; }
.platform .split > div { background: var(--bg); border-radius: 20px; padding: 20px; }
.tagline { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.platform li { font-size: 14.5px; color: var(--ink-2); padding: 9px 0; border-top: 1px solid var(--line); }

/* Community */
.community { background: var(--surface); border-radius: var(--r-xl); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.community-copy p:not(.kicker) { color: var(--ink-2); margin-top: 16px; max-width: 44ch; }
.community-copy .fine { color: var(--muted) !important; }
.ways { display: grid; gap: 10px; }
.ways button { position: relative; display: grid; gap: 2px; padding: 20px 64px 20px 22px; border-radius: 20px; background: var(--bg); transition: background .2s, transform .3s var(--ease); width: 100%; }
.ways button:hover { background: var(--sunk); transform: translateX(4px); }
.ways b { font-size: 17px; letter-spacing: -.015em; font-weight: 600; }
.ways span { font-size: 14px; color: var(--muted); }
.ways i { position: absolute; right: 18px; top: 50%; margin-top: -18px; width: 36px; height: 36px; border-radius: 50%; background: #fff var(--arrow) center/16px no-repeat; box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .moves { grid-template-columns: repeat(2, 1fr); }
  .moves li:nth-child(3) { padding-left: 0; border-left: 0; }
  .moves li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .duo, .community { grid-template-columns: 1fr; }
  .community { padding: 40px; gap: 32px; }
}
@media (max-width: 680px) {
  .hero { padding-top: 112px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 12px; }
  .tile { min-height: 196px; padding: 24px; gap: 20px; }
  .tile-xl { grid-column: auto; grid-row: auto; min-height: 340px; }
  .tile-wide { grid-column: auto; }
  .tile-top, .tile-wide .tile-top { max-width: 60%; }
  .tile-xl .tile-top { max-width: 100%; }
  .tile-top b, .tile-wide .tile-top b { font-size: 21px; }
  .tile-top span, .tile-wide .tile-top span { font-size: 14px; }
  .tile-art, .tile-wide .tile-art { width: 40%; right: 6px; bottom: 6px; }
  .tile-xl .tile-art { width: 78%; right: -6px; bottom: -6px; }
  .tile-go { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: 1fr; }
  .moves { grid-template-columns: 1fr; }
  .moves li, .moves li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .moves li:first-child { border-top: 0; }
  .moves li::before { margin-bottom: 10px; }
  .platform .split { grid-template-columns: 1fr; }
  .community { padding: 28px 22px; border-radius: var(--r-lg); }
  .duo h3 { font-size: 24px; }
}
