/* =========================
   TK Web Studio - blue/black/navy brand system
========================= */
:root {
  --bg: #02050d;
  --bg-2: #061329;
  --bg-3: #0b1d3a;
  --panel: rgba(255,255,255,.05);
  --panel-strong: rgba(255,255,255,.08);
  --text: #f5f9ff;
  --muted: #b8c8dc;
  --dim: #7b8da6;
  --line: rgba(0,132,255,.24);
  --line-strong: rgba(0,204,255,.48);
  --primary: #006bff;
  --primary-2: #00c8ff;
  --primary-3: #73d8ff;
  --success: #25d366;
  --danger: #ff5b6e;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --radius: 8px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  width: 100%;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(0,107,255,.18), transparent 380px),
    linear-gradient(135deg, #02050d 0%, #030914 42%, #061329 100%);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(0,132,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,204,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
body > * { position: relative; z-index: 1; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 20px; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(34,211,238,.36); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(34,211,238,.72);
  outline-offset: 3px;
}

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 999; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,8,23,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header__inner { position: relative; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; letter-spacing: 0; }
.brand img { flex: 0 0 44px; width: 44px; height: 44px; max-width: 44px; border-radius: 50%; object-fit: contain; }
.nav { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; }
.nav a { color: var(--muted); padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(0,183,255,.12); }
.nav .nav-cta { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 30px rgba(0,107,255,.28); }
.nav .nav-cta:hover, .nav .nav-cta.active { background: linear-gradient(135deg, #0b7aff, #21c4ff); }
.menuBtn { display: none; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menuBtn span { width: 19px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menuBtn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menuBtn.open span:nth-child(2) { opacity: 0; }
.menuBtn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 86px 0 70px; }
.hero--home {
  position: relative;
  min-height: clamp(480px, 62svh, 650px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(2,5,13,.10), rgba(2,5,13,.58)),
    linear-gradient(135deg, rgba(0,107,255,.24) 0%, rgba(0,107,255,0) 36%),
    linear-gradient(215deg, rgba(34,211,238,.14) 0%, rgba(34,211,238,0) 34%),
    linear-gradient(140deg, #02050d 0%, #061329 48%, #01040a 100%);
}
.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(0,132,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 36%, rgba(34,211,238,.14) 36% 37%, transparent 37% 100%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero--home::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -16%;
  width: 58%;
  height: 84%;
  transform: skewX(-12deg);
  pointer-events: none;
  opacity: .55;
  background: linear-gradient(135deg, transparent 0 22%, rgba(0,132,255,.22) 22% 23%, transparent 23% 48%, rgba(34,211,238,.12) 48% 49%, transparent 49% 100%);
}
.hero--home .container {
  position: relative;
  z-index: 1;
}
.hero--home .hero__content {
  width: 100%;
  max-width: 780px;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}
.hero--home .eyebrow { margin: 0 auto 16px; }
.hero--home h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.05;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero--home .lead {
  max-width: 62ch;
  margin: 0 auto;
  min-width: 0;
  color: #c5d8ef;
  font-size: 18px;
  line-height: 1.7;
}
.hero--home .btnRow { justify-content: center; margin-top: 30px; }
.hero--home .credibility { margin-top: 18px; color: #d7f3ff; }
.hero--compact { padding: 64px 0 42px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0,107,255,.16), rgba(255,255,255,0)); }
.hero__content { max-width: 760px; }
.heroGrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 34px; align-items: center; }
.eyebrow, .pill { display: inline-flex; align-items: center; width: fit-content; margin-bottom: 18px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0,183,255,.10); color: #c6f2ff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.08; }
h1 { max-width: 860px; font-size: clamp(42px, 6vw, 76px); font-weight: 900; margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 880; margin-bottom: 12px; }
h3 { font-size: 19px; font-weight: 820; }
.sub, .lead { max-width: 68ch; color: var(--muted); font-size: 18px; line-height: 1.72; }
.credibility { margin-top: 18px; color: #cdeeff; font-weight: 800; }
.section { padding: 74px 0; }
.section--alt { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 48px 0; }
.head { max-width: 760px; margin-bottom: 30px; }
.head p { color: var(--muted); font-size: 17px; }
.sectionSplit { display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, .75fr); gap: 28px; align-items: start; }

.automationFeature {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(0,107,255,.24), transparent 42%),
    linear-gradient(245deg, rgba(34,211,238,.16), transparent 38%),
    linear-gradient(145deg, rgba(2,5,13,.94), rgba(6,19,41,.84) 52%, rgba(1,4,10,.96));
}
.automationFeature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image:
    linear-gradient(rgba(139,223,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,223,255,.10) 1px, transparent 1px);
  background-size: 52px 52px;
}
.automationFeature::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,183,255,.58), transparent);
}
.automationFeature__intro {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto 32px;
  text-align: center;
}
.automationFeature__intro .eyebrow { margin-left: auto; margin-right: auto; }
.automationFeature__intro h2 { line-height: 1.14; }
.automationFeature__intro p:not(.eyebrow) {
  max-width: 70ch;
  margin: 0 auto;
  color: #bdd2eb;
  font-size: 17px;
}
.automationGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.automationCard {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(100,180,255,.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035)),
    rgba(2,8,23,.58);
  box-shadow: 0 18px 52px rgba(0,0,0,.24);
}
.automationCard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.automationIcon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(139,223,255,.38);
  border-radius: var(--radius);
  color: #d8f6ff;
  background: linear-gradient(135deg, rgba(0,107,255,.32), rgba(0,183,255,.16));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}
.automationIcon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.automationCard h3 {
  margin-bottom: 10px;
  color: #fff;
}
.automationCard p {
  color: #b9cee8;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.automationCta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 0;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,183,255,.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,107,255,.24), rgba(0,183,255,.10)),
    rgba(2,8,23,.72);
  box-shadow: var(--shadow);
}
.automationCta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.11), transparent 34%, rgba(0,183,255,.10));
}
.automationCta > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.automationCta__label {
  margin-bottom: 10px;
  color: #8bdfff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.automationCta h3 {
  max-width: 720px;
  font-size: clamp(22px, 3vw, 31px);
  overflow-wrap: anywhere;
}
.automationCta p:not(.automationCta__label) {
  max-width: 67ch;
  margin-top: 10px;
  color: #c6d8ee;
  overflow-wrap: anywhere;
}
.automationCta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.automationCta__actions .btn {
  width: 100%;
}

.btnRow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn, .btn--submit, .success-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 820; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover, .btn--submit:hover, .success-actions a:hover { transform: translateY(-1px); }
.btn--primary, .btn--submit { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 16px 38px rgba(0,107,255,.24); }
.btn--ghost { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.05); }
.btn--quiet { color: #cfefff; border-color: transparent; background: rgba(0,183,255,.10); }
.btn--submit { width: 100%; border: 0; font-size: 16px; }
.btn--submit:disabled { opacity: .68; cursor: wait; transform: none; }

.card, .priceCard, .workCard, .process-step, .sidebar-card, .form-section, .brief-details, .success-panel, .notice-panel, .metric { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card { padding: 22px; }
.card p, .priceCard p, .workBody p, .process-step p, .sidebar-card p { color: var(--muted); margin-top: 10px; }
.cardShadow { box-shadow: var(--shadow); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.list { display: grid; gap: 10px; color: var(--muted); line-height: 1.55; }
.list li::marker { color: var(--primary-2); }
.tagRow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: #cbeeff; background: rgba(0,183,255,.08); font-size: 13px; font-weight: 780; }
.tag input { width: auto; flex: 0 0 auto; margin-right: 6px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.option-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-card { display: flex; align-items: flex-start; gap: 8px; min-height: 38px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,183,255,.06); color: #dfeeff; font-size: 13px; font-weight: 760; line-height: 1.35; }
.option-card input { width: auto; flex: 0 0 auto; margin-top: 2px; }
.field-extra { margin-top: 10px; }
.text-link { color: #8bdfff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(0,183,255,.35); text-underline-offset: 4px; }
.socialLink { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.socialIcon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.portfolioGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workCard { overflow: hidden; cursor: pointer; position: relative; display: flex; min-height: 100%; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.workCard:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.workCard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.project-media { position: relative; overflow: hidden; background: var(--bg-2); }
.project-media img,
.project-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-2);
}
.project-media video {
  pointer-events: none;
}
.workBody { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.workMeta { color: #8bdfff; font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.project-tech span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8f7ff;
  background: rgba(34,211,238,.08);
  font-size: 12px;
  font-weight: 760;
}
.workActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.workActions .btn { min-height: 38px; padding: 9px 12px; font-size: 13px; }
.playOverlay { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,107,255,.86); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.playOverlay::before { content: ""; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; margin-left: 3px; }

.pricingGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.priceCard { padding: 22px; position: relative; }
.priceCard.featured { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(0,107,255,.16), rgba(255,255,255,.055)); }
.price { margin-top: 12px; font-size: 34px; line-height: 1; color: #fff; font-weight: 900; }
.deposit { color: #b9d8f6; font-weight: 800; }
.ribbon { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 999px; background: rgba(37,211,102,.15); color: #9cffbd; border: 1px solid rgba(37,211,102,.4); font-size: 12px; font-weight: 850; }
.hostingBox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(0,183,255,.06); }
.processGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: process; }
.process-step { padding: 20px; counter-increment: process; }
.process-step::before { content: counter(process); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 900; }

.quote-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(320px, .28fr); gap: 22px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.form-section { padding: 22px; }
.form-section.is-complete { border-color: rgba(37,211,102,.36); }
.section-title { margin-bottom: 8px; }
.section-help, .field-note, .fine { color: var(--muted); font-size: 13px; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; margin-top: 14px; }
.field:first-child { margin-top: 0; }
label, .field-label { color: #dfeeff; font-size: 13px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(2,8,23,.72); color: var(--text); padding: 12px 13px; outline: none; }
textarea { resize: vertical; min-height: 112px; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(0,183,255,.14); }
::placeholder { color: #6f88a6; }
.brief-details { overflow: hidden; }
.brief-details summary { cursor: pointer; padding: 18px 22px; font-weight: 880; list-style: none; }
.brief-details summary::-webkit-details-marker { display: none; }
.brief-details summary::after { content: "+"; float: right; color: var(--primary-2); font-size: 22px; line-height: 1; }
.brief-details[open] summary::after { content: "-"; }
.brief-content { border-top: 1px solid var(--line); padding: 22px; display: grid; gap: 18px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.upload-card { padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.file-help, .file-preview { color: var(--muted); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.file-preview.is-error { color: #ff9aa8; }
.file-preview.is-success { color: #9cffbd; }
.file-preview.is-loading { color: #8bdfff; }
.upload-unavailable { padding: 12px; border: 1px solid rgba(255,180,80,.35); border-radius: var(--radius); background: rgba(255,180,80,.10); color: #ffe0a3; }
.submit-area { display: grid; gap: 14px; }
.formMessage { display: none; padding: 14px; border-radius: var(--radius); line-height: 1.55; }
.formMessage a { color: inherit; text-decoration: underline; font-weight: 850; }
.success-panel { padding: 22px; background: rgba(37,211,102,.08); border-color: rgba(37,211,102,.38); }
.success-project { margin: 12px 0; font-size: 26px; font-weight: 900; color: #9cffbd; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sidebar-card { padding: 18px; }
.quote-sidebar { display: grid; gap: 14px; position: sticky; top: 92px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.metric { padding: 16px; }
.metric strong { display: block; font-size: 22px; }
.metric span { color: var(--muted); font-size: 13px; }

.project-detail-hero {
  padding-bottom: 64px;
}
.project-detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.project-detail-media img,
.project-detail-media video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.project-screenshot-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.footer { border-top: 1px solid var(--line); background: rgba(2,8,23,.86); }
.footer__inner { min-height: 118px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; color: var(--muted); font-size: 14px; }
.footer__links .socialLink { color: #cbeeff; }
.footer__links .socialLink:hover { color: #8bdfff; }
.footer-copy { justify-self: end; color: var(--muted); font-size: 14px; }
.waFloat { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 16px; border-radius: 999px; color: #06130b; background: var(--success); font-weight: 900; box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.aiBtn { position: fixed; right: 18px; bottom: 76px; z-index: 95; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: linear-gradient(135deg, rgba(0,107,255,.95), rgba(34,211,238,.76)); font-weight: 820; cursor: pointer; box-shadow: 0 18px 38px rgba(0,0,0,.34); }
.aiPanel { position: fixed; right: 18px; bottom: 126px; z-index: 96; width: min(390px, calc(100vw - 32px)); max-height: 620px; display: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.aiPanel.open { display: block; }
.aiTop { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.aiTools { display: inline-flex; align-items: center; gap: 6px; }
.aiTop button { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--text); padding: 7px 9px; cursor: pointer; font-size: 12px; font-weight: 780; }
.aiBody { max-height: 330px; overflow: auto; padding: 14px; display: grid; gap: 10px; }
.bubble { padding: 10px 12px; border-radius: var(--radius); font-size: 14px; line-height: 1.45; }
.bubble.bot { background: rgba(255,255,255,.07); color: var(--text); }
.bubble.you { background: rgba(0,107,255,.24); justify-self: end; }
.quickReplies { display: flex; flex-wrap: wrap; gap: 8px; }
.quickReplies button { border: 1px solid var(--line); border-radius: 999px; background: rgba(0,183,255,.10); color: var(--text); padding: 7px 10px; cursor: pointer; }
.typingBubble { display: inline-flex; gap: 5px; width: fit-content; }
.typingBubble span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; animation: pulseDot 1s infinite ease-in-out; }
.typingBubble span:nth-child(2) { animation-delay: .12s; }
.typingBubble span:nth-child(3) { animation-delay: .24s; }
.aiHandoff { padding: 0 14px 14px; }
.aiHandoff .btn { width: 100%; min-height: 40px; }
.aiInput { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.aiInput input { min-width: 0; }
.aiInput .btn { min-height: 42px; }
.modal { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.72); }
.modal.open { display: grid; }
.modalBox { width: min(920px, 100%); border: 1px solid var(--line); border-radius: var(--radius); background: #020817; overflow: hidden; }
.modalTop { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.modalTop button { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.05); color: var(--text); padding: 8px 11px; cursor: pointer; }
.modalVideo { width: 100%; max-height: 72svh; background: #000; }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible, .reveal:not(.is-observed) { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 1020px) {
  .heroGrid, .sectionSplit, .quote-layout { grid-template-columns: 1fr; }
  .grid4, .pricingGrid, .processGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolioGrid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-sidebar { position: static; }
  .hostingBox { grid-template-columns: 1fr; }
  .hero--home { min-height: clamp(440px, 60svh, 620px); }
  .hero--home .hero__content { max-width: 700px; }
}
@media (max-width: 900px) {
  .header__inner { min-height: 66px; }
  .menuBtn { display: inline-flex; }
  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 105;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100svh - 86px);
    overflow: auto;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(2,8,23,.98);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; border-radius: var(--radius); padding: 13px; }
  .hero { padding: 58px 0 60px; }
  h1 { font-size: clamp(36px, 12vw, 52px); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; padding: 28px 0; }
  .footer-copy { justify-self: center; }
}
@media (max-width: 620px) {
  body { padding-bottom: 82px; }
  .container { width: min(100% - 24px, var(--max)); }
  .hero--home .container { width: min(100% - 40px, var(--max)); }
  .section { padding: 54px 0; }
  .grid3, .grid4, .pricingGrid, .portfolioGrid, .processGrid, .field-row, .upload-grid, .metric-grid, .option-grid, .option-grid--compact { grid-template-columns: 1fr; }
  .project-detail-grid, .project-screenshot-grid { grid-template-columns: 1fr; }
  .automationFeature__intro { text-align: left; }
  .automationFeature__intro .eyebrow { margin-left: 0; margin-right: 0; }
  .automationFeature__intro p:not(.eyebrow) { margin-left: 0; margin-right: 0; }
  .automationCta { padding: 20px; }
  .btn, .success-actions a { width: 100%; }
  .hero--home { min-height: auto; padding: 48px 0 50px; }
  .hero--home::before { opacity: .26; background-size: 44px 44px, 44px 44px, 100% 100%; }
  .hero--home::after { display: none; }
  .hero--home h1 { max-width: 10.8ch; margin-bottom: 16px; font-size: clamp(28px, 8.2vw, 31px); }
  .hero--home .lead { max-width: 31ch; font-size: 15.5px; line-height: 1.62; overflow-wrap: break-word; }
  .hero--home .btnRow { flex-direction: column; gap: 10px; width: min(100%, 320px); margin: 24px auto 0; }
  .hero--home .btnRow .btn { width: 100%; }
  .hero--home .credibility { max-width: 28ch; margin: 16px auto 0; font-size: 14px; line-height: 1.45; overflow-wrap: break-word; }
  .waFloat { left: auto; right: 12px; bottom: 12px; min-width: 0; min-height: 42px; max-width: calc(100vw - 76px); padding: 10px 13px; font-size: 13px; }
  .aiBtn { right: 12px; bottom: 64px; width: 42px; min-height: 42px; padding: 0; font-size: 0; border-radius: 50%; }
  .aiBtn::before { content: "?"; font-size: 18px; font-weight: 900; }
  .aiPanel { right: 12px; bottom: 114px; width: calc(100vw - 24px); max-height: calc(100svh - 138px); }
}
@media (max-width: 390px) {
  .hero--home h1 { font-size: 29px; }
}
@media (min-width: 900px) {
  .automationGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automationCta {
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
    align-items: center;
  }
  .automationCta__actions {
    width: min(320px, 100%);
    justify-self: end;
  }
}
@media (min-width: 1120px) {
  .automationGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
