/* =========================================================
   GLOBAL
   ========================================================= */
:root {
  --bg: #0c0f13;
  --bg-alt: #10151c;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --text: #d5dbe2;
  --heading: #f2f5f9;
  --muted: #98a4b2;
  --accent: #3b6ee0;
  --cta: #2f5fd0;
  --cta-hover: #4275ea;
  --accent-light: #7fa4f0;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-h: 74px;
  --font-head: "Space Grotesk", Helvetica, Arial, sans-serif;
  --font-body: "Barlow", Helvetica, Arial, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --transition: 280ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #a8c2f7;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

.price {
  color: var(--heading);
  font-weight: 600;
  font-family: var(--font-head);
  margin: 0.75rem 0;
}

.price-note,
.notice {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.notice-strong {
  border-color: rgba(59, 110, 224, 0.35);
  background: rgba(59, 110, 224, 0.08);
  color: var(--text);
}

.section-cta {
  margin-top: 2rem;
}

.text-link {
  font-weight: 600;
  color: var(--accent-light);
}

.meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cta-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--heading);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--heading);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(12, 15, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(59, 110, 224, 0.16);
  border: 1px solid rgba(59, 110, 224, 0.35);
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-text strong {
  font-family: var(--font-head);
  color: var(--heading);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-text span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav ul {
  display: flex;
  gap: 0.15rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-toggle {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-media {
  position: relative;
}

.hero-media img,
.page-hero-media img,
.card-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  background: #151a22;
  transition: transform 400ms ease;
}

.card:hover .card-media img {
  transform: scale(1.02);
}

.tech-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: min(240px, calc(100% - 2rem));
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12, 15, 19, 0.88);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.tech-card-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
}

.tech-card strong {
  display: block;
  color: var(--heading);
  font-family: var(--font-head);
  margin-bottom: 0.75rem;
}

.tech-bars {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.tech-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.tech-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   TRUST / SECTIONS
   ========================================================= */
.trust-strip {
  border-block: 1px solid var(--border);
  padding: 1.35rem 0;
  background: rgba(255, 255, 255, 0.015);
}

.trust-title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.trust-list li {
  color: var(--heading);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1rem;
}

.trust-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.55em;
}

/* =========================================================
   CARDS / SERVICES
   ========================================================= */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.services-grid,
.products-grid,
.blog-grid,
.cases-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card-index {
  display: block;
  color: var(--accent-light);
  font-family: var(--font-head);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #151a22;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.case-card {
  padding: 1.5rem;
}

.product-cat,
.availability {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.blog-card a {
  color: inherit;
  display: block;
}

.blog-card h3 {
  margin-bottom: 0;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.process-card {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.process-card span {
  display: block;
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================================
   BEFORE AFTER
   ========================================================= */
.before-after {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.ba-viewport {
  position: relative;
  user-select: none;
  aspect-ratio: 16 / 9;
  background: #151a22;
  touch-action: none;
}

.ba-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  max-width: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.ba-before {
  width: 100vw;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 2;
}

.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: rgba(12, 15, 19, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--heading);
}

.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.feature-chips li {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   PRODUCTS / BLOG
   ========================================================= */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero .lead {
  margin-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.side-nav h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.side-nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--heading);
}

.service-detail {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.service-detail h2 {
  margin-top: 0;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
}

.service-meta span {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.service-detail ol,
.content-prose ol,
.content-prose ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.service-detail li,
.content-prose li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

.service-detail ol li {
  list-style: decimal;
}

/* =========================================================
   PRICING TABLE
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--heading);
  font-family: var(--font-head);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

td {
  color: var(--text);
}

tr:last-child td {
  border-bottom: 0;
}

.cat-row td {
  color: var(--accent-light);
  font-family: var(--font-head);
  font-weight: 600;
  background: rgba(59, 110, 224, 0.06);
}

/* =========================================================
   GALLERY
   ========================================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-tabs button {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter-tabs button.is-active,
.filter-tabs button:hover {
  color: var(--heading);
  border-color: rgba(127, 164, 240, 0.45);
  background: rgba(59, 110, 224, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #151a22;
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

/* =========================================================
   FAQ / FORMS
   ========================================================= */
.faq-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 1.5rem;
  align-items: start;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--heading);
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
}

.acc-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--muted);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.acc-icon::before {
  width: 14px;
  height: 2px;
}

.acc-icon::after {
  width: 2px;
  height: 14px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.accordion-trigger[aria-expanded="true"] .acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

.accordion-panel p {
  margin: 0;
}

.accordion-item.is-open .accordion-panel {
  display: block;
}

.faq-cta {
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.form-card,
.company-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--heading);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--heading);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(127, 164, 240, 0.5);
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row input {
  margin-top: 0.3rem;
}

.field-error {
  color: #f0a0a0;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #c97a7a;
}

.form-success {
  display: none;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(70, 160, 110, 0.12);
  border: 1px solid rgba(70, 160, 110, 0.35);
  color: #c7ebd5;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.company-card dl {
  margin: 0;
}

.company-card dt {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.company-card dd {
  margin: 0.25rem 0 0;
  color: var(--heading);
}

.map-placeholder {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  padding: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.about-photos img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: #151a22;
}

.content-prose {
  max-width: 760px;
}

.content-prose h2,
.content-prose h3 {
  margin-top: 2rem;
}

.article-hero {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.related-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.related-links a {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--heading);
  background: var(--card);
}

/* =========================================================
   FINAL CTA / FOOTER
   ========================================================= */
.final-cta {
  padding: 4.5rem 0;
  background:
    linear-gradient(180deg, rgba(47, 95, 208, 0.12), transparent 60%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.final-cta-inner {
  max-width: 720px;
}

.final-cta p {
  color: var(--muted);
  font-size: 1.1rem;
}

.site-footer {
  padding-top: 4rem;
  background: #0a0d11;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-col p,
.footer-contact {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-col li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--heading);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   CART
   ========================================================= */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 300ms ease;
}

.cart-drawer.is-open .cart-overlay {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  height: 100%;
  background: #0e1319;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 320ms ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.cart-drawer.is-open .cart-panel {
  transform: none;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
}

.cart-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #151a22;
}

.cart-item h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.cart-item-controls button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--heading);
  cursor: pointer;
}

.cart-remove {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  align-self: start;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--heading);
}

.cart-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.checkout-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: #151a22;
  border: 1px solid var(--border);
  color: var(--heading);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  z-index: 4000;
  box-shadow: var(--shadow);
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3500;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-inner {
  background: #12171f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.cookie-inner p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-settings {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
}

.placeholder-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #151a22 0%, #1b2430 45%, #121820 100%);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 15, 19, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 280ms ease, opacity 280ms ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav a {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .faq-layout,
  .contact-grid,
  .about-grid,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
  }

  .services-grid,
  .products-grid,
  .blog-grid,
  .cases-grid,
  .process-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.35rem);
  }

  .services-grid,
  .products-grid,
  .blog-grid,
  .cases-grid,
  .process-grid,
  .gallery-grid,
  .about-photos {
    grid-template-columns: 1fr;
  }

  .logo-text span {
    display: none;
  }

  .hero-actions .btn,
  .final-cta .btn {
    width: 100%;
  }

  .tech-card {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}
