:root {
  --bg: #fff8f0;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --border: #f0e2d4;
  --text: #2b2438;
  --text-dim: #6b6478;
  --primary: #ff7a45;
  --primary2: #8b5cf6;
  --accent: #ffd166;
  --gradient: linear-gradient(135deg, var(--primary), var(--primary2));
  --radius: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.65;
}
h1, h2, h3, h4 { font-family: 'Baloo 2', 'Poppins', sans-serif; margin: 0 0 .5em; line-height: 1.15; }
p { color: var(--text-dim); }
a { color: var(--primary2); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, .45);
}
.btn-primary:hover { transform: translateY(-2px) rotate(-0.5deg); box-shadow: 0 14px 30px -8px rgba(139, 92, 246, .55); }
.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary2); color: var(--primary2); }

/* ---------- Navbar ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav-logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary2); }

/* ---------- Inner page hero (multi-page) ---------- */
.page-hero { padding: 60px 0 46px; position: relative; overflow: hidden; text-align: center; }
.page-hero::before {
  content: "";
  position: absolute; top: -110px; right: -110px; width: 300px; height: 300px;
  background: var(--gradient); opacity: .16; border-radius: 50%; filter: blur(10px);
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); position: relative; }
.page-hero p { max-width: 560px; margin: 10px auto 0; font-size: 16px; position: relative; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

@media (max-width: 1060px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 110px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -140px; right: -140px; width: 420px; height: 420px;
  background: var(--gradient); opacity: .18; border-radius: 50%;
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute; bottom: -120px; left: -100px; width: 320px; height: 320px;
  background: var(--accent); opacity: .3; border-radius: 50%;
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 28px; font-family: 'Baloo 2', sans-serif; color: var(--text); }
.hero-stats div span { font-size: 13px; color: var(--text-dim); }

.hero-visual {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 30px 60px -24px rgba(139, 92, 246, .3);
}
.bot-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.bot-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; flex-shrink: 0; }
.bot-row div strong { display: block; font-size: 15px; }
.bot-row div span { font-size: 12.5px; color: var(--text-dim); }
.chat-bubble { background: #fff3e9; border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 10px; max-width: 85%; }
.chat-bubble.me { background: var(--gradient); color: #fff; margin-left: auto; }
.automation-pill { display: inline-flex; align-items: center; gap: 8px; background: #f4f0ff; color: var(--primary2); border-radius: 100px; padding: 8px 14px; font-size: 13px; font-weight: 600; margin-top: 8px; }

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-0.3deg); box-shadow: 0 20px 40px -20px rgba(139,92,246,.35); }
.card.primary { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--gradient) border-box; }
.card .icon {
  width: 50px; height: 50px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; stroke: #fff; }
.card h3 { font-size: 20px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.chip-grid { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border); background: #fff;
  padding: 10px 16px; border-radius: 100px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); }

/* ---------- Projects ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.project-thumb {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 20px;
  color: #fff;
}
.project-body { padding: 20px 22px; }
.project-body .cat { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--primary2); font-weight: 700; }
.project-body h4 { font-size: 16.5px; margin: 6px 0 6px; }
.project-body p { font-size: 13.5px; margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .avatar-wrap { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; }
.team-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 19px; color: #fff;
}
.team-card .status-dot { position: absolute; bottom: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 3px solid var(--card); }
.team-card .status-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #22c55e; animation: team-ping 1.8s ease-out infinite; }
@keyframes team-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.team-card h3 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--gradient); padding: 4px 13px; border-radius: 100px; margin-bottom: 10px; }
.team-card p { font-size: 13.5px; margin-bottom: 0; }

/* ---------- Clients ---------- */
.clients-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  align-items: center;
}
.client-pill {
  border: 1px solid var(--border); border-radius: 16px; background: var(--card);
  padding: 22px 10px; text-align: center; font-family: 'Baloo 2', sans-serif;
  font-weight: 600; color: var(--text); font-size: 14px;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 10px; font-size: 15px; color: var(--text); font-weight: 500; }
.about-list li::before { content: "\2726"; color: var(--primary); }
.about-panel {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  padding: 32px; display: grid; gap: 20px;
}
.about-panel .stat strong { font-size: 30px; font-family: 'Baloo 2', sans-serif; display: block; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-panel .stat span { font-size: 13px; color: var(--text-dim); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Contact: chat widget ---------- */
.scribble { font-family: 'Caveat', cursive; font-size: 21px; font-weight: 600; color: var(--primary2); margin-top: -10px; }

.chat-contact-wrap { max-width: 560px; margin: 0 auto; display: grid; gap: 22px; }
.chat-card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 28px; box-shadow: 0 24px 50px -28px rgba(139,92,246,.35); }
.chat-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.chat-card-head strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 16px; }
.chat-card-head span { font-size: 12.5px; color: var(--text-dim); }
.bot-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bot-avatar.floaty { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

.chat-form { display: grid; gap: 8px; }
.chat-form .bot-msg {
  align-self: start; background: #f4f0ff; color: var(--text); font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: 14px 14px 14px 4px; margin: 10px 0 2px; max-width: 90%;
}
.chat-form input, .chat-form textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 12px 16px; font-family: inherit; font-size: 14.5px; color: var(--text); box-sizing: border-box;
}
.chat-form input:focus, .chat-form textarea:focus { outline: none; border-color: var(--primary2); }
.chat-form textarea { min-height: 90px; resize: vertical; }
.chat-form button { justify-self: start; margin-top: 10px; }
#form-status { font-size: 14px; min-height: 20px; }
#form-status.ok { color: #16a34a; }
#form-status.err { color: #dc2626; }

.info-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.info-pills .pill {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--text);
}
.info-pills .pill svg { width: 16px; height: 16px; stroke: var(--primary); flex-shrink: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-inner p { margin: 0; font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .clients-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .clients-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
}
