/* ==========================================================
   Asha Agent — landing (asha-agent/)
   Ported from the static asha-agent.html <style> block so the
   page reuses the theme design tokens (var(--surface), etc.).
   ========================================================== */

/* ----- hero ----- */
.agent-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 72px;
}
.agent-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}
.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}
.agent-badge .vb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2EB67D;
  box-shadow: 0 0 0 3px rgba(46,182,125,.18);
}
.agent-title {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 18px 0 16px;
}
.agent-title span {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.agent-sub {
  font-size: 17px;
  line-height: 2.1;
  color: var(--text-secondary);
  max-width: 36em;
}
.agent-sub strong { color: var(--text-main); }
.agent-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.agent-proof {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 20px; font-size: 13.5px; color: var(--text-secondary);
}
.agent-proof li::before {
  content: "✓"; color: var(--primary); font-weight: 800; margin-inline-end: 7px;
}
.hermes-once {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.hermes-once b { color: var(--primary-dark); }

/* ----- app window mock ----- */
.app-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.app-mock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #FAFCFC;
}
.traffic { display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: #E3E9EC; }
.traffic i:nth-child(1) { background: #F4A261; }
.traffic i:nth-child(2) { background: #59AFAC; }
.traffic i:nth-child(3) { background: var(--primary); }
.app-mock-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); direction: ltr; }
.app-mock-live {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #167A41;
  background: #E6F6EC; border: 1px solid #C9ECD4;
  padding: 4px 12px; border-radius: 999px;
}
.app-mock-live i { width: 7px; height: 7px; border-radius: 50%; background: #2EB67D; box-shadow: 0 0 0 3px rgba(46,182,125,.18); }
.app-mock-body { padding: 20px; display: grid; gap: 12px; }
.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 2;
}
.bubble-user {
  justify-self: start;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-agent {
  justify-self: end;
  background: var(--bg-base);
  border: 1px solid var(--line);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}
.bubble-agent .row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--primary-dark); font-weight: 700; margin-bottom: 4px; }
.task-line {
  display: flex; align-items: center; gap: 10px;
  background: #0E2E2C; color: #D6EAE8;
  font-family: var(--font-mono); font-size: 12px;
  border-radius: 10px; padding: 10px 14px; direction: ltr;
}
.task-line .spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #9BE3E0;
  animation: spin 1s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.app-mock-foot {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 20px 20px;
}
.mini-chip {
  font-size: 11.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark);
}
.mini-chip.ghost { background: var(--bg-base); border: 1px solid var(--line); color: var(--text-secondary); }

/* ----- difference strip ----- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.diff-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 30px 26px;
  box-shadow: var(--shadow-soft); display: grid; gap: 12px; align-content: start;
}
.diff-card.win {
  border: 1.5px solid var(--primary);
  background: linear-gradient(165deg, #ffffff 0%, #EBF6F5 100%);
  position: relative;
}
.diff-card.win::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 24px; inset-inline-end: 24px;
  height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.diff-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-base); border: 1px solid var(--line);
  font-size: 21px; color: var(--text-secondary);
}
.diff-card.win .diff-icon { background: var(--primary); color: #fff; border-color: var(--primary); }
.diff-card h3 { font-size: 17px; font-weight: 800; }
.diff-card p { font-size: 14px; line-height: 2; color: var(--text-secondary); }
.diff-tag { font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; width: fit-content; }
.tag-no { background: #F1F3F4; color: var(--text-tertiary); }
.tag-yes { background: var(--primary); color: #fff; }

/* ----- feature grid ----- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; gap: 12px;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lifted); border-color: var(--primary-light); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 22px;
}
.feat-card h3 { font-size: 16.5px; font-weight: 800; line-height: 1.7; }
.feat-card p { font-size: 13.8px; line-height: 2; color: var(--text-secondary); }
.feat-card ul { display: grid; gap: 6px; margin-top: 2px; }
.feat-card ul li { font-size: 12.8px; color: var(--primary-dark); font-weight: 600; }
.feat-card ul li::before { content: "— "; color: var(--primary-light); }

/* ----- anywhere band ----- */
.anywhere {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: #0E2E2C; color: #EAF6F5;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.anywhere::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(89,175,172,.35) 0%, transparent 70%);
  top: -140px; left: -100px; pointer-events: none;
}
.anywhere h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.7; margin-bottom: 12px; }
.anywhere p { font-size: 14.5px; line-height: 2.1; color: rgba(234,246,245,.82); }
.backend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.backend {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px 8px; text-align: center;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: #fff;
}
.backend small { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 400; color: rgba(234,246,245,.65); margin-top: 2px; }
.backend.hot { border-color: #9BE3E0; background: rgba(155,227,224,.12); }
.serverless-note {
  margin-top: 16px; background: rgba(46,182,125,.14); border: 1px solid rgba(46,182,125,.35);
  border-radius: 12px; padding: 12px 16px; font-size: 13px; line-height: 2; color: #C9F0DD;
}
.phone-mock {
  background: var(--surface); border-radius: 22px; padding: 18px;
  color: var(--text-main); position: relative; z-index: 1;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  max-width: 340px; margin-inline: auto; width: 100%;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.phone-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
}
.phone-top b { font-size: 14px; display: block; }
.phone-top span { font-size: 11.5px; color: #167A41; }
.phone-bubble {
  font-size: 12.8px; line-height: 2; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px;
}
.pb-in { background: var(--bg-base); border: 1px solid var(--line); }
.pb-out { background: var(--primary-soft); border: 1px solid rgba(7,135,131,.18); }

/* ----- platforms ----- */
.plat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 28px auto 0; }
.plat-chips span {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.plat-chips span.hot { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ----- trust / security ----- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px 22px; text-align: center;
  display: grid; gap: 10px; justify-items: center;
}
.trust-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary-dark);
  padding: 4px 12px; border-radius: 999px;
}
.trust-card h3 { font-size: 15.5px; font-weight: 800; }
.trust-card p { font-size: 13px; line-height: 1.9; color: var(--text-secondary); }

/* ----- steps ----- */
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.use-card {
  border-radius: var(--radius-md); padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.use-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.use-card p { font-size: 13.8px; line-height: 2; color: var(--text-secondary); }

.asha-strip {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); margin-top: 28px;
}
.asha-strip h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.asha-strip p { font-size: 14.5px; line-height: 2; color: var(--text-secondary); }
.code-dark {
  background: #0E2E2C; border-radius: var(--radius-md); padding: 20px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 2; color: #D6EAE8; direction: ltr;
  overflow-x: auto; box-shadow: var(--shadow-lifted);
}
.code-dark .c { color: #7FA9A6; }
.code-dark .k { color: #9BE3E0; }

/* ----- responsive ----- */
@media (max-width: 1024px) {
  .agent-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .anywhere, .asha-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feat-grid, .diff-grid, .use-grid, .trust-grid { grid-template-columns: 1fr; }
  .backend-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-cta .btn { width: 100%; justify-content: center; }
  .bubble { max-width: 100%; }
}
@media (max-width: 480px) {
  .agent-title { font-size: clamp(28px, 8vw, 36px); }
  .agent-sub { font-size: 15.5px; }
  .backend-grid { grid-template-columns: 1fr 1fr; }
  .phone-mock { padding: 14px; }
  .task-line { font-size: 11px; padding: 10px 12px; }
  .diff-card { padding: 24px 20px; }
  .asha-strip { padding: 24px 18px; }
}
