/* ============================================================
   DIGITAL ARK — Design System
   Matched to the brand logo: a deep-blue-to-cyan "D" mark on
   near-black. The glow is the signal here — a bright electric
   current running through a dark interface.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #05070a;
  --bg-navy: #0a0d12;
  --bg-navy-light: #121722;
  --bg-card: #0f141c;
  --bg-card-hover: #161e2b;
  --line: rgba(34, 224, 255, 0.16);
  --line-soft: rgba(233, 238, 245, 0.08);
  --gold: #2e8cff;
  --gold-bright: #22e0ff;
  --gold-dim: rgba(46, 140, 255, 0.5);
  --text: #e9eef5;
  --text-muted: #8fa3bd;
  --text-faint: #5c7089;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg-navy);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(46,140,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-navy) 12%);
  background-attachment: fixed;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px var(--gold-dim);
}

.text-muted { color: var(--text-muted); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #05070a;
  box-shadow: 0 8px 24px -8px rgba(46,140,255,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(46,140,255,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-soft);
}
.btn-ghost:hover { border-color: var(--gold-dim); background: rgba(46,140,255,0.06); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  z-index: 1001;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Beacon signature element ---------------- */
.beacon {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 20px 4px var(--gold-dim);
}
.beacon::before, .beacon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: sonar 3.2s var(--ease) infinite;
  opacity: 0;
}
.beacon::after { animation-delay: 1.6s; }
@keyframes sonar {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(9); opacity: 0; }
}

.hero-beacon-wrap {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

/* Horizon grid backdrop for hero sections */
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to top, black, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black, transparent 90%);
  transform: perspective(500px) rotateX(55deg);
  transform-origin: bottom;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero {
  position: relative;
  padding: 168px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 780px; }
.page-hero p { margin-top: 20px; font-size: 18px; color: var(--text-muted); max-width: 560px; }

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  margin-top: 28px;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lead {
  margin: 26px auto 40px;
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 100px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.hero-stats div {
  background: rgba(11,26,44,0.7);
  padding: 30px 20px;
  text-align: center;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-bright);
}
.hero-stats span { font-size: 13px; color: var(--text-muted); }

/* ---------------- Sections ---------------- */
section { position: relative; padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { margin-top: 18px; font-size: 17px; color: var(--text-muted); }

.divider {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-faint);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(46,140,255,0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.card ul li {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.card ul li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.card .price { margin-top: 20px; font-family: var(--font-display); font-size: 30px; color: var(--gold-bright); }
.card .price span { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); font-weight: 400; }

.card.featured { border-color: var(--gold-dim); position: relative; background: linear-gradient(180deg, rgba(46,140,255,0.08), var(--bg-card) 40%); }
.card.featured::before {
  content: 'Most chosen';
  position: absolute; top: -13px; left: 32px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: #05070a; padding: 5px 12px; border-radius: 999px; font-weight: 600;
}

/* ---------------- Process / numbered steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 0 26px 0 0;
  border-right: 1px solid var(--line-soft);
}
.step:last-child { border-right: none; }
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.step h3 { margin: 16px 0 10px; font-size: 18px; }
.step p { font-size: 14.5px; color: var(--text-muted); }

/* ---------------- Values grid (about) ---------------- */
.value-row {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.value-row:first-child { border-top: 1px solid var(--line-soft); }
.value-row .tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  width: 140px;
  flex-shrink: 0;
  padding-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.value-row h4 { font-size: 19px; margin-bottom: 8px; }
.value-row p { color: var(--text-muted); font-size: 15px; max-width: 620px; }

/* ---------------- Projects ---------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-dim); color: var(--text); }
.filter-btn.active { background: var(--gold); color: #05070a; border-color: var(--gold); font-weight: 600; }

.project-card { overflow: hidden; padding: 0; }
.project-thumb {
  height: 210px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(233,238,245,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(233,238,245,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}
.project-thumb span {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(233,238,245,0.75);
  letter-spacing: 0.02em;
}
.project-body { padding: 28px 30px 32px; }
.project-body .tag-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.project-body .pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
}
.project-body h3 { font-size: 20px; margin-bottom: 10px; }
.project-body p { color: var(--text-muted); font-size: 14.5px; }
.note-banner {
  margin-top: 50px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 26px 30px;
  color: var(--text-muted);
  font-size: 14.5px;
  text-align: center;
}

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.contact-info-card:first-child { padding-top: 0; }
.contact-info-card .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: rgba(46,140,255,0.12);
  display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.contact-info-card h4 { font-size: 15px; margin-bottom: 6px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12.5px; font-family: var(--font-mono); }
.contact-info-card p { font-size: 16.5px; }
.contact-info-card a:hover { color: var(--gold-bright); }

.map-wrap {
  margin-top: 30px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
  height: 260px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.form-card { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: 22px; padding: 44px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 9px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-navy);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 16px; font-size: 14px; color: var(--gold-bright); min-height: 20px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  border-radius: 28px;
  padding: 70px 50px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-navy-light));
  border: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.cta-banner p { color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; font-size: 16.5px; }
.cta-banner .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--line-soft); padding: 70px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .brand { margin-bottom: 18px; align-items: flex-start; }
.footer-brand .brand img { width: auto; height: 76px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 280px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14.5px; color: var(--text-muted); transition: color .3s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 30px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: var(--text-muted); transition: color .3s; }
.footer-bottom .socials a:hover { color: var(--gold); }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------------- CEO link ---------------- */
.ceo-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: white;
  transition: all 0.35s ease;
}
.ceo-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #00c8ff;
  transition: width 0.35s ease;
}
.ceo-link:hover {
  color: #00BFFF;
  transform: scale(1.08);
  text-shadow: 0 0 15px rgba(0, 200, 255, 0.7);
}
.ceo-link:hover::after { width: 100%; }

/* ---------------- AI / FAQ chat widget ---------------- */
.ai-chat-fab {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 28px -6px rgba(46,140,255,0.6);
  color: #05070a;
  cursor: pointer;
  transition: transform .35s cubic-bezier(0.16,1,0.3,1), box-shadow .35s cubic-bezier(0.16,1,0.3,1);
}
.ai-chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -6px rgba(46,140,255,0.75); }
.ai-chat-fab svg { width: 26px; height: 26px; }

.ai-chat-window {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 200px);
  background: #0a0d12;
  border: 1px solid rgba(233, 238, 245, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .3s cubic-bezier(0.16,1,0.3,1), transform .3s cubic-bezier(0.16,1,0.3,1);
}
.ai-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(233, 238, 245, 0.08);
  background: linear-gradient(135deg, rgba(46,140,255,0.14), transparent);
}
.ai-chat-header img { width: 34px; height: 34px; flex-shrink: 0; }
.ai-chat-header div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.ai-chat-header strong { font-family: 'Space Grotesk', sans-serif; font-size: 14.5px; color: #e9eef5; }
.ai-chat-header span { font-size: 12px; color: #8fa3bd; }
.ai-chat-header button {
  background: none; border: none; color: #8fa3bd; cursor: pointer;
  padding: 4px; display: flex; transition: color .2s;
}
.ai-chat-header button:hover { color: #e9eef5; }
.ai-chat-header button svg { width: 18px; height: 18px; }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-chat-messages::-webkit-scrollbar { width: 6px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: rgba(233,238,245,0.15); border-radius: 999px; }

.ai-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.ai-msg-bot {
  align-self: flex-start;
  background: #10233a;
  color: #e9eef5;
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #22e0ff, #2e8cff);
  color: #05070a;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.ai-msg-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #10233a;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.ai-msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #8fa3bd;
  animation: ai-typing 1.2s infinite ease-in-out;
}
.ai-msg-typing span:nth-child(2) { animation-delay: .2s; }
.ai-msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(233, 238, 245, 0.08);
}
.ai-chat-input-row input {
  flex: 1;
  background: #10233a;
  border: 1px solid rgba(233, 238, 245, 0.08);
  border-radius: 999px;
  padding: 11px 16px;
  color: #e9eef5;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.ai-chat-input-row input:focus { outline: none; border-color: #2e8cff; }
.ai-chat-input-row button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #22e0ff, #2e8cff);
  color: #05070a;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .2s;
}
.ai-chat-input-row button:hover { transform: scale(1.06); }
.ai-chat-input-row button svg { width: 17px; height: 17px; }
.ai-chat-input-row button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------- Quick-reply chips (FAQ bot) ---------------- */
.faq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.faq-chip {
  background: #10233a;
  border: 1px solid rgba(46,140,255,0.35);
  color: #e9eef5;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s;
  font-family: 'Inter', sans-serif;
}
.faq-chip:hover {
  background: rgba(46,140,255,0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ============================================================
   Hero "site being built" animation
   ============================================================ */
.hero-flex {
  display: flex !important;
  align-items: center !important;
  gap: 60px !important;
  flex-wrap: nowrap !important;
}
.hero-flex .hero-content {
  flex: 1 1 480px !important;
  text-align: left;
  margin: 0;
}
.hero-flex .hero-content .hero-ctas { justify-content: flex-start; }

.hero-device {
  position: relative;
  flex: 1 1 420px !important;
  max-width: 460px !important;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(46,140,255,0.28), transparent 65%);
  filter: blur(20px);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.device-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #0a0d12;
  border: 1px solid rgba(233,238,245,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(46,140,255,0.08);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #10161f;
  border-bottom: 1px solid rgba(233,238,245,0.08);
}
.device-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(233,238,245,0.18);
}
.device-bar span:nth-child(1) { background: #ff5f56; opacity: .7; }
.device-bar span:nth-child(2) { background: #ffbd2e; opacity: .7; }
.device-bar span:nth-child(3) { background: #27c93f; opacity: .7; }
.device-url {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #5c7089;
  background: rgba(233,238,245,0.05);
  padding: 3px 10px;
  border-radius: 999px;
}

.device-screen {
  padding: 22px 20px 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.build-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.build-logo {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #22e0ff, #2e8cff);
  transform-origin: left center;
  animation: buildA 7s ease-in-out infinite;
}
.build-nav-links { display: flex; gap: 10px; }
.build-nav-links span {
  width: 30px; height: 7px; border-radius: 4px;
  background: rgba(233,238,245,0.14);
  display: block;
  transform-origin: left center;
  animation: buildB 7s ease-in-out infinite;
}
.build-nav-links span:nth-child(2) { animation-delay: .08s; }
.build-nav-links span:nth-child(3) { animation-delay: .16s; }

.build-hero { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.build-line {
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(233,238,245,0.22), rgba(233,238,245,0.1));
  transform-origin: left center;
}
.build-line-lg { width: 78%; animation: buildC 7s ease-in-out infinite; }
.build-line-md { width: 55%; height: 11px; animation: buildD 7s ease-in-out infinite; }
.build-btn {
  margin-top: 8px;
  width: 120px; height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22e0ff, #2e8cff);
  transform-origin: left center;
  animation: buildE 7s ease-in-out infinite;
}

.build-grid { display: flex; gap: 10px; margin-top: auto; }
.build-card {
  flex: 1;
  height: 56px;
  border-radius: 10px;
  background: rgba(46,140,255,0.1);
  border: 1px solid rgba(46,140,255,0.2);
  transform-origin: bottom center;
}
.build-card:nth-child(1) { animation: buildF 7s ease-in-out infinite; }
.build-card:nth-child(2) { animation: buildG 7s ease-in-out infinite; }
.build-card:nth-child(3) { animation: buildH 7s ease-in-out infinite; }

@keyframes buildA {
  0%, 2%   { transform: scaleX(0); opacity: 0; }
  8%       { transform: scaleX(1); opacity: 1; }
  82%      { transform: scaleX(1); opacity: 1; }
  92%, 100%{ transform: scaleX(0); opacity: 0; }
}
@keyframes buildB {
  0%, 10%  { transform: scaleX(0); opacity: 0; }
  16%      { transform: scaleX(1); opacity: 1; }
  82%      { transform: scaleX(1); opacity: 1; }
  92%, 100%{ transform: scaleX(0); opacity: 0; }
}
@keyframes buildC {
  0%, 18%  { transform: scaleX(0); opacity: 0; }
  26%      { transform: scaleX(1); opacity: 1; }
  82%      { transform: scaleX(1); opacity: 1; }
  92%, 100%{ transform: scaleX(0); opacity: 0; }
}
@keyframes buildD {
  0%, 27%  { transform: scaleX(0); opacity: 0; }
  35%      { transform: scaleX(1); opacity: 1; }
  82%      { transform: scaleX(1); opacity: 1; }
  92%, 100%{ transform: scaleX(0); opacity: 0; }
}
@keyframes buildE {
  0%, 37%  { transform: scaleX(0); opacity: 0; }
  45%      { transform: scaleX(1); opacity: 1; }
  82%      { transform: scaleX(1); opacity: 1; }
  92%, 100%{ transform: scaleX(0); opacity: 0; }
}
@keyframes buildF {
  0%, 48%  { transform: scaleY(0); opacity: 0; }
  56%      { transform: scaleY(1); opacity: 1; }
  82%      { transform: scaleY(1); opacity: 1; }
  92%, 100%{ transform: scaleY(0); opacity: 0; }
}
@keyframes buildG {
  0%, 53%  { transform: scaleY(0); opacity: 0; }
  61%      { transform: scaleY(1); opacity: 1; }
  82%      { transform: scaleY(1); opacity: 1; }
  92%, 100%{ transform: scaleY(0); opacity: 0; }
}
@keyframes buildH {
  0%, 58%  { transform: scaleY(0); opacity: 0; }
  66%      { transform: scaleY(1); opacity: 1; }
  82%      { transform: scaleY(1); opacity: 1; }
  92%, 100%{ transform: scaleY(0); opacity: 0; }
}

.floating-chip {
  position: absolute;
  z-index: 2;
  background: var(--bg-card, #0f141c);
  border: 1px solid rgba(46,140,255,0.35);
  color: #e9eef5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.5);
  animation: chipFloat 4.5s ease-in-out infinite;
}
.chip-1 { top: -14px; left: -18px; animation-delay: 0s; }
.chip-2 { bottom: 30px; right: -22px; animation-delay: 1.1s; font-size: 16px; }
.chip-3 { top: 46%; left: -30px; animation-delay: 2.2s; font-size: 16px; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .device-glow, .build-logo, .build-nav-links span, .build-line,
  .build-btn, .build-card, .floating-chip {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step { border-right: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-flex { flex-direction: column !important; }
  .hero-flex .hero-content { text-align: center; }
  .hero-flex .hero-content .hero-ctas { justify-content: center; }
  .hero-device { margin-top: 40px; max-width: 380px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex; position: fixed; inset: 0; top: 68px;
    flex-direction: column; background: var(--bg-deep);
    padding: 40px 32px; gap: 8px; height: calc(100vh - 68px);
  }
  .nav.mobile-open .nav-links a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 100px; }
  .page-hero { padding: 140px 0 70px; }
  .value-row { flex-direction: column; gap: 10px; }
  .value-row .tag { width: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  section { padding: 80px 0; }
  .form-card { padding: 30px 24px; }
  .ai-chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .ai-chat-window { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
}

@media (max-width: 480px) {
  .floating-chip { display: none; }
}
