/* Brand palette */
:root {
  --navy: #2B2F5B;
  --purple: #8E6FD6;
  --accent: #B89CF2;
  --white: #FFFFFF;
  --text: #E7E7EC;
  --muted: #B7B9C9;
  --surface: #30345F;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
html, body { height: 100%; overflow-x: hidden; }
/* Hide scrollbars but keep scrolling */
html { -ms-overflow-style: none; scrollbar-width: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(142,111,214,0.18), transparent),
              radial-gradient(900px 600px at -10% 20%, rgba(46,51,93,0.6), transparent),
              #121327;
  line-height: 1.6;
}

.page-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: conic-gradient(from 180deg at 60% 10%, rgba(184,156,242,0.18), rgba(46,51,91,0.35), rgba(142,111,214,0.18));
  mix-blend-mode: screen;
  opacity: 0.45;
  filter: blur(60px);
  z-index: 0;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.section { padding: 84px 0; }
.section-head { max-width: 820px; }
.section-head h2 { font-family: Poppins, Montserrat, system-ui; font-weight: 700; letter-spacing: 0.2px; margin: 0 0 14px; }
.section-head p { margin: 0; color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 10;
  background: rgba(18,19,39,0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0;
}
.brand { display: grid; grid-auto-flow: column; gap: 10px; align-items: center; color: var(--white); text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; object-fit: contain; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--purple)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), var(--shadow); }
.brand-text { display:flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Poppins, Montserrat; font-weight: 700; font-size: 15px; }
.brand-text span { font-size: 12px; color: var(--muted); }

.nav { display: none; gap: 18px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; opacity: 0.9; }
.nav a:hover { color: var(--white); }
/* Animated underline for nav links */
.nav a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px; transition: background-size .25s ease, color .2s ease; }
.nav a:hover, .nav a:focus-visible, .nav a.active { background-size: 100% 2px; color: var(--white); }

/* Mobile menu (opened) */
.nav.is-open { display: flex; position: fixed; right: 4%; top: 62px; z-index: 1000; flex-direction: column; gap: 10px; padding: 12px; background: rgba(18,19,39,0.92); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); box-shadow: var(--shadow); }

.nav-toggle { display: inline-grid; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; display: block; }

@media (min-width: 900px) {
  .nav { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Hero */
.hero { padding-top: 64px; }
.grid.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .grid.two-col { grid-template-columns: 1.1fr 0.9fr; gap: 60px; } }

.headline { font-family: Poppins, Montserrat; font-weight: 700; font-size: clamp(28px, 5vw, 48px); margin: 0 0 12px; }
.subhead { color: var(--muted); margin: 0 0 10px; font-size: clamp(15px, 2.2vw, 18px); }
.rotating-tagline { color: var(--accent); font-weight: 600; margin: 6px 0 22px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn-sm { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.btn-gradient { background: linear-gradient(135deg, var(--navy), var(--purple)); color: var(--white); box-shadow: var(--shadow); }
.btn-gradient:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(142,111,214,0.35); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-light { background: var(--white); color: #0f1025; }

.hero-art { position: relative; }
.grid > * { min-width: 0; }
img, svg, video { max-width: 100%; height: auto; }
.scroll-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); margin: 10px auto 0; animation: bounce 2.4s ease-in-out infinite; }
.scroll-arrow:hover { background: rgba(255,255,255,0.12); }
.scroll-arrow svg { display: block; }
@keyframes bounce { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(6px);} }
.bot-scene { filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25)); max-width: 520px; }
.bot-scene .line { transform-origin: left center; animation: typeLine 3s ease-in-out infinite; }
.bot-scene .line-a { animation-delay: .2s; }
.bot-scene .line-b { animation-delay: .6s; }
.bot-scene .line-c { animation-delay: 1.0s; }
.bot-scene .line-d { animation-delay: 1.4s; }
.bot-scene .line-e { animation-delay: 1.8s; }
.bot-scene .worker .arm-left { animation: armSwing 2.2s ease-in-out infinite; transform-origin: 0 0; }
.bot-scene .worker .arm-right { animation: armSwing 2.2s ease-in-out infinite reverse; transform-origin: 0 0; }
.bot-scene .chat { animation: floaty 5s ease-in-out infinite; }

@keyframes typeLine { 0%{opacity:.2; transform:scaleX(0);} 10%{opacity:.5;} 40%{transform:scaleX(1);} 60%{opacity:.9;} 100%{opacity:.3;} }
@keyframes armSwing { 0%{ transform: rotate(0deg) translate(0,0);} 50%{ transform: rotate(8deg) translate(1px,-1px);} 100%{ transform: rotate(0deg) translate(0,0);} }
.glass-card { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.stat { display: grid; grid-template-columns: 40px auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: rgba(0,0,0,0.15); }
.stat .icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, rgba(43,47,91,0.8), rgba(142,111,214,0.8)); }
.stat strong { display: block; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; }

/* Trust badges */
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; max-width: 720px; }
.trust li { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
.card-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-family: Poppins, Montserrat; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill { padding: 8px 12px; border-radius: 999px; background: rgba(184,156,242,0.12); color: var(--white); border: 1px solid rgba(184,156,242,0.25); font-weight: 600; font-size: 14px; }

/* Why list */
.why-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.why-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.why-list .icon { width: 20px; height: 20px; color: var(--accent); }

/* CTA */
.cta .cta-inner { margin-top: 12px; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(43,47,91,0.7), rgba(142,111,214,0.7)); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.cta h3 { margin: 0; font-family: Poppins, Montserrat; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.steps li span { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--navy), var(--purple)); color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.contact-item { display: grid; grid-template-columns: 40px auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--white); }
.contact-item .icon { width: 36px; height: 36px; color: var(--accent); }
.note { color: var(--muted); margin-top: 10px; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.project-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.project-header { padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.project-title { margin: 0; font-family: Poppins, Montserrat; font-size: 18px; }
.client-type { color: var(--accent); font-weight: 600; font-size: 13px; }
.project-body { padding: 14px; display: grid; gap: 10px; }
.project-body h4 { margin: 6px 0 0; font-size: 15px; font-weight: 700; font-family: Poppins, Montserrat; }
.project-body p { margin: 0; color: var(--text); opacity: 0.95; }
.benefits, .impact { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.project-cta { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-cta h5 { margin: 0; font-size: 14px; font-weight: 700; font-family: Poppins, Montserrat; }

/* Project media */
.project-media { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.project-image { width: 100%; height: auto; display: block; }

/* Bot team illustration section */
.illustration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.scene-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.scene-card h3 { margin: 8px 0 4px; font-family: Poppins, Montserrat; font-size: 18px; }
.scene-card p { margin: 0; color: var(--muted); font-size: 14px; }
.scene { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25)); }
.scene .type-line { animation: typeLine 2.8s ease-in-out infinite; }
.scene .bot.float { animation: floaty 4.5s ease-in-out infinite; }
.scene .bubble.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: 50% 50%; }

@keyframes pulse { 0%{opacity:.6; transform: scale(1);} 50%{opacity:.9; transform: scale(1.03);} 100%{opacity:.6; transform: scale(1);} }

/* Responsive adjustments */
@media (max-width: 980px) {
  .section { padding: 64px 0; }
  .grid.two-col { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .actions { justify-content: center; }
  .hero-art { margin-top: 12px; }
  .bot-scene { margin: 0 auto; max-width: 420px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .section-head { text-align: left; }
  .headline { font-size: clamp(26px, 7vw, 36px); }
  .subhead { font-size: clamp(14px, 4.5vw, 17px); }
  .trust { gap: 6px; }
  .scene-card { padding: 12px; }
  .illustration-grid { grid-template-columns: 1fr; gap: 14px; }
  .bot-scene { max-width: 360px; }
  .welcome-card { width: min(360px, 92%); right: 12px; bottom: 12px; padding: 12px; grid-template-columns: 56px auto; }
  .welcome-bot { width: 56px; height: 56px; }
  .nav.is-open { right: 4%; left: auto; top: 58px; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .section { padding: 44px 0; }
  .btn { width: 100%; }
  .actions { gap: 10px; }
  .bot-scene { max-width: 320px; }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0 26px; margin-top: 30px; background: rgba(18,19,39,0.35); backdrop-filter: blur(8px); overflow-x: hidden; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 6px; }
.footer-inner > div { min-width: 0; }
.footer-inner strong { display: block; font-family: Poppins, Montserrat; }
.footer-inner span { color: var(--muted); font-size: 14px; }
.copy { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; word-break: break-word; }
/* Footer links */
.site-footer a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

/* Mobile tap feedback */
@media (hover: none) {
  .btn:active { transform: scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .reveal { transition: none !important; }
}

/* Welcome Card */
.welcome-card { position: fixed; right: 18px; bottom: 18px; z-index: 20; width: min(380px, 92%);
  background: linear-gradient(135deg, rgba(43,47,91,0.85), rgba(142,111,214,0.85));
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  color: var(--white); padding: 14px; display: grid; grid-template-columns: 64px auto; gap: 12px;
  opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .35s ease, transform .35s ease;
}
.welcome-card.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.welcome-bot { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,0.15); }
.welcome-content h4 { margin: 2px 0 6px; font-family: Poppins, Montserrat; font-size: 18px; }
.welcome-content p { margin: 0 0 10px; color: var(--text); }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.welcome-close { position: absolute; top: 8px; right: 8px; background: transparent; border: 0; color: var(--white); opacity: .8; cursor: pointer; }
.welcome-close:hover { opacity: 1; }

/* Bot animation */
@keyframes floaty { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 92% { transform: scaleY(0.1); } 98% { transform: scaleY(1); } }
.bot { animation: floaty 4s ease-in-out infinite; }
.bot .eye { transform-origin: center; animation: blink 5s infinite; }
