:root {
  --bg: #0b1220;
  --bg-2: #0f1a2f;
  --card: #111a2f;
  --text: #e6eefc;
  --muted: #a9b5cf;
  --accent: #22c55e; /* emerald */
  --accent-2: #14b8a6; /* teal */
  --accent-3: #3b82f6; /* blue */
  --danger: #ef4444;
  --shadow: rgba(2, 6, 23, 0.55);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 15% 10%, #12203a 0%, var(--bg) 45%),
              radial-gradient(1400px 1000px at 90% 0%, #10223f 0%, var(--bg) 50%),
              var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

.bg-decor .blob {
  position: fixed; inset: auto; z-index: -1; filter: blur(70px); opacity: 0.55;
}
.bg-decor .b1 { width: 540px; height: 540px; left: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, #1f9d86, transparent 60%), radial-gradient(circle at 70% 70%, #3b82f6, transparent 50%); }
.bg-decor .b2 { width: 600px; height: 600px; right: -160px; top: 240px; background: radial-gradient(circle at 70% 40%, #22c55e, transparent 60%), radial-gradient(circle at 20% 60%, #8b5cf6, transparent 55%); }
.bg-decor .grid-overlay { position: fixed; inset: 0; background-image: linear-gradient(transparent 95%, rgba(255,255,255,0.05) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.05) 95%); background-size: 24px 24px; opacity: 0.2; z-index: -1; }

.container { width: min(1100px, 92vw); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); background: linear-gradient(to bottom, rgba(11,18,32,0.85), rgba(11,18,32,0.35) 80%, transparent); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.brand-img { height: 100px; width: auto; display: block; }
.brand.small .brand-img { height: 22px; }
.brand.small span { font-size: 14px; color: var(--muted); }

nav a { color: var(--text); text-decoration: none; opacity: 0.85; margin-left: 18px; font-weight: 500; }
nav a:hover { opacity: 1; }
/* Hide drawer close button on desktop */
nav#siteNav .drawer-close { display: none; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px; cursor: pointer; gap: 5px; align-items: center; justify-content: center; flex-direction: column; }
.menu-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); opacity: 0.9; margin: 3px 0; border-radius: 2px; }

/* Drawer + backdrop (mobile) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity 200ms ease; z-index: 80; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #041314; border: none; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn:hover { filter: brightness(1.05); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); box-shadow: none; border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero { padding: 52px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 42px; }
.hero-copy h1 { font-family: "Space Grotesk", Inter, system-ui; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.6px; }
.highlight { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.cta-row { display: flex; gap: 12px; align-items: center; margin: 10px 0 18px; }
.badges { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 12px; }
.badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); padding: 8px 10px; border-radius: 10px; width: fit-content; }
.stats { display: flex; gap: 18px; margin-top: 8px; }
.stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.06); padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15) inset; }
.stat .num { font-family: "Space Grotesk"; font-size: 22px; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; }
.phone { width: 330px; height: 640px; margin: 0 auto; border-radius: 28px; background: #0f1526; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 8px rgba(15,21,38,0.4) inset; overflow: hidden; }
.phone-top { height: 24px; display: grid; place-items: center; }
.camera { width: 56px; height: 18px; background: #050914; border-radius: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, rgba(20,28,49,0.95), rgba(14,20,37,0.9)); border-bottom: 1px solid rgba(255,255,255,0.06); }
.chat-head .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #1f9d86, #3b82f6); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chat-head .meta .title { font-weight: 700; font-size: 14px; }
.chat-head .meta .sub { font-size: 11px; color: var(--muted); }
.chat-head .chip { margin-left: auto; font-size: 11px; color: #041314; padding: 4px 8px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; }

.chat-window { height: 480px; padding: 12px; overflow: hidden auto; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, rgba(10,15,30,0.6), rgba(10,15,30,0.2)); }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 16px; font-size: 14px; position: relative; animation: pop 280ms ease-out both; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.bubble.guest { align-self: flex-start; background: #1b243a; border: 1px solid rgba(255,255,255,0.06); }
.bubble.stello { align-self: flex-end; background: #1e3a2f; border: 1px solid rgba(34,197,94,0.25); }
.bubble .meta { margin-top: 6px; font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.ticks { display: inline-flex; gap: 2px; margin-left: 4px; }
.tick { width: 12px; height: 12px; display: inline-block; }
.tick svg { display: block; width: 12px; height: 12px; color: #6ee7b7; opacity: 0.9; }

@keyframes pop { 0% { transform: translateY(6px) scale(0.98); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

.composer { height: 56px; padding: 10px 12px; background: linear-gradient(180deg, rgba(20,28,49,0.95), rgba(14,20,37,0.9)); border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer .hint { font-size: 11px; color: var(--muted); opacity: 0.9; }
.typing { display: inline-flex; gap: 4px; padding: 6px 10px; background: rgba(255,255,255,0.06); border-radius: 999px; border: 1px solid rgba(255,255,255,0.08); }
.typing span { width: 6px; height: 6px; background: #c7d2fe; display: inline-block; border-radius: 999px; animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.6; } 40% { transform: translateY(-4px); opacity: 1; } }

.controls { display: flex; align-items: center; justify-content: space-between; margin: 12px auto 0; width: 330px; }
.scenario { color: var(--muted); font-size: 13px; }

.floating-card { position: absolute; right: -10px; bottom: 24px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 12px 14px; width: 240px; box-shadow: 0 18px 40px rgba(0,0,0,0.25); backdrop-filter: blur(6px); }
.floating-card .fc-title { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.floating-card .fc-list { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.floating-card .dot { width: 6px; height: 6px; display: inline-block; border-radius: 999px; background: var(--accent); margin-right: 6px; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }

.features { padding: 72px 0 16px; }
.features h2, .how h2 { text-align: center; font-size: clamp(26px, 4vw, 36px); margin-top: 0; }
.feature-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 18px; border-radius: 16px; min-height: 180px; box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.card h3 { margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 24px rgba(34,197,94,0.25); }
.i-chat { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z"/></svg>') no-repeat center / 70% 70%; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v8Z"/></svg>') no-repeat center / 70% 70%; }
.i-rocket { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 14c-2 0-3 2-3 4 2-2 4-1 4-1s1 2-1 4c2 0 4-1 4-3 0-1 1-3 2-4l8-8c1-1 1-3 0-4s-3-1-4 0l-8 8c-1 1-3 2-4 2Z"/></svg>') no-repeat center / 70% 70%; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 14c-2 0-3 2-3 4 2-2 4-1 4-1s1 2-1 4c2 0 4-1 4-3 0-1 1-3 2-4l8-8c1-1 1-3 0-4s-3-1-4 0l-8 8c-1 1-3 2-4 2Z"/></svg>') no-repeat center / 70% 70%; }
.i-calendar { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v4M17 2v4M3 9h18M5 5h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z"/></svg>') no-repeat center / 70% 70%; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v4M17 2v4M3 9h18M5 5h14a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z"/></svg>') no-repeat center / 70% 70%; }
.i-plug { mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 7v6m6-6v6M6 13h12v3a6 6 0 0 1-6 6 6 6 0 0 1-6-6v-3Z"/></svg>') no-repeat center / 70% 70%; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 7v6m6-6v6M6 13h12v3a6 6 0 0 1-6 6 6 6 0 0 1-6-6v-3Z"/></svg>') no-repeat center / 70% 70%; }

.how { padding: 40px 0 16px; }
.steps { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 18px; border-radius: 16px; min-height: 160px; }
.step .num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #041314; font-weight: 800; margin-bottom: 8px; }

.cta { padding: 64px 0 84px; }
.cta-inner { background: linear-gradient(180deg, rgba(20,28,49,0.6), rgba(14,20,37,0.6)); border: 1px solid rgba(255,255,255,0.08); border-radius: 18px; padding: 28px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,0.25); }
.cta-inner h2 { margin: 0 0 6px; }
.cta-inner p { color: var(--muted); margin: 0 0 16px; }

.site-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 16px 0; background: rgba(11,18,32,0.6); }
.ftr { display: flex; align-items: center; justify-content: space-between; }
.legal { color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  /* Header: toggle left, brand right */
  .nav { align-items: center; gap: 10px; }
  .menu-toggle { display: inline-flex; order: 1; }
  .brand { order: 3; margin-left: auto; }
  /* Drawer styles */
  nav#siteNav { position: fixed; inset: 0 auto 0 0; width: 280px; height: 100vh; background: rgba(16,24,44,0.98); border-right: 1px solid rgba(255,255,255,0.08); padding: 46px 16px 18px; transform: translateX(-100%); transition: transform 260ms ease; z-index: 90; display: block; }
  nav#siteNav.open { transform: translateX(0); }
  nav#siteNav a { display: block; margin: 0; padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  nav#siteNav a:last-child { border-bottom: 0; }
  nav#siteNav .drawer-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
