/* Components Home — VAYA LABS PREMIUM
   Homepage-specific components only */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes edge-flow { to { stroke-dashoffset: -12; } }
@keyframes ping { 0% { opacity: .85; transform: scale(.55); } 70% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════
   HERO — Light Surface with Soft Glow
   ══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 85% 15%, rgba(30, 95, 216, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: start;
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: var(--space-5); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { margin-top: 0; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero .cap-tags { margin-top: var(--space-7); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--text-muted); }

/* Hero Flow Diagram */
.hero-flow { margin: 0; align-self: start; }
.hero-flow svg { width: 100%; height: auto; display: block; }
.hero-flow .flow-node { fill: var(--surface-2); stroke: var(--line-hairline); stroke-width: 1; }
.hero-flow .flow-accent { fill: var(--brand-blue); }
.hero-flow .flow-label { fill: var(--text-secondary); font: 600 12px var(--font-body); }
.hero-flow .flow-accent-text { fill: var(--white); font: 600 12px var(--font-body); }
.hero-flow .flow-edge { stroke: var(--brand-blue); stroke-width: 2; fill: none; stroke-dasharray: 3 9; animation: edge-flow .9s linear infinite; }
.hero-flow .flow-ping { stroke: var(--brand-blue); stroke-width: 2; fill: none; transform-box: fill-box; transform-origin: center; animation: ping 1.9s ease-out infinite; }
.hero-flow .flow-ping.p2 { animation-delay: .95s; }
.gsap-ready .hero-flow .flow-edge { animation: none; }
.gsap-ready .hero-flow .flow-ping { animation: none; opacity: 0; }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-in 0.9s var(--ease-out-expo) forwards; }
.draw-link { animation-delay: 0.6s; }
.draw-link.l2 { animation-delay: 0.9s; }
.draw-link.l3 { animation-delay: 1.2s; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); }
  .hero-flow { order: -1; max-width: 560px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT MARQUEE
   ══════════════════════════════════════════════════════ */
.prod-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
  background: var(--surface-1);
  padding: var(--space-3) 0;
}
.prod-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.prod-marquee span {
  font: 600 13px/1 var(--font-body);
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 var(--space-6);
  white-space: nowrap;
}
.prod-marquee span + span::before { content: "·"; margin-right: var(--space-6); color: var(--brand-blue); opacity: 0.5; }

/* ═══════════════════════════════════════════════════════
   STATS — Proof Strip (Asymmetrical Bento)
   ══════════════════════════════════════════════════════ */
.stats { padding-bottom: var(--space-7); }
.stats .wrap { border-top: 1px solid var(--line-hairline); padding-top: var(--space-7); }
.stats .eyebrow { margin-bottom: var(--space-6); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.stat {
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--line-hairline);
  transition: background var(--duration-base) var(--ease-spring);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--surface-1); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-3);
  font-variant-numeric: tabular-nums;
}
.stat span { font: 500 15px/1.5 var(--font-body); color: var(--text-secondary); max-width: 220px; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-right: 1px solid var(--line-hairline); }
}
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line-hairline); }
  .stat:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════
   METHOD STEPS — Horizontal Strip
   ══════════════════════════════════════════════════════ */
.method { padding-top: var(--space-7); }
.method-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.method-steps li {
  padding-top: var(--space-5);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--white);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
}
.method-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.method-steps strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: var(--space-2); }
.method-steps span { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 1000px) { .method-steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .method-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .method-steps { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   PROBLEM / BEFORE-AFTER PAIRS
   ══════════════════════════════════════════════════════ */
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-7); }
.pairs-h { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-3); }
.pair-before p, .pair-after p { margin-top: var(--space-3); font-size: 16px; line-height: 1.7; }
.pair-before p { color: var(--text-secondary); }
.pair-after { border-left: 3px solid var(--brand-blue); padding-left: var(--space-5); }
.pair-after p { color: var(--ink); }

@media (max-width: 700px) {
  .pairs { grid-template-columns: 1fr; }
  .pairs-h { display: none; }
  .pair-before::before, .pair-after::before {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
  }
  .pair-before::before { content: "Before"; }
  .pair-after::before { content: "After"; }
  .pair-after { border-left: none; padding-left: 0; border-top: 3px solid var(--brand-blue); padding-top: var(--space-4); margin-top: var(--space-4); }
}

/* ═══════════════════════════════════════════════════════
   PRODUCTS BENTO GRID — Asymmetrical Layout
   ══════════════════════════════════════════════════════ */
.on-band { background: var(--surface-2); }
.on-band h2 { color: var(--ink); }
.on-band .section-intro { color: var(--text-secondary); }
.prod-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); margin-top: var(--space-7); }

/* Double-Bezel Product Card */
.prod-card {
  grid-column: span 3;
  background: var(--surface-3);
  border-radius: var(--r-shell);
  padding: var(--space-1.5);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
  display: flex;
  flex-direction: column;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }

.prod-card-inner {
  background: var(--surface-4);
  border-radius: var(--r-core);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-inner);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--duration-base) var(--ease-spring);
}
.prod-card:hover .prod-card-inner { border-color: var(--brand-blue); }

.prod-card h3 { font-size: 22px; margin-bottom: var(--space-3); color: var(--ink); }
.shot {
  width: 100%; height: auto; aspect-ratio: 16/10;
  border-radius: var(--r-control);
  border: 1px solid var(--line-hairline);
  background: var(--surface-2);
  margin-bottom: var(--space-5);
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-spring), border-color var(--duration-base) var(--ease-spring);
}
.prod-card:hover .shot { transform: scale(1.01); border-color: var(--brand-blue); }
.prod-card .outcome { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: var(--space-3); }
.prod-tag { margin-top: var(--space-3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.prod-card .proves { margin-top: var(--space-4); font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }
.prod-card .proves strong { color: var(--ink); font-weight: 600; }
.prod-card .domain {
  margin-top: auto;
  padding-top: var(--space-4);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color var(--duration-fast) var(--ease-spring);
}
.prod-card:hover .domain { color: var(--brand-blue-bright); }

/* Bento Asymmetry — Homepage only */
.prod-bento .prod-card { grid-column: span 6; }
.prod-bento .prod-card:first-child { grid-column: span 8; }
.prod-bento .prod-card:nth-child(2) { grid-column: span 4; }
.prod-bento .prod-card:nth-child(2) .shot { object-fit: cover; height: 100%; min-height: 320px; }

@media (max-width: 1100px) {
  .prod-card { grid-column: span 6; }
  .prod-bento .prod-card, .prod-bento .prod-card:first-child, .prod-bento .prod-card:nth-child(2) { grid-column: span 6; }
}
@media (max-width: 700px) {
  .prod-card { grid-column: span 12; }
  .prod-bento .prod-card:nth-child(2) .shot { min-height: 200px; }
}

/* ═══════════════════════════════════════════════════════
   SYSTEMS DIAGRAM
   ══════════════════════════════════════════════════════ */
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: start; }
.sys-figure { margin: 0; max-width: 520px; }
.sys-figure svg { width: 100%; height: auto; }
.sys-node rect { fill: var(--surface-2); stroke: var(--line-hairline); stroke-width: 1; rx: 16; }
.sys-node text { fill: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 600; text-anchor: middle; }
.node-in { opacity: 0; animation: fade-in 0.6s var(--ease-out-expo) forwards; animation-delay: 1.4s; }
.node-in.n2 { animation-delay: 1.6s; }
.node-in.n3 { animation-delay: 1.8s; }
.node-in.n4 { animation-delay: 2.0s; }
.node-in.n5 { animation-delay: 2.2s; }

@media (max-width: 900px) { .sys-grid { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ═══════════════════════════════════════════════════════
   SERVICE CARDS — Double Bezel (Homepage condensed)
   ══════════════════════════════════════════════════════ */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.svc-card {
  position: relative;
  text-decoration: none;
  background: var(--surface-3);
  border-radius: var(--r-shell);
  padding: var(--space-1.5);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.svc-card:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }

.svc-card > div {
  background: var(--surface-4);
  border-radius: var(--r-core);
  padding: var(--space-6);
  border: 1px solid var(--line-hairline);
  box-shadow: var(--shadow-inner);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--duration-base) var(--ease-spring);
}
.svc-card:hover > div { border-color: var(--brand-blue); }
.svc-card h3 { font-size: 18px; margin-bottom: var(--space-3); color: var(--ink); }
.svc-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--space-4); flex: 1; }
.svc-card .go {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.svc-card .go svg { width: 16px; height: 16px; stroke-width: 2.5; transition: transform var(--duration-base) var(--ease-spring); }
.svc-card:hover .go svg { transform: translateX(4px); }

@media (max-width: 1000px) { .svc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-cards { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   STUDIO LIST
   ══════════════════════════════════════════════════════ */
.studio-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.studio-list li {
  background: var(--white);
  border: 1px solid var(--line-hairline);
  border-radius: var(--r-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-ambient);
  transition: transform var(--duration-base) var(--ease-spring), box-shadow var(--duration-base) var(--ease-spring), border-color var(--duration-base) var(--ease-spring);
}
.studio-list li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-soft); }
.studio-list h3 { font-size: 17px; margin-bottom: var(--space-2); color: var(--ink); }
.studio-list p { font-size: 15px; color: var(--text-secondary); margin: 0; }

@media (max-width: 700px) { .studio-list { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   TOOLS STRIP
   ══════════════════════════════════════════════════════ */
.tools {
  border-top: 1px solid var(--line-hairline);
  padding: var(--space-5) 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   CONTACT PROMPT (Homepage)
   ═════════════════════════════════════════════════════ */
.promo-panel {
  background: var(--surface-2);
  border-radius: var(--r-card-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}
.promo-panel p { margin: 0; font-size: 15px; color: var(--text-secondary); }
.promo-panel .promo-title { font-size: 17px; font-weight: 600; color: var(--ink); }
.promo-panel .btn { width: 100%; }