/* =========================================================
   Innovation Chatbot — Landing page styles
   Edit the color tokens below to re-brand the whole page.
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;

  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --surface: #f8fafc;

  --success: #15803d;
  --danger: #dc2626;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(37, 99, 235, 0.28), 0 12px 24px -12px rgba(15, 23, 42, 0.12);

  --header-h: 72px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

:focus-visible {
  outline: 3px solid var(--primary-100);
  outline-offset: 2px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.accent { color: var(--primary); }

/* Generic SVG icon look */
.icon-box svg,
.chat-avatar svg,
.send svg,
.ico-check {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand strong { color: var(--primary); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(14, 165, 233, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.hero::before {
  /* subtle grid pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.ico-check {
  width: 18px;
  height: 18px;
  color: var(--primary);
  stroke-width: 2.6;
  flex-shrink: 0;
}

/* ---------- Chat demo ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 10%;
  background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
  border-radius: 28px;
  opacity: 0.14;
  transform: rotate(4deg);
}

.chat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 440px;
  margin-left: auto;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface));
}
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.chat-avatar svg { width: 24px; height: 24px; }
.chat-name { margin: 0; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.chat-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.chat-body {
  height: 360px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  background: #fff;
  /* soft fade where older messages scroll out */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
}

.msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  flex-shrink: 0;
}
.msg-user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg.is-hidden { display: none; }
.msg.is-new { animation: msg-in 0.35s ease-out both; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  flex-shrink: 0;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typing 1.1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}
.chat-input .send {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}
.chat-input .send svg { width: 18px; height: 18px; }

/* ---------- Value strip ---------- */
.value-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value-item {
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.value-item + .value-item { border-left: 1px solid var(--line); }
.value-item strong { color: var(--ink); font-size: 1rem; }
.value-item span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 800;
}
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin: 0; }

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

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}
.card h3 { font-size: 1.2rem; margin-top: 20px; }
.card p { color: var(--muted); }

.service-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}
.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-50);
  color: var(--primary);
  flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box.sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-box.sm svg { width: 22px; height: 22px; }

.check-list {
  list-style: none;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.usecase h3 { font-size: 1.08rem; margin-top: 18px; }
.usecase p { font-size: 0.95rem; margin: 0; }

/* Channels */
.channels {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.channels-label { font-weight: 600; color: var(--ink); }
.channels ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.channels li {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Process ---------- */
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed var(--primary-100);
}
.step { position: relative; text-align: center; }
.step-num {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 6px #fff, 0 8px 18px -6px rgba(37, 99, 235, 0.6);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-list details + details { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--primary); }
.faq-list details p {
  padding: 0 24px 20px;
  margin: 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(37, 99, 235, 0.1), transparent 60%),
    var(--primary-50);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }
.contact-info > p { font-size: 1.05rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .icon-box { background: #fff; }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--primary); }

.contact-form { padding: 32px; box-shadow: var(--shadow-md); }
.contact-form:hover { transform: none; }

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-100);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15); }

.hp { display: none !important; }

.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
  text-align: center;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 56px 0 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.brand-footer, .brand-footer:hover { color: #fff; }
.brand-footer strong { color: #60a5fa; }
.footer-note { margin: 12px 0 0; max-width: 320px; }
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer a:not(.brand) { color: #cbd5e1; }
.site-footer a:not(.brand):hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
  .msg.is-new, .typing span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .chat-card { margin: 0 auto; }
  .card-grid.three { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin-top: 16px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value-item { padding: 20px 12px; }
  .value-item + .value-item { border-left: 0; }
  .value-item:nth-child(even) { border-left: 1px solid var(--line); }
  .value-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .card-grid.four { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .chat-body { height: 340px; padding: 14px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
