/* ============================================================
   Billy Digitals — Premium Agency Stylesheet
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul[class], ol[class] { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Design tokens ---------- */
:root {
  --bg: #060b1a;
  --bg-2: #0a1226;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(120, 180, 255, 0.09);
  --border: rgba(120, 180, 255, 0.14);
  --text: #eaf2ff;
  --muted: #93a4c4;
  --c1: #2b7fff;
  --c2: #38bdf8;
  --c3: #22d3ee;
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 50%, var(--c3));
  /* darker stops so white text keeps WCAG AA contrast on text-bearing elements */
  --grad-btn: linear-gradient(100deg, #1d6ff5, #0ea5e9 50%, #0891b2);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

::selection { background: rgba(56, 189, 248, 0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2e45; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3b4060; }

/* ---------- Utilities ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(820px, 92%); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--c1); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c3);
  border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 18px; background: rgba(34, 211, 238, 0.07);
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
.sub { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

.grid { display: grid; gap: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem; padding: 14px 28px; border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 8px 28px rgba(43, 127, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(56, 189, 248, 0.45); }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text); background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.btn-block { width: 100%; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px 0; transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; gap: 28px; }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  perspective: 700px;
}
.logo-ic { width: 32px; height: 32px; display: block; flex: none; }
.logo-full {
  height: 3in; /* ~288px — sized so the "Web Design & App Development" line is legible */
  width: auto; display: block;
  transform-style: preserve-3d; will-change: transform;
  animation: logoSway 7s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65)) drop-shadow(0 6px 18px rgba(56, 189, 248, 0.28));
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), height 0.3s ease;
}
/* shrink once the user scrolls so it doesn't dominate the whole viewport */
.site-header.scrolled .logo-full { height: 110px; }
@media (max-width: 900px) {
  .logo-full { height: 1.9in; }
  .site-header.scrolled .logo-full { height: 84px; }
}
@media (max-width: 560px) {
  .logo-full { height: 1.35in; }
  .site-header.scrolled .logo-full { height: 64px; }
}
@keyframes logoSway {
  0%, 100% { transform: rotateY(-11deg) rotateX(3deg) translateZ(0); }
  50%      { transform: rotateY(11deg) rotateX(-3deg) translateZ(14px); }
}
.logo:hover .logo-full {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .logo-full { animation: none; }
}
.logo-word > span {
  background: linear-gradient(100deg, #059669, #10b981 50%, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { padding: 11px 22px; font-size: 0.9rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 360px 0 110px; text-align: center;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.orb-1 { width: 480px; height: 480px; background: rgba(43, 127, 255, 0.35); top: -140px; left: -120px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: rgba(56, 189, 248, 0.28); top: 60px; right: -140px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 360px; height: 360px; background: rgba(34, 211, 238, 0.18); bottom: -160px; left: 34%; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 34px) scale(1.12); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: #fbd38d;
  border: 1px solid rgba(251, 211, 141, 0.3); background: rgba(251, 211, 141, 0.07);
  padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem); letter-spacing: -0.03em;
  max-width: 900px; margin-inline: auto;
}
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 640px; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 880px; margin: 72px auto 0;
}
.hero-stats > div {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 12px;
}
.hero-stats dt { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; }
.hero-stats dt span {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats dd { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border); background: var(--bg-2);
  overflow: hidden; padding: 18px 0; position: relative;
}
.marquee-track { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.marquee ul { display: flex; gap: 56px; padding-right: 56px; }
.marquee li {
  font-family: var(--font-display); font-weight: 600; color: var(--muted);
  white-space: nowrap; font-size: 0.98rem;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); background: var(--card-hover); border-color: rgba(56, 189, 248, 0.4); }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43, 127, 255, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(43, 127, 255, 0.35); color: #93c5fd; margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Templates ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 42px; }
.fbtn {
  padding: 9px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
}
.fbtn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.fbtn.active { background: var(--grad-btn); color: #fff; border-color: transparent; }
.templates-grid { grid-template-columns: repeat(3, 1fr); }
.tcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: transform 0.3s ease, border-color 0.3s ease;
}
.tcard:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.45); }
.tcard.hide { display: none; }
.mock {
  --h: 250;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, hsla(var(--h), 60%, 22%, 0.4), rgba(8, 10, 18, 0.92));
}
.mock-bar {
  display: flex; gap: 5px; padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: hsla(var(--h), 80%, 65%, 0.55); }
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; }
.sk { border-radius: 6px; background: hsla(var(--h), 70%, 68%, 0.16); min-height: 8px; }
.sk-nav {
  height: 10px; width: 100%;
  background: linear-gradient(90deg, hsla(var(--h), 85%, 70%, 0.5) 0 18%, hsla(var(--h), 70%, 68%, 0.14) 24% 100%);
}
.sk-hero { height: 54px; background: linear-gradient(120deg, hsla(var(--h), 85%, 62%, 0.45), hsla(calc(var(--h) + 60), 85%, 62%, 0.35)); }
.sk-line { height: 8px; width: 70%; }
.sk-line.sk-short { width: 45%; }
.sk-btn { height: 14px; width: 34%; background: hsla(var(--h), 90%, 65%, 0.6); }
.sk-tall { height: 56px; }
.sk-side { width: 30%; flex: none; }
.sk-row { display: flex; gap: 8px; }
.sk-row .sk { flex: 1; height: 34px; }
.sk-row .sk-tall { height: 56px; }
.tinfo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 6px 4px; }
.tinfo h3 { font-size: 1.02rem; }
.tcat { color: var(--muted); font-size: 0.82rem; }
.tlink { font-size: 0.88rem; font-weight: 600; color: #93c5fd; white-space: nowrap; transition: color 0.2s ease; }
.tlink:hover { color: #c4b5fd; }
.tlink span { display: inline-block; transition: transform 0.2s ease; }
.tlink:hover span { transform: translateX(4px); }

/* ---------- Process ---------- */
.process-list {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  counter-reset: step; margin-top: 10px;
}
.process-list li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; position: relative;
}
.pnum {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.process-list h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-list p { color: var(--muted); font-size: 0.88rem; }
.why-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 46px; text-align: center;
}
.why-strip > div {
  border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 18px 12px;
}
.why-strip strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.why-strip span { color: var(--muted); font-size: 0.84rem; }

/* ---------- Plans ---------- */
.plans-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: 34px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, 0.4); }
.plan h3 { font-size: 1.35rem; margin-bottom: 8px; }
.plan-for { color: var(--muted); font-size: 0.92rem; min-height: 58px; }
.plan ul { margin: 22px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 0.93rem; color: #cfd3ea; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--c3); font-weight: 700;
}
.plan-featured {
  background: linear-gradient(170deg, rgba(43, 127, 255, 0.14), rgba(56, 189, 248, 0.08) 55%, var(--card));
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 24px 60px rgba(43, 127, 255, 0.2);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: #fff; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Testimonials ---------- */
.quotes-grid { grid-template-columns: repeat(3, 1fr); }
.quote {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px;
}
.stars { color: #fbbf24; letter-spacing: 4px; margin-bottom: 14px; }
.quote blockquote { color: #d7daf0; font-size: 0.98rem; }
.quote figcaption { margin-top: 20px; display: flex; flex-direction: column; }
.quote figcaption strong { font-family: var(--font-display); }
.quote figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color 0.3s ease;
}
.faq-item.open { border-color: rgba(56, 189, 248, 0.45); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; padding: 20px 24px; font-weight: 600; font-size: 1rem;
  font-family: var(--font-display);
}
.faq-x { font-size: 1.4rem; color: var(--c3); transition: transform 0.3s ease; line-height: 1; }
.faq-item.open .faq-x { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 24px 22px; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.ccard {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.3s ease, border-color 0.3s ease;
}
a.ccard:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.45); }
.ccard h3 { font-size: 1.02rem; }
.ccard p { color: #cfd3ea; font-size: 0.93rem; margin-top: 2px; word-break: break-all; }
.ccard span { color: var(--muted); font-size: 0.82rem; }
.ccard .card-icon { margin-bottom: 0; }
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: #cfd3ea; }
.field input, .field select, .field textarea {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; font-size: 0.95rem; color: var(--text); width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8a90ab; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.22);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--text); }
.form-note { color: var(--muted); font-size: 0.82rem; text-align: center; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding: 20px 0;
  color: var(--muted); font-size: 0.85rem;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 190;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Chatbot ---------- */
.chat { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(43, 127, 255, 0.5);
  transition: transform 0.25s ease;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-toggle svg { width: 27px; height: 27px; grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.2s ease; }
.chat-toggle .ico-close { opacity: 0; transform: rotate(-90deg); }
.chat.open .ico-chat { opacity: 0; transform: rotate(90deg); }
.chat.open .ico-close { opacity: 1; transform: none; }
.chat-panel {
  position: absolute; bottom: 76px; right: 0;
  width: 380px; max-width: calc(100vw - 40px); height: 520px; max-height: calc(100vh - 130px);
  background: #0d0f1c; border: 1px solid var(--border); border-radius: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(14px) scale(0.98); pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.chat.open .chat-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: linear-gradient(120deg, rgba(43, 127, 255, 0.25), rgba(56, 189, 248, 0.15));
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); font-family: var(--font-display); font-weight: 700; color: #fff;
}
.chat-head strong { font-family: var(--font-display); display: block; line-height: 1.2; }
.chat-head span { color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; display: inline-block; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5;
  overflow-wrap: break-word;
}
.msg.bot { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--grad-btn); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg a { color: #7dd3fc; text-decoration: underline; }
.msg.typing { display: flex; gap: 5px; padding: 15px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-chips button {
  font-size: 0.78rem; font-weight: 500; color: #c7cbe8;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px;
  background: rgba(255, 255, 255, 0.03); transition: all 0.2s ease;
}
.chat-chips button:hover { border-color: var(--c1); color: #fff; background: rgba(43, 127, 255, 0.18); }
.chat-input {
  display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-input input {
  flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 11px 17px; font-size: 0.9rem; color: var(--text);
}
.chat-input input:focus { outline: none; border-color: var(--c1); }
.chat-input button {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.chat-input button:hover { transform: scale(1.08); }
.chat-input button svg { width: 19px; height: 19px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #14172a; border: 1px solid rgba(56, 189, 248, 0.5); color: var(--text);
  padding: 13px 24px; border-radius: 14px; font-size: 0.92rem; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow); max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); }
  .why-strip { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-for { min-height: 0; }
  .quotes-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    /* anchored to the fixed header so it tracks the real header height */
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column; gap: 0; padding: 12px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-16px); opacity: 0; pointer-events: none;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 14px; font-size: 1.05rem; }
  .site-header:has(.nav-links.open) { background: rgba(6, 7, 13, 0.97); }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .hero { padding: 150px 0 84px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .services-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .wa-float { bottom: 20px; left: 16px; width: 52px; height: 52px; }
  .chat { bottom: 20px; right: 16px; }
  .chat-panel { height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   3D layer — WebGL hero object + interactive card tilt
   ============================================================ */
.hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.82;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(6, 11, 26, 0.86), rgba(6, 11, 26, 0.42) 55%, transparent 78%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.card, .tcard, .plan { transform-style: preserve-3d; }
.tilt { will-change: transform; transition: transform 0.35s cubic-bezier(.2,.7,.2,1); }
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease; z-index: 2;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(120, 200, 255, 0.16), transparent 60%);
}
.tilt:hover .tilt-glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-gl { display: none; }
  .tilt { transform: none !important; }
}

/* ============================================================
   Premium polish layer
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* Consistent keyboard focus ring across all interactive elements */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.fbtn:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--c3);
  outline-offset: 3px;
}

/* Cursor-tracking spotlight glow on service cards */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.18), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

/* Subtle grain texture for a premium, non-flat finish */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Plan cards lift a touch more with a colored edge glow on hover */
.plan:hover, .tcard:hover, .quote:hover {
  box-shadow: 0 22px 55px rgba(43, 127, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .card::before { display: none; }
}

/* ---------- Template thumbnails (link to live samples) ---------- */
.tthumb {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 10; border: 1px solid var(--border);
  background: linear-gradient(140deg, var(--t1, #6366f1), var(--t2, #22d3ee));
  isolation: isolate;
}
.tthumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: overlay;
}
.tthumb-chrome { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.tthumb-chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.tthumb-emoji {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-size: 3.6rem; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
  transition: transform 0.35s ease;
}
.tthumb:hover .tthumb-emoji { transform: scale(1.12) rotate(-5deg); }
.tthumb-view {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 14px 12px; font-size: 0.86rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  display: flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.tthumb:hover .tthumb-view, .tthumb:focus-visible .tthumb-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tthumb-view { opacity: 1; transform: none; }
  .tthumb-emoji { transition: none; }
}

/* ============================================================
   Futuristic theme layer
   ============================================================ */
body {
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(43, 127, 255, 0.12), transparent 62%),
    radial-gradient(900px 500px at 92% 8%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
}

/* faint tech grid behind the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 38%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 38%, transparent 76%);
}

/* neon glow on primary actions */
.btn-primary { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 10px 30px rgba(43, 127, 255, 0.45); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6), 0 14px 42px rgba(34, 211, 238, 0.5); }
.tag { box-shadow: 0 0 22px rgba(34, 211, 238, 0.12); }

/* glowing edge on hovered surfaces */
.card:hover, .plan:hover, .tcard:hover, .quote:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 22px 55px rgba(43, 127, 255, 0.18);
}

/* scrolled header: glass + thin cyan hairline */
.site-header.scrolled {
  background: rgba(6, 11, 26, 0.82);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(56, 189, 248, 0.16);
}

/* animated gradient sheen on the marquee edge */
.marquee { border-block-color: rgba(56, 189, 248, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .hero::before { display: none; }
}
