/* ============================================================
   DIGITALIZED — style.css
   Design system: dark "signal grid" identity
   Display: Space Grotesk · Body: IBM Plex Sans · Utility: IBM Plex Mono
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* color */
  --ink: #05070a;          /* page background */
  --surface: #0b0f15;      /* raised surface */
  --surface-2: #101620;    /* cards */
  --line: rgba(148, 178, 200, 0.14);
  --line-strong: rgba(148, 178, 200, 0.28);
  --cyan: #00f3ff;         /* signature accent */
  --cyan-soft: rgba(0, 243, 255, 0.12);
  --cyan-text: #5ee6ee;    /* readable cyan for body-size text */
  --text: #e9eef4;
  --muted: #93a0ae;
  --muted-2: #6b7886;

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* scale */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.95rem, 1.6rem + 1.7vw, 2.8rem);
  --step-4: clamp(2.5rem, 1.9rem + 3.1vw, 4.1rem);
  --step-5: clamp(3rem, 2.1rem + 4.6vw, 5.4rem);

  /* layout */
  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 14px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan-text); text-decoration: none; }
a:hover { color: var(--cyan); }

::selection { background: var(--cyan); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cyan); color: var(--ink);
  padding: 0.6rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(var(--container), 100% - 2 * var(--pad));
  margin-inline: auto;
}

section { padding-block: var(--section); }

/* ---------- Signature: square-dot + mono eyebrow ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.7);
  flex: none;
}

/* cyan square "period" at end of headlines — echoes the logo tittles */
.sq { color: var(--cyan); }
h1 .dot, h2 .dot {
  display: inline-block;
  width: 0.16em; height: 0.16em;
  background: var(--cyan);
  margin-left: 0.12em;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.8);
  vertical-align: baseline;
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 38em;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary {
  background: var(--cyan);
  color: #021014;
}
.btn-primary:hover {
  color: #021014;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 243, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.nav-logo img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.lang-toggle button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.42rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--cyan);
  color: #021014;
  font-weight: 600;
}

.nav-cta { white-space: nowrap; padding: 0.55rem 1.2rem; font-size: 0.92rem; }

/* burger */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(5rem, 12vh, 9rem) clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}
#signal-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 1.4rem; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}
.hero-meta {
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.hero-meta b { color: var(--cyan-text); font-weight: 500; }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(4rem, 9vh, 6.5rem) clamp(2.5rem, 5vh, 4rem); }
.page-hero h1 { max-width: 14em; }

/* ---------- Service rows (home) ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 88px 1.1fr 1.6fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background 0.3s var(--ease);
  position: relative;
}
.service-row:hover { background: var(--surface); color: var(--text); }
.service-row .idx {
  font-family: var(--font-mono);
  color: var(--muted-2);
  font-size: 0.85rem;
}
.service-row h3 { margin: 0; transition: color 0.25s; }
.service-row:hover h3 { color: var(--cyan); }
.service-row p { margin: 0; color: var(--muted); max-width: 34em; }
.service-row .go {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
  font-size: 1.2rem;
}
.service-row:hover .go {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #021014;
  transform: rotate(-45deg);
}

/* ---------- Generic two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.split .sticky-col { position: sticky; top: 110px; }

/* ---------- Work / portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 3rem;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.work-card .shot {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 243, 255, 0.10), transparent 60%),
    var(--surface-2);
  padding: 1.6rem 1.2rem 0.4rem;
}
.work-card .shot img { transition: transform 0.45s var(--ease); }
.work-card:hover .shot img { transform: scale(1.03); }
.work-card .info {
  padding: 1.3rem 1.4rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.work-card .info h3 { font-size: 1.15rem; margin: 0 0 0.15rem; }
.work-card .info .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.work-card .visit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-text);
  white-space: nowrap;
}
.work-card .visit:hover { color: var(--cyan); }

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.process-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  position: relative;
  transition: border-color 0.3s;
}
.process-list li:hover { border-color: rgba(0, 243, 255, 0.4); }
.process-list li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1rem;
}
.process-list h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Feature list (service pages) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.3s;
}
.feature:hover { border-color: rgba(0, 243, 255, 0.4); }
.feature h3, .feature h4 { font-size: 1.12rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.7em; }
.feature h3::before, .feature h4::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--cyan);
  flex: none;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.6);
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* checklist */
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  padding: 0.7rem 0 0.7rem 1.9rem;
  position: relative;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 8px; height: 8px;
  background: var(--cyan);
}
.checklist li b { color: var(--text); font-weight: 600; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.stats-strip > div {
  padding: 2.2rem 1.5rem;
  text-align: center;
}
.stats-strip > div + div { border-left: 1px solid var(--line); }
.stats-strip .num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--text);
}
.stats-strip .num em { color: var(--cyan); font-style: normal; }
.stats-strip .lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 0.4rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 1.6rem;
  margin-top: 3rem;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(0, 243, 255, 0.55);
  box-shadow: 0 0 60px rgba(0, 243, 255, 0.08);
}
.price-card .plan {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card .badge {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  background: var(--cyan);
  color: #021014;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  margin-top: 0.8rem;
  line-height: 1;
}
.price-card .price small {
  font-size: 0.42em;
  color: var(--muted);
  font-weight: 500;
}
.price-card .setup { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.price-card .setup b { color: var(--cyan-text); }
.price-card ul {
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}
.price-card ul li {
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 7px; height: 7px;
  background: var(--cyan);
}
.price-card .btn { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 2.5rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem; top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 120%, rgba(0, 243, 255, 0.10), transparent 70%),
    var(--surface);
  text-align: center;
}
.cta-band h2 { max-width: 16em; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn { margin-top: 2rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-list .lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-list a { font-size: 1.1rem; font-weight: 500; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.form-grid { display: grid; gap: 1.1rem; }
.form-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0.8rem 0 0;
  min-height: 1.3em;
}
.form-status.ok { color: var(--cyan-text); }
.form-status.err { color: #ff7a7a; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin-top: 2.4em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose b, .prose strong { color: var(--text); }

/* ---------- 404 ---------- */
.error-hero {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-hero .code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 16vw, 9rem);
  color: var(--cyan);
  text-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3.5rem 0 2rem;
  margin-top: var(--section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid img { height: 24px; width: auto; margin-bottom: 1rem; }
.footer-grid p { color: var(--muted-2); font-size: 0.92rem; max-width: 26em; }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 0.6rem; }
.footer-grid ul a { color: var(--muted); font-size: 0.95rem; }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.dgc-launcher {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  z-index: 150;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--cyan);
  color: #021014;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 35px rgba(0, 243, 255, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.dgc-launcher:hover { transform: scale(1.07); }
.dgc-launcher svg { width: 26px; height: 26px; }
.dgc-launcher .ic-close { display: none; }
.dgc-launcher.open .ic-chat { display: none; }
.dgc-launcher.open .ic-close { display: block; }

.dgc-panel {
  position: fixed;
  right: 1.2rem; bottom: 6.2rem;
  z-index: 150;
  width: min(390px, calc(100vw - 2rem));
  height: min(580px, calc(100vh - 8.5rem));
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dgc-panel.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dgc-head {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.dgc-head .dot-live {
  width: 9px; height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: dgc-pulse 2s infinite;
}
@keyframes dgc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.dgc-head .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}
.dgc-head .s {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dgc-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.dgc-msg {
  max-width: 86%;
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.dgc-msg.user {
  align-self: flex-end;
  background: var(--cyan);
  color: #021014;
  border-bottom-right-radius: 4px;
}
.dgc-msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.dgc-msg.bot a { color: var(--cyan-text); text-decoration: underline; }
.dgc-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dgc-typing i {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: dgc-bounce 1.2s infinite;
}
.dgc-typing i:nth-child(2) { animation-delay: 0.15s; }
.dgc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dgc-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.dgc-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.dgc-input input {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.65rem 1.05rem;
}
.dgc-input input:focus {
  outline: none;
  border-color: var(--cyan);
}
.dgc-input button {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  border: none;
  background: var(--cyan);
  color: #021014;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease);
}
.dgc-input button:hover { transform: scale(1.06); }
.dgc-input button:disabled { opacity: 0.5; cursor: default; transform: none; }

/* rich blocks inside chat */
.dgc-rich {
  align-self: stretch;
  display: grid;
  gap: 0.6rem;
}
.dgc-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.dgc-card .h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.dgc-card .h .b {
  background: var(--cyan);
  color: #021014;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.dgc-card .p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.dgc-card .p small { font-size: 0.6em; color: var(--muted); font-weight: 500; }
.dgc-card .sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.dgc-card .sub b { color: var(--cyan-text); }
.dgc-card ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--line);
}
.dgc-card ul li {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.18rem 0 0.18rem 1.1rem;
  position: relative;
}
.dgc-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  background: var(--cyan);
}
.dgc-card img { border-radius: 8px; margin-bottom: 0.6rem; }
.dgc-card .meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dgc-card a.lnk {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.dgc-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cyan);
  color: #021014;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  margin-top: 0.7rem;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.dgc-btn:hover { box-shadow: 0 6px 20px rgba(0, 243, 255, 0.35); color: #021014; }
.dgc-call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: var(--cyan-text) !important;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 500;
}
.dgc-form .field { margin-bottom: 0.7rem; }
.dgc-form input, .dgc-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
}
.dgc-form input:focus, .dgc-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.dgc-form textarea { min-height: 70px; resize: vertical; }
.dgc-form .st {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}
.dgc-form .st.ok { color: var(--cyan-text); }
.dgc-form .st.err { color: #ff7a7a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .service-row { grid-template-columns: 56px 1fr auto; }
  .service-row p { grid-column: 2 / 3; }
  .service-row .go { grid-row: 1 / 3; align-self: center; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .sticky-col { position: static; }
  .pricing-grid { grid-template-columns: minmax(0, 460px); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: rgba(5, 7, 10, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.8rem var(--pad) 1.6rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .form-grid .row2 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .service-row { gap: 1rem; padding-inline: 0.2rem; }
}

@media (max-width: 420px) {
  .dgc-panel { right: 0.6rem; width: calc(100vw - 1.2rem); }
  .dgc-launcher { right: 0.8rem; bottom: 0.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  #signal-grid { display: none; }
}
