/* ══════════════════════════════════════════
   AgentIQ v2 — Minimal Dark, Playfair Style
══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #080c14;
  --navy2:   #0d1321;
  --navy3:   #111827;
  --border:  rgba(255,255,255,0.08);
  --blue:    #1e90ff;
  --cyan:    #38bdf8;
  --orange:  #fb923c;
  --text:    #f0f4ff;
  --muted:   #8896b0;
  --light:   rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ── TYPOGRAPHY ─────────────────────── */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}
h2 em { font-style: italic; color: var(--cyan); }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; color: var(--text); }
p { color: var(--muted); line-height: 1.7; }

.sec-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 16px;
}

.sec-sub {
  font-size: 1.05rem; color: var(--muted); max-width: 520px;
  margin: 16px auto 56px; text-align: center; line-height: 1.7;
}

section { padding: 100px 0; }

/* ── BUTTONS ──────────────────────── */
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: white; padding: 14px 32px;
  border-radius: 6px; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.05em; text-decoration: none; border: none;
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-blue:hover { background: #2a9fff; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); padding: 14px 32px;
  border-radius: 6px; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.05em; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-full { width: 100%; justify-content: center; }

/* ── NAV ───────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,12,20,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.logo {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  font-weight: 700; color: var(--text); text-decoration: none;
  letter-spacing: -0.01em; flex-shrink: 0;
}
.nav-links {
  display: flex; list-style: none; gap: 4px; flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; padding: 8px 16px; border-radius: 6px;
  transition: color 0.2s; letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  text-decoration: none; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--text);
  border: 1px solid rgba(255,255,255,0.3); padding: 8px 20px;
  border-radius: 6px; transition: all 0.2s; flex-shrink: 0;
}
.nav-cta:hover { border-color: var(--blue); color: var(--blue); }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.ham span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mob-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--navy2); border-bottom: 1px solid var(--border);
  padding: 16px 28px; z-index: 99; flex-direction: column; gap: 4px;
}
.mob-menu a { color: var(--text); text-decoration: none; padding: 12px 16px; border-radius: 6px; font-weight: 500; display: block; }
.mob-menu .mob-cta { background: var(--blue); text-align: center; font-weight: 700; margin-top: 8px; }
.mob-menu.open { display: flex; }

/* ── HERO ─────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.08) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-body { position: relative; z-index: 1; max-width: 760px; }

.pill {
  display: inline-block; background: rgba(30,144,255,0.1);
  border: 1px solid rgba(30,144,255,0.25); color: var(--blue);
  padding: 6px 20px; border-radius: 99px; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.08em; margin-bottom: 36px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.05; color: var(--text);
  margin-bottom: 28px;
}

.grad {
  background: linear-gradient(90deg, var(--cyan) 0%, #60a5fa 40%, var(--orange) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted); margin-bottom: 44px; line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

/* ── Animated diagram ──────────────── */
.diagram {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.node {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.node-inner {
  width: 70px; height: 70px; border-radius: 50%; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.human .node-inner { background: linear-gradient(135deg, #fb923c, #f97316); box-shadow: 0 0 30px rgba(251,146,60,0.3); }
.agent .node-inner { background: linear-gradient(135deg, #3b82f6, #1d4ed8); border-radius: 18px; box-shadow: 0 0 30px rgba(59,130,246,0.3); }
.node span { font-size: 0.68rem; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }

.line-wrap {
  position: relative; width: 160px; height: 2px;
  background: rgba(255,255,255,0.1); margin: 0 8px; margin-bottom: 28px;
}
.line-wrap .dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); top: -4px;
  box-shadow: 0 0 12px var(--blue);
  animation: slide 2.5s ease-in-out infinite;
}
@keyframes slide {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

/* ── CHAT DEMO ────────────────────── */
.chat-demo {
  background: #0d1321;
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 0 60px rgba(30,144,255,0.12), 0 24px 48px rgba(0,0,0,0.4);
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: rgba(30,144,255,0.08);
  border-bottom: 1px solid rgba(30,144,255,0.15);
}
.chat-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 8px #10b981;
  animation: pulse 2s ease-in-out infinite;
}
.chat-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.chat-status { font-size: 0.75rem; color: #10b981; margin-left: auto; font-weight: 600; }

.chat-messages {
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px; max-height: 320px;
  overflow-y: auto;
}

.msg-bubble {
  max-width: 82%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.55; opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.msg-bubble.show { opacity: 1; transform: translateY(0); }
.msg-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.msg-agent {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(30,144,255,0.2), rgba(56,189,248,0.1));
  border: 1px solid rgba(30,144,255,0.25);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg-typing {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px; border-radius: 14px; border-bottom-left-radius: 4px;
  display: flex; gap: 5px; align-items: center;
}
.msg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); display: inline-block;
  animation: bounce 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.15s; }
.msg-typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.chat-input {
  flex: 1; font-size: 0.88rem; color: var(--muted);
  font-family: 'Inter', sans-serif;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: all 0.3s;
}
.chat-input.typing-active { color: var(--text); border-color: rgba(30,144,255,0.3); }
.chat-send {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue); color: white;
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── OPENCLAW ─────────────────────── */
#openclaw { background: var(--navy2); text-align: center; }
.openclaw-wrap {
  max-width: 760px; margin: 0 auto; text-align: left;
}
.openclaw-body p {
  font-size: 1.05rem; color: var(--muted); line-height: 1.8;
  margin-bottom: 18px;
}
.openclaw-closing {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  font-weight: 600;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  margin-top: 24px !important;
}

/* ── WHY AGENTIQ ─────────────────────── */
#why { background: var(--navy); text-align: center; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  text-align: left; max-width: 960px; margin: 0 auto;
}
.why-card {
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; transition: all 0.25s;
}
.why-card:hover { border-color: rgba(30,144,255,0.35); transform: translateY(-3px); }
.why-quote { border-color: rgba(56,189,248,0.25); background: rgba(56,189,248,0.04); }
.why-icon { font-size: 1.8rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; margin-bottom: 10px; }
.why-card p { font-size: 0.9rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }

/* ── SERVICES ─────────────────────── */
#services { background: var(--navy2); text-align: center; }
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  text-align: left; max-width: 900px; margin: 0 auto;
}
.svc-card {
  background: var(--navy3); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; transition: all 0.25s;
}
.svc-card:hover { border-color: rgba(30,144,255,0.35); transform: translateY(-3px); }
.svc-featured { border-color: rgba(30,144,255,0.3); background: rgba(30,144,255,0.05); }
.svc-num {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--blue); margin-bottom: 14px;
}
.svc-card p { font-size: 0.93rem; }

/* ── HOW IT WORKS ─────────────────── */
#how { text-align: center; }
.steps-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 16px; margin-top: 56px; flex-wrap: wrap;
}
.step-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 16px; max-width: 220px;
}
.step-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30,144,255,0.1); border: 1px solid rgba(30,144,255,0.3);
  color: var(--blue); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-text h3 { font-size: 1rem; }
.step-text p { font-size: 0.88rem; }
.step-arrow {
  color: rgba(255,255,255,0.2); font-size: 1.5rem;
  margin-top: 12px; align-self: flex-start;
}

/* ── STATS ─────────────────────────── */
#stats {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}
.stats-row { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-box { text-align: center; padding: 20px 48px; }
.stat-n {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 900; color: var(--text); line-height: 1;
}
.stat-l { font-size: 0.8rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.05em; }
.stat-div { width: 1px; height: 60px; background: var(--border); }

/* ── PRICING ──────────────────────── */
#pricing { text-align: center; }
.pricing-wrap {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  max-width: 860px; margin: 0 auto;
}
.price-card {
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px 36px; text-align: left; flex: 1; min-width: 300px;
}
.price-main {
  border-color: rgba(30,144,255,0.4);
  background: linear-gradient(135deg, rgba(30,144,255,0.06), rgba(56,189,248,0.03));
  position: relative;
}
.price-tag {
  display: inline-block; background: var(--blue); color: white;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
}
.price-amount {
  font-family: 'Playfair Display', serif; font-size: 4rem;
  font-weight: 900; color: var(--text); line-height: 1; margin: 12px 0 10px;
  display: flex; align-items: flex-start; gap: 2px;
}
.price-dollar { font-size: 2rem; margin-top: 8px; }
.price-mo { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--muted); align-self: flex-end; margin-bottom: 6px; }
.price-sub { font-size: 0.88rem; margin-bottom: 24px; }
.price-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.price-list li { font-size: 0.9rem; color: var(--muted); }

/* ── INDUSTRIES ──────────────────────── */
#industries { background: var(--navy2); text-align: center; }
.ind-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; max-width: 800px; margin: 0 auto;
}
.ind-card {
  background: var(--navy3); border: 1px solid var(--border);
  border-radius: 99px; padding: 12px 24px;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: all 0.2s; cursor: default;
}
.ind-card:hover { border-color: var(--blue); color: var(--blue); }

/* ── TESTIMONIALS ─────────────────────── */
#testimonials { background: var(--navy); text-align: center; }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1000px; margin: 0 auto; text-align: left;
}
.testi-card {
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 20px;
  transition: all 0.25s;
}
.testi-card:hover { transform: translateY(-3px); border-color: rgba(30,144,255,0.3); }
.testi-featured { border-color: rgba(30,144,255,0.35); background: rgba(30,144,255,0.05); }
.testi-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 2px; }
.testi-text { font-size: 0.93rem; color: var(--muted); line-height: 1.7; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: white; flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.testi-biz { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ── CONTACT ──────────────────────── */
.contact-wrap { display: flex; gap: 80px; align-items: flex-start; }
.contact-left { flex: 1; }
.contact-info { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.ci-item { color: var(--muted); font-size: 0.93rem; }

.contact-form {
  flex: 0 0 460px; background: var(--navy2); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px;
}
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; color: rgba(255,255,255,0.7); }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 11px 14px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.93rem; transition: border 0.2s;
}
.fg input:focus, .fg select:focus { outline: none; border-color: var(--blue); }
.fg select option { background: var(--navy3); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* ── FOOTER ───────────────────────── */
footer {
  background: var(--navy2); border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-btm {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); text-decoration: none; }

/* ── RESPONSIVE ───────────────────── */
@media (max-width: 900px) {
  .contact-wrap { flex-direction: column; gap: 40px; }
  .contact-form { width: 100%; flex: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
  .steps-wrap { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .stats-row { gap: 0; }
  .stat-box { padding: 20px 28px; }
  .stat-div { display: none; }
}
@media (max-width: 600px) {
  .line-wrap { width: 80px; }
  h1 { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .stat-box { padding: 16px 20px; }
  .stat-n { font-size: 2.2rem; }
  .footer-top { flex-direction: column; gap: 16px; text-align: center; }
  .footer-btm { flex-direction: column; gap: 12px; text-align: center; }
}
