/* =================================================================
   AI Home — Light + Bento
   ================================================================= */

/* ---------- reveal helper ---------- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"].is-revealed { transition-delay: 80ms; }
[data-reveal-delay="2"].is-revealed { transition-delay: 160ms; }
[data-reveal-delay="3"].is-revealed { transition-delay: 240ms; }
[data-reveal-delay="4"].is-revealed { transition-delay: 320ms; }
[data-reveal-delay="5"].is-revealed { transition-delay: 400ms; }

/* ---------- top banner ---------- */
.top-banner { margin-top: var(--nav-h); }
.top-banner img { display: block; width: 100%; height: auto; }

/* ---------- hero ---------- */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% -10%, rgba(133, 194, 38, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(37, 99, 235, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin-bottom: var(--space-6);
  letter-spacing: -0.035em;
}
.hero h1 .accent { display: block; margin-top: var(--space-2); }
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 38rem;
  margin: 0 0 var(--space-8);
  line-height: 1.5;
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- hero grid (copy left, banner right) ---------- */
.hero-grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); }
}
/* hero visual: photo + service-flow bar */
.hero-visual { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-visual > img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.hero-visual .flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.hero-visual .flow-stages { margin-top: 0; }
.hero-visual .flow-stages .label { color: var(--text); font-size: 0.7rem; font-weight: 600; }
.hero-visual .flow-stages .arrow { color: var(--text-muted); }

/* ---------- why section ---------- */
.why h2 { max-width: 18ch; }
.why .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.why .stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; margin-bottom: var(--space-2); letter-spacing: -0.04em; }
.why .stat .num.is-blue { color: var(--accent); }
.why .stat .num.is-violet { color: var(--violet); }
.why .stat .num.is-green { color: var(--asrock-hi); }
.why .stat .label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }

.why-questions h4 { font-family: var(--font-mono); font-size: 0.72rem; color: var(--asrock-dark); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-5); }
.why-questions ul li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}
.why-questions ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.why-questions ul li::before { content: "?"; font-family: var(--font-mono); color: var(--asrock-hi); font-weight: 700; flex-shrink: 0; }

/* ---------- services (flow visual + 4-step list) ---------- */
.services-grid { display: grid; gap: var(--space-10); align-items: center; margin-top: var(--space-10); }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); }
}
.services-visual { margin: 0; }
.services-visual img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
/* step items: title left, keywords right, ↓ flow arrows between blocks */
.services-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.services-steps li {
  position: relative;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.7;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: baseline;
}
@media (max-width: 519px) {
  .services-steps li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
}
.services-steps li strong { color: var(--accent); font-size: 1.02rem; font-family: var(--font-body); letter-spacing: normal; text-transform: none; }
/* flow arrow drawn in CSS (not a ↓ glyph, whose height/baseline varies with the
   font fallback and used to land on the next title). 16px tall, dead centre of
   the 2.5rem row gap -> 12px clear of each item edge. */
.services-steps li:not(:last-child)::before,
.services-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 3rem;
  top: 100%;
}
.services-steps li:not(:last-child)::before { /* stem */
  margin-top: 0.75rem;
  width: 2px;
  height: 0.75rem;
  background: #4a90f2;
  transform: translateX(-1px);
}
.services-steps li:not(:last-child)::after { /* head */
  margin-top: 1.375rem;
  width: 0;
  height: 0;
  border-left: 0.3125rem solid transparent;
  border-right: 0.3125rem solid transparent;
  border-top: 0.375rem solid #4a90f2;
  transform: translateX(-50%);
}

/* ---------- deployment ---------- */
.deploy .bento-cell { min-height: 240px; display: flex; flex-direction: column; }
.deploy .ribbon {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-card-alt);
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-4);
  align-self: flex-start;
}
.deploy .bento-cell.is-dark .ribbon { background: rgba(255, 255, 255, 0.1); color: var(--text-on-dark); }
.deploy h3 { font-size: 1.5rem; margin-bottom: var(--space-2); }
.deploy .subtitle { color: var(--asrock-hi); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-5); font-weight: 600; }
.deploy .bento-cell.is-dark .subtitle { color: var(--asrock-light); }
.deploy .best-for { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-3); font-weight: 600; }
.deploy .bento-cell.is-dark .best-for { color: var(--text-on-dark-dim); }
.deploy ul { margin-top: auto; }
.deploy ul li {
  color: var(--text);
  font-size: 0.92rem;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.deploy .bento-cell.is-dark ul li {
  color: var(--text-on-dark);
  border-top-color: var(--border-on-dark);
}

/* ---------- products bento ---------- */
.products-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-10); flex-wrap: wrap; }
.products-header h2 { max-width: 22ch; margin: 0; }
.products .bento-cell { display: flex; flex-direction: column; min-height: 260px; }
.products .bento-cell .level { font-family: var(--font-mono); font-size: 0.72rem; color: var(--asrock-hi); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--space-4); }
.products .bento-cell h3 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.products .bento-cell .sub { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; margin: 0; }
.products .bento-cell .cta { margin-top: auto; padding-top: var(--space-5); color: var(--asrock-hi); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; }

/* ---------- solutions (image-led stories + summary panel) ---------- */
.solutions-grid { display: grid; gap: var(--space-6); align-items: start; margin-top: var(--space-10); }
@media (min-width: 900px) {
  .solutions-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-8); }
}
.solution-stories { display: flex; flex-direction: column; gap: var(--space-5); }
.solution-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.solution-card img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform 500ms var(--ease-out); }
.solution-card:hover img { transform: scale(1.03); }
.solution-card .story-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.28) 55%, rgba(15, 23, 42, 0) 80%);
}
.solution-card h3 { color: #fff; font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 0; }
.solution-card .story-copy p { color: rgba(248, 250, 252, 0.88); font-size: 0.95rem; line-height: 1.45; margin: 0; }
.solution-card .cta { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.78rem; color: #fff; opacity: 0.9; }
@media (max-width: 719px) {
  .solution-card img { aspect-ratio: 16 / 10; }
  .solution-card .story-copy { padding: var(--space-6); }
}
.solutions-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: sticky;
  top: calc(var(--nav-h) + var(--space-6));
}
.solutions-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.solutions-panel li {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.solutions-panel li strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: var(--space-2); transition: color 300ms var(--ease-out); }
.solutions-panel li.is-active { border-left-color: var(--asrock); background: var(--asrock-tint); color: var(--text); }
.solutions-panel li.is-active strong { color: var(--asrock-dark); }
.solutions-panel .note { margin: var(--space-6) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* ---------- award spotlight ---------- */
.award .bento-cell.award-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: stretch;
  padding: var(--space-10) var(--space-8);
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.25);
}
@media (min-width: 900px) {
  .award .bento-cell.award-card { padding: var(--space-12) var(--space-16); }
}
.award-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) { .award-info { grid-template-columns: minmax(320px, 440px) 1fr; gap: var(--space-12); } }
.award-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid rgba(217, 119, 6, 0.2); }
.award-photo img { display: block; width: 100%; height: auto; }
.award-text .award-eyebrow { font-family: var(--font-mono); color: #b45309; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--space-3); display: block; font-weight: 600; }
.award-text h2 { margin-bottom: var(--space-4); color: var(--text); }
.award-text p { color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.award-text .award-cta { margin-top: var(--space-5); display: inline-flex; gap: var(--space-2); align-items: center; color: #b45309; font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color var(--dur-fast); }
.award-text .award-cta:hover { color: #78350f; }

/* ---------- contact / final CTA (photo left, card right) ---------- */
.cta-grid { display: grid; gap: var(--space-6); align-items: stretch; margin-top: var(--space-6); }
.cta-visual { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.cta-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* grid-column: auto — undo base.css .bento-cell { grid-column: span 12 } inside this custom 2-col grid */
.contact .cta-card { grid-column: auto; display: flex; flex-direction: column; justify-content: center; padding: var(--space-10); }
.contact .cta-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: var(--space-3) 0 var(--space-4); }
.contact .cta-card p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.55; max-width: 46ch; margin: 0 0 var(--space-8); }
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (min-width: 900px) {
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-6); }
}

/* ---------- service flow indicator (4-stage end-to-end pipeline) ---------- */
.flow-stages {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.flow-stages .stage {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}
.flow-stages .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--asrock);
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 4px rgba(133, 194, 38, 0.18);
  animation: stage-pulse 2.8s ease-in-out infinite;
}
.flow-stages .stage:nth-child(1) .dot { animation-delay: 0s; }
.flow-stages .stage:nth-child(2) .dot { animation-delay: 0.35s; }
.flow-stages .stage:nth-child(3) .dot { animation-delay: 0.7s; }
.flow-stages .stage:nth-child(4) .dot { animation-delay: 1.05s; }
.flow-stages .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  white-space: nowrap;
}
.flow-stages .arrow {
  position: static;
  color: rgba(248, 250, 252, 0.3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
}
@keyframes stage-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(133, 194, 38, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(133, 194, 38, 0.35); }
}
@media (max-width: 700px) {
  .flow-stages .label { display: none; }
  .flow-stages .stage { flex: 0 0 auto; }
}
