:root {
  --bg: #070a12;
  --bg-soft: #0c1120;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef6;
  --muted: #93a1b5;
  --c1: #22d3ee;   /* cyan */
  --c2: #3b82f6;   /* blue */
  --c3: #2dd4bf;   /* teal */
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background layers */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 360px at 50% -8%, rgba(34,211,238,0.16), transparent 70%),
    radial-gradient(600px 400px at 85% 10%, rgba(59,130,246,0.14), transparent 70%);
}

/* Layout */
.section { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
.kicker { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 0.04em; color: var(--c1); margin: 0 0 14px; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.grad { background: linear-gradient(100deg, var(--c1), var(--c2) 60%, var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; }
.muted { color: var(--muted); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }

/* Buttons */
.btn { font-family: inherit; font-size: 15px; font-weight: 500; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(100deg, var(--c1), var(--c2)); color: #04121a; font-weight: 600; box-shadow: 0 8px 30px rgba(34,211,238,0.25); }
.btn-primary:hover { box-shadow: 0 10px 38px rgba(34,211,238,0.4); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--c1); }

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 70px 24px 40px; text-align: center; }
.hero-mark { width: 76px; height: 76px; margin: 0 auto 20px; display: block; filter: drop-shadow(0 0 28px rgba(34,211,238,0.28)); }
.hero h1 { font-size: clamp(44px, 8vw, 84px); margin: 14px 0 18px; }
.hero .lede { margin: 0 auto 30px; font-size: 20px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-strip { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: 13px; font-family: "IBM Plex Mono", monospace; }
.hero-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); display: inline-block; }

/* Section heads */
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, border-color .2s ease, background .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(255,255,255,0.055); }
.card .ic { font-size: 24px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(34,211,238,0.1); border: 1px solid var(--border); margin-bottom: 14px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Band */
.band { background: linear-gradient(180deg, rgba(34,211,238,0.05), transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why { max-width: 760px; }
.why h2 { font-size: clamp(28px, 4.5vw, 44px); margin: 0 0 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--panel); }
.step-n { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--c1); }
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--panel); }
.ind h3 { font-size: 19px; margin: 0 0 10px; }
.ind p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.pill { font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.pill-live { color: #04121a; background: linear-gradient(100deg, var(--c1), var(--c3)); border-color: transparent; font-weight: 600; }

/* CTA */
.cta { text-align: center; max-width: 680px; margin: 0 auto; padding: 48px 24px; border: 1px solid var(--border); border-radius: 24px; background: radial-gradient(600px 200px at 50% 0%, rgba(34,211,238,0.08), transparent 70%), var(--panel); }
.cta h2 { font-size: clamp(28px, 4.5vw, 42px); margin: 0 0 14px; }
.cta .lede { margin: 0 auto 24px; }
.contact-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-meta { color: var(--muted); font-size: 13px; margin-top: 18px; font-family: "IBM Plex Mono", monospace; }

/* Footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 50px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }

/* Chat */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(100deg, var(--c1), var(--c2)); color: #04121a;
  border: none; border-radius: 999px; padding: 13px 20px; font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; box-shadow: 0 10px 34px rgba(34,211,238,0.35); transition: transform .15s;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: #04121a; box-shadow: 0 0 0 0 rgba(4,18,26,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(4,18,26,0.45); } 70% { box-shadow: 0 0 0 8px rgba(4,18,26,0); } 100% { box-shadow: 0 0 0 0 rgba(4,18,26,0); } }

.chat-panel {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 44px));
  background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 18px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.chat-panel.open { display: flex; animation: rise .18s ease; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chat-header strong { display: block; font-size: 15px; }
.chat-sub { font-size: 12px; color: var(--muted); }
.chat-close { background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.chat-close:hover { color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(100deg, var(--c1), var(--c2)); color: #04121a; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 999px; padding: 11px 16px; color: var(--text); font-family: inherit; font-size: 14.5px; outline: none; }
.chat-form input:focus { border-color: var(--c1); }
.chat-form button { background: linear-gradient(100deg, var(--c1), var(--c2)); color: #04121a; border: none; border-radius: 50%; width: 42px; height: 42px; font-size: 18px; cursor: pointer; flex-shrink: 0; }

/* Responsive ---------------------------------------------------- */

/* Tablet: two columns */
@media (max-width: 980px) {
  .grid, .steps, .industries { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 22px; }
}

/* Phone */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; gap: 12px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }          /* the floating Assistant button covers this on mobile */

  .section { padding: 56px 18px; }
  .section-head { margin-bottom: 26px; }

  .hero { padding: 44px 18px 24px; }
  .hero-mark { width: 62px; height: 62px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .hero .lede { font-size: 17px; }
  .hero-actions { gap: 10px; }
  .hero-strip { gap: 10px 14px; margin-top: 32px; }

  .grid, .steps, .industries { grid-template-columns: 1fr; }

  .cta { padding: 34px 20px; border-radius: 20px; }
  .footer { padding: 26px 18px 44px; }

  /* Chat becomes a full-width bottom sheet */
  .chat-fab { bottom: 16px; right: 16px; padding: 12px 16px; }
  .chat-panel {
    bottom: 0; right: 0; left: 0;
    width: 100%; height: 86dvh;
    border-radius: 18px 18px 0 0;
  }
}
