/* ═══════════════════════════════════════════════════════
   home.css — Homepage
═══════════════════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 100px) 48px 100px;
  position: relative; overflow: hidden;
}

.hero-ambient {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-ambient::before {
  content: '';
  position: absolute; top: 5%; left: 40%;
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(240,165,0,0.09) 0%, transparent 58%);
  animation: ambientFloat 8s ease-in-out infinite;
}
.hero-ambient::after {
  content: '';
  position: absolute; top: 30%; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(140,100,255,0.06) 0%, transparent 65%);
  animation: ambientFloat 11s ease-in-out 2s infinite;
}
@keyframes ambientFloat { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.65;transform:scale(1.1);} }

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 30%, transparent 100%);
}

.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; animation: fadeUp 0.5s ease both;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.4rem); font-weight: 900;
  color: var(--text); margin-bottom: 20px;
  animation: fadeUp 0.5s 0.07s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt), var(--gold-dk));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-desc {
  font-size: 0.96rem; color: var(--text-muted); line-height: 1.85;
  max-width: 460px; margin-bottom: 36px;
  animation: fadeUp 0.5s 0.14s ease both;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.5s 0.21s ease both;
}

.hero-metrics {
  display: flex; gap: 44px;
  margin-top: 52px; padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.5s 0.28s ease both;
}
.metric-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--text); letter-spacing: -0.03em; }
.metric-label { font-family: var(--font-mono); font-size: 0.61rem; color: var(--text-muted); letter-spacing: 0.07em; margin-top: 4px; }

/* Hero mock UI */
.hero-ui {
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: 16px; overflow: hidden;
  animation: fadeUp 0.6s 0.12s ease both;
  box-shadow: 0 0 0 1px rgba(240,165,0,0.05), 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
}
.hero-ui::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ui-bar {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2);
}
.ui-dots { display: flex; gap: 5px; }
.ui-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--surface3); }
.ui-bar-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.06em; }
.ui-bar-status { margin-left: auto; display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 0.59rem; color: var(--green); }
.ui-bar-status span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
.ui-channels { padding: 10px 16px 4px; display: flex; gap: 6px; }
.ui-ch-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.57rem; letter-spacing: 0.05em;
  color: var(--text-muted); background: var(--surface2);
  border: 1px solid var(--border); padding: 3px 9px; border-radius: 100px;
}
.ui-ch-tag svg { width: 9px; height: 9px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; }
.ui-chat { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 190px; }
.ui-msg { max-width: 84%; padding: 8px 12px; border-radius: 10px; font-size: 0.76rem; line-height: 1.55; color: var(--text); }
.ui-msg.bot { background: var(--surface2); border: 1px solid var(--border); border-radius: 3px 10px 10px 10px; align-self: flex-start; }
.ui-msg.user { background: var(--gold-dim); border: 1px solid rgba(240,165,0,0.18); border-radius: 10px 10px 3px 10px; align-self: flex-end; color: #ffc233; }
.ui-typing { display: flex; gap: 4px; align-items: center; padding: 9px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 3px 10px 10px 10px; width: fit-content; align-self: flex-start; }
.ui-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1.3s ease-in-out infinite; }
.ui-typing span:nth-child(2) { animation-delay: 0.18s; }
.ui-typing span:nth-child(3) { animation-delay: 0.36s; }
.ui-footer { padding: 11px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.ui-input-bar { flex: 1; height: 32px; background: var(--surface2); border: 1px solid var(--border); border-radius: 7px; }
.ui-send-btn { width: 32px; height: 32px; background: var(--gold); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ui-send-btn svg { width: 12px; height: 12px; fill: var(--bg); }

/* ── SERVICES ── */
.services-section { padding: 100px 48px; max-width: var(--max-w); margin: 0 auto; }
.section-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; max-width: 500px; margin-bottom: 44px; }

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}

.service-card {
  background: var(--bg); padding: 42px 38px;
  position: relative; overflow: hidden; cursor: default;
  transition: background 0.3s;
}
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(240,165,0,0.05), transparent 42%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover { background: var(--surface); }
.service-card:hover::after { opacity: 1; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.service-card:hover .service-icon { border-color: rgba(240,165,0,0.5); background: var(--gold-dim); box-shadow: 0 0 22px rgba(240,165,0,0.12); }
.service-icon svg { width: 19px; height: 19px; stroke: var(--text-muted); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transition: stroke 0.3s; }
.service-card:hover .service-icon svg { stroke: var(--gold); }

.service-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; color: var(--text); margin-bottom: 9px; letter-spacing: -0.02em; }
.service-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.79rem; color: var(--text-muted); line-height: 1.5; }
.service-list li svg { width: 12px; height: 12px; stroke: var(--gold); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; flex-shrink: 0; margin-top: 3px; }

/* ── HOW IT WORKS ── */
.how-section {
  padding: 100px 48px;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute; top: 50%; right: -8%; transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.055) 0%, transparent 65%);
  pointer-events: none;
}

.how-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 460px;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}

.how-content h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 900; color: var(--text); margin-bottom: 12px; }
.how-content p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 34px; max-width: 420px; }

.how-features { display: flex; flex-direction: column; gap: 20px; }
.how-feat { display: flex; gap: 15px; }
.how-feat-icon { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color 0.2s, background 0.2s; }
.how-feat:hover .how-feat-icon { border-color: rgba(240,165,0,0.4); background: var(--gold-dim); }
.how-feat-icon svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.how-feat-title { font-weight: 700; font-size: 0.86rem; color: var(--text); margin-bottom: 3px; }
.how-feat-desc { font-size: 0.79rem; color: var(--text-muted); line-height: 1.65; }

/* Flow diagram */
.how-diagram { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; }
.diag-title { font-family: var(--font-mono); font-size: 0.59rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }

.diag-node {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color 0.2s, background 0.2s;
}
.diag-node:hover { border-color: var(--border-md); background: var(--surface2); }
.diag-node.accent { border-color: rgba(240,165,0,0.22); background: rgba(240,165,0,0.03); }
.diag-node.accent:hover { border-color: rgba(240,165,0,0.4); background: rgba(240,165,0,0.06); }
.diag-node-icon { width: 30px; height: 30px; border-radius: 7px; background: var(--surface2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.diag-node.accent .diag-node-icon { background: var(--gold-dim); }
.diag-node-icon svg { width: 13px; height: 13px; stroke: var(--text-muted); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.diag-node.accent .diag-node-icon svg { stroke: var(--gold); }
.diag-node-label { font-size: 0.77rem; font-weight: 600; color: var(--text); }
.diag-node-sub { font-family: var(--font-mono); font-size: 0.57rem; color: var(--text-muted); margin-top: 1px; }
.diag-arrow { padding: 4px 0 4px 14px; }
.diag-arrow svg { width: 12px; height: 12px; stroke: var(--text-dim); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

/* ── PROCESS ── */
.process-section { padding: 100px 48px; max-width: var(--max-w); margin: 0 auto; }

.process-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}

.process-card {
  background: var(--bg); padding: 38px 30px;
  transition: background 0.3s; position: relative; overflow: hidden;
}
.process-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.process-card:hover { background: var(--surface); }
.process-card:hover::after { transform: scaleX(1); }

.process-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--gold); opacity: 0.18; line-height: 1;
  margin-bottom: 16px; letter-spacing: -0.04em;
}
.process-title { font-family: var(--font-display); font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.process-desc { font-size: 0.81rem; color: var(--text-muted); line-height: 1.78; }

/* ── CTA ── */
.cta-section {
  padding: 120px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-ambient {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(240,165,0,0.065) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--text); margin-bottom: 12px; }
.cta-inner p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.82; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-copy { font-family: var(--font-mono); font-size: 0.59rem; color: var(--text-dim); }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-ui { display: none; }
  .how-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width:768px) {
  .hero { padding: calc(var(--header-h) + 50px) 20px 60px; }
  .services-section, .process-section { padding: 70px 20px; }
  .how-section { padding: 70px 20px; }
  .cta-section { padding: 80px 20px; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-metrics { gap: 24px; flex-wrap: wrap; }
  .site-footer { padding: 20px; flex-direction: column; gap: 10px; text-align: center; }
}
