/* =========================================================
   Q9BOT — global stylesheet
   Single dark theme. No frameworks. Mobile-first.
   ========================================================= */

:root {
  --bg-base: #07080d;
  --bg-elev: #0e1019;
  --bg-card: #12141f;
  --bg-card-hover: #161929;
  --border: #1f2333;
  --border-strong: #2b3047;
  --text: #e7eaf3;
  --text-muted: #8b91a6;
  --text-dim: #5e6478;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --accent-2: #6ef195;
  --accent-3: #ff7ad9;
  --warn: #ffb454;
  --danger: #ff5c7a;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(0, 212, 255, 0.25), 0 12px 50px rgba(0, 212, 255, 0.18);

  --container: 1200px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(110, 241, 149, 0.05), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #5eeaff; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-muted); }

code, .mono { font-family: var(--font-mono); }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

.eyebrow {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p { font-size: 1.05rem; }

.gradient-text {
  background: linear-gradient(120deg, #ffffff 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #4ee2ff);
  color: #04121a;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.30);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(0, 212, 255, 0.45); color: #04121a; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #04121a;
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
}
.hero .btn-row { display: inline-flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* Cards / Features */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

/* Bot showcase cards (homepage) */
.bot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.bot-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .25s;
}
.bot-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.bot-card:hover::before { opacity: 1; }
.bot-card .badge { font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: rgba(110, 241, 149, 0.12); color: var(--accent-2); border: 1px solid rgba(110, 241, 149, 0.3); align-self: flex-start; margin-bottom: 1rem; font-weight: 500; }
.bot-card .badge.cyan { background: var(--accent-soft); color: var(--accent); border-color: rgba(0,212,255,0.3); }
.bot-card .badge.pink { background: rgba(255,122,217,0.10); color: var(--accent-3); border-color: rgba(255,122,217,0.3); }
.bot-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.bot-card p { margin-bottom: 1.25rem; }
.bot-card ul { list-style: none; margin-bottom: 1.5rem; }
.bot-card ul li { padding: 0.4rem 0; font-size: 0.92rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.bot-card ul li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }
.bot-card .arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.bot-card .arrow span { transition: transform .2s; }
.bot-card:hover .arrow span { transform: translateX(4px); }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.5rem; }

/* Bot detail page sections */
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.feature-row {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-row .icon-tile { flex: 0 0 auto; margin: 0; }
.feature-row h4 { margin-bottom: 0.4rem; }
.feature-row p { font-size: 0.92rem; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0,212,255,0.05), transparent 60%), var(--bg-card);
  box-shadow: var(--shadow-glow);
}
.price-card .tier-name { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.price-card .tier-tag { position: absolute; top: -12px; right: 1.5rem; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #04121a; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase; }
.price-card .price { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: var(--text); margin: 0.75rem 0 0.25rem; letter-spacing: -0.02em; }
.price-card .period { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1.5rem; }
.price-card ul { list-style: none; margin-bottom: 1.75rem; flex-grow: 1; }
.price-card ul li { padding: 0.5rem 0; font-size: 0.92rem; color: var(--text-muted); display: flex; gap: 0.5rem; }
.price-card ul li::before { content: "✓"; color: var(--accent-2); font-weight: 700; flex-shrink: 0; }

/* Testimonial cards */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial .stars { color: var(--warn); margin-bottom: 0.75rem; letter-spacing: 0.1em; }
.testimonial .quote { color: var(--text); font-size: 0.98rem; margin-bottom: 1.25rem; }
.testimonial .person { display: flex; align-items: center; gap: 0.75rem; }
.testimonial .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.testimonial .meta { font-size: 0.85rem; }
.testimonial .meta strong { color: var(--text); display: block; }
.testimonial .meta span { color: var(--text-dim); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, rgba(0,212,255,0.10), rgba(110,241,149,0.05));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 0.75rem; }
.cta-banner p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); transition: transform .2s; font-family: var(--font-mono); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; font-size: 0.95rem; }

/* Form */
.form { display: grid; gap: 1rem; max-width: 600px; }
.form label { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 140px; }

/* Contact info row */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-info .card { text-align: center; }
.contact-info .card h4 { margin-bottom: 0.4rem; color: var(--accent); }

/* About */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-base);
}
.timeline-item .year { font-family: var(--font-mono); color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-about p { font-size: 0.9rem; margin: 0.85rem 0 1rem; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-muted);
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }

/* Risk disclaimer */
.disclaimer {
  background: rgba(255, 180, 84, 0.06);
  border: 1px solid rgba(255, 180, 84, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2rem 0;
}
.disclaimer strong { color: var(--warn); }

/* Page header (non-home) */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4, .pricing-grid, .team-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-list-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-elev); padding: 1rem; gap: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-4, .pricing-grid, .team-grid, .steps, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 2rem; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
