/* =========================================================
   Nova AI — single-page chatbot info site stylesheet
   ========================================================= */

:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #151a24;
  --surface-hover: #1b2230;
  --border: #232a38;
  --text: #e9edf5;
  --text-dim: #9aa4b8;
  --text-faint: #626d82;
  --accent: #7c9eff;
  --accent-2: #7cf5d4;
  --accent-grad: linear-gradient(135deg, #7c9eff 0%, #b07cff 50%, #7cf5d4 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(0,0,0,0.55);
  --maxw: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 10% -10%, rgba(124,158,255,0.14), transparent 55%),
    radial-gradient(500px circle at 110% 10%, rgba(176,124,255,0.12), transparent 55%),
    radial-gradient(700px circle at 50% 120%, rgba(124,245,212,0.08), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; color: var(--text-dim); }
button { font-family: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent-grad);
  color: #0b0e14;
}
.btn-primary:hover { box-shadow: 0 8px 24px -8px rgba(124,158,255,0.55); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(11,14,20,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11,14,20,0.92);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0b0e14;
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Sections ---------- */
main { padding-top: var(--nav-h); }

section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-meta div strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}
.hero-meta div span {
  font-size: 0.82rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Chat mockup ---------- */
.chat-mockup {
  width: min(380px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-mockup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
}
.chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.chat-status {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-2);
}
.chat-mockup-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}
.bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.bubble-in {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.bubble-out {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #0b0e14;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 15px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typing 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.floating-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 5s ease-in-out infinite;
}
.floating-chip.chip-1 { top: -4%; left: -6%; animation-delay: 0s; }
.floating-chip.chip-2 { bottom: 8%; right: -8%; animation-delay: 1.2s; }
.floating-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,158,255,0.4); background: var(--surface-hover); }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(124,158,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* ---------- Step cards ---------- */
.step-card { position: relative; }
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #0b0e14;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ---------- Stats ---------- */
.stat-card { text-align: center; }
.stat-card strong { display: block; font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; }
.stat-card span { font-size: 0.82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.accordion-panel p { padding: 0 22px 20px; margin: 0; }
.accordion-item.open .accordion-panel { max-height: 200px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124,158,255,0.12), rgba(176,124,255,0.1), rgba(124,245,212,0.1));
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.back-to-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(11,14,20,0.98);
    backdrop-filter: blur(14px);
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.mobile-open a { padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 60px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero-meta { gap: 20px; }
  .container { padding: 0 18px; }
}
