/* ==========================================================================
   IntelliAgent — AI & Automation Solutions
   Design system + component styles
   ========================================================================== */

:root {
  /* Brand */
  --primary: #6C5CE7;
  --primary-2: #00D2D3;
  --gradient: linear-gradient(135deg, #6C5CE7 0%, #00D2D3 100%);
  --gradient-soft: linear-gradient(135deg, rgba(108,92,231,0.12) 0%, rgba(0,210,211,0.12) 100%);

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --text: #14131f;
  --text-muted: #5a5a72;
  --border: #e6e6f0;
  --shadow: 0 10px 30px rgba(20, 19, 31, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 19, 31, 0.06);
  --success: #21c17c;
  --warn: #f5a623;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg: #0b0b14;
  --bg-alt: #0f0f1c;
  --surface: #14141f;
  --surface-2: #191926;
  --text: #f2f2f9;
  --text-muted: #a4a3bd;
  --border: #26263a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

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

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

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(108, 92, 231, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.brand-spark {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #00D2D3;
  margin: 0 4px; vertical-align: middle;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--gradient); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 8px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    background: var(--bg); flex-direction: column; justify-content: flex-start;
    padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .3s ease;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-outline.desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(108,92,231,0.16), transparent 60%),
    radial-gradient(600px circle at 85% 30%, rgba(0,210,211,0.14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(34px, 5.2vw, 58px); margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 28px; font-family: 'Space Grotesk', sans-serif; }
.hero-stats .stat span { font-size: 13px; color: var(--text-muted); }

.hero-visual {
  position: relative; border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  min-height: 420px;
}
.chat-mock { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.chat-mock .bar { display: flex; gap: 6px; margin-bottom: 6px; }
.chat-mock .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; }
.bubble.bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.user { background: var(--gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite ease-in-out; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; }
.bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100%{ opacity:.25; } 40%{ opacity:1; } }

.float-badge {
  position: absolute; z-index: 5; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  animation: floaty 5s ease-in-out infinite;
}
.float-badge.b1 { top: -18px; right: -14px; }
.float-badge.b2 { top: 42%; left: -22px; animation-delay: 1.2s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip p { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 26px; }
.logo-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; opacity: .6; }
.logo-row span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--text-muted); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--primary);
}
.icon-box svg { width: 26px; height: 26px; }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--primary); }

.feature-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.feature-list li svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 3px; }

/* ---------- Process / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; } }
.stats-band .stat b { font-size: 36px; font-family: 'Space Grotesk', sans-serif; display: block; }
.stats-band .stat span { color: var(--text-muted); font-size: 14px; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.testimonial .stars { color: var(--warn); font-size: 15px; letter-spacing: 2px; }
.testimonial p.quote { font-size: 16px; color: var(--text); }
.testimonial .person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.person .name { font-weight: 600; font-size: 14.5px; }
.person .role { font-size: 13px; color: var(--text-muted); }
.sample-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 28px; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; position: relative;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 20px 50px rgba(108,92,231,0.18); transform: scale(1.03); }
.pricing-card .badge-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-card .desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.pricing-card .price { font-size: 38px; font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.pricing-card .price small { font-size: 14px; color: var(--text-muted); font-family: 'Inter', sans-serif; }
.pricing-card .feature-list { margin: 26px 0 30px; flex-grow: 1; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; background: none; border: none; text-align: left; color: var(--text);
  font-size: 16.5px; font-weight: 600;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s ease; color: var(--primary); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--text-muted); font-size: 15px; max-width: 760px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient); border-radius: var(--radius-lg);
  padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.cta-band p { opacity: .92; margin-bottom: 30px; font-size: 16.5px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field .req { color: #e74c3c; }
.field input, .field textarea, .field select {
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px; transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); }
.field .error-msg { font-size: 13px; color: #e74c3c; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e74c3c; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.form-success {
  display: none; background: rgba(33,193,124,0.1); border: 1px solid var(--success); color: var(--success);
  padding: 16px 20px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; margin-bottom: 20px;
}
.form-success.show { display: block; }

/* ---------- Contact info cards ---------- */
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.contact-info-card .icon-box { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 14.5px; color: var(--text-muted); }
.contact-info-card a:hover { color: var(--primary); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 56px) 0 56px; text-align: center; }
.page-hero .section-tag { margin-left: auto; margin-right: auto; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-top: 18px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar-lg {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
}
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { color: var(--primary); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.team-card p.bio { font-size: 14px; color: var(--text-muted); }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: ""; position: absolute; left: -39px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item .year { font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.timeline-item h4 { font-size: 17px; margin: 6px 0; }
.timeline-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Case studies ---------- */
.case-card { overflow: hidden; padding: 0; }
.case-thumb { height: 190px; background: var(--gradient-soft); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.case-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-thumb .case-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,31,0) 40%, rgba(20,19,31,.55) 100%); }
.case-thumb .case-thumb-icon { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.95); display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow-sm); }
.case-thumb .case-thumb-icon svg { width: 19px; height: 19px; }

.photo-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.photo-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-photo-wrap { position: relative; }
.hero-photo { min-height: 440px; }
.hero-photo-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,25,0) 45%, rgba(15,15,25,.75) 100%); }
.hero-photo-caption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; }
.hero-photo-caption .bubble.bot { color: var(--text); font-size: 14.5px; box-shadow: var(--shadow-sm); }
.case-body { padding: 28px; }
.case-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); background: var(--gradient-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.case-metrics { display: flex; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metrics div b { display: block; font-size: 20px; font-family: 'Space Grotesk', sans-serif; }
.case-metrics div span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: 14.5px; margin-bottom: 18px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 12px; }
.footer-grid ul a { font-size: 14.5px; color: var(--text-muted); }
.footer-grid ul a:hover { color: var(--primary); }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; margin: 16px 0 20px; max-width: 300px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
}
.social-row a:hover { border-color: var(--primary); color: var(--primary); }
.social-row svg { width: 17px; height: 17px; }

.newsletter-form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13.5px; color: var(--text-muted); }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom .legal-links a { font-size: 13.5px; color: var(--text-muted); }
.footer-bottom .legal-links a:hover { color: var(--primary); }

/* ---------- Chat widget (live demo) ---------- */
.chat-widget-btn {
  /* bottom:72px (not 26px) clears Netlify's own "Powered by Netlify"
     badge, which renders as a fixed, always-on-top (z-index ~2^31)
     200x64px box flush in the bottom-right corner on every page --
     26px put this button's hit area right under it, blocking clicks.
     72px sits just above the badge with an 8px gap. */
  position: fixed; bottom: 72px; right: 26px; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; border: none;
  box-shadow: 0 10px 26px rgba(108,92,231,0.45); transition: transform .2s ease;
}
.chat-widget-btn:hover { transform: scale(1.06); }
.chat-widget-btn svg { width: 26px; height: 26px; }

.chat-panel {
  position: fixed; bottom: 144px; right: 26px; z-index: 1200;
  width: 340px; max-width: calc(100vw - 40px); height: 440px; max-height: calc(100vh - 160px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none; transition: all .22s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel-head { background: var(--gradient); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-panel-head div { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.chat-panel-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #7CFF9E; }
.chat-panel-head button { background: none; border: none; color: #fff; opacity: .85; font-size: 18px; line-height: 1; }
.chat-panel-body { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-panel-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-panel-foot input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; background: var(--surface-2); color: var(--text); font-size: 14px; }
.chat-panel-foot input:focus { outline: none; border-color: var(--primary); }
.chat-panel-foot button { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-panel-foot button svg { width: 16px; height: 16px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 1100;
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--gradient-soft); color: var(--primary); text-transform: uppercase; letter-spacing: .04em;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-page .code { font-family: 'Space Grotesk', sans-serif; font-size: clamp(70px, 14vw, 130px); font-weight: 700; }
.error-page p { color: var(--text-muted); margin: 12px 0 28px; font-size: 17px; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto; background: var(--primary); color: #fff;
  padding: 12px 20px; border-radius: 8px; z-index: 2000;
}
.skip-link:focus { left: 16px; top: 16px; }
