/* ==========================================================================
   Lopez Digital Studio
   ========================================================================== */

:root {
  --bg: #080412;
  --bg-alt: #0c0719;
  --surface: rgba(139, 92, 246, 0.045);
  --surface-hover: rgba(139, 92, 246, 0.08);
  --border: rgba(139, 92, 246, 0.18);
  --border-strong: rgba(139, 92, 246, 0.4);
  --text: #ffffff;
  --text-muted: rgba(226, 220, 245, 0.68);
  --text-dim: rgba(226, 220, 245, 0.48);
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep: #6d28d9;
  --gradient: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  --gradient-text: linear-gradient(100deg, #a78bfa 0%, #8b5cf6 45%, #7c3aed 100%);
  --focus: #c4b5fd;
  --success: #34d399;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--violet);
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 760px;
}

.section-lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
}

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(124, 58, 237, 0.85);
}
.btn-outline {
  border-color: var(--border-strong);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
}
.btn-sm { min-height: 42px; padding: 0 22px; font-size: 11.5px; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-top: auto;
  padding-top: 22px;
}
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-link:hover { color: var(--violet-bright); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 4, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s;
}
.site-header.scrolled { background: rgba(8, 4, 18, 0.92); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.logo-sub {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.primary-nav ul { display: flex; gap: 34px; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: #fff; }
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-toggle,
.menu-toggle,
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background-color 0.2s;
}
.cart-toggle:hover,
.menu-toggle:hover,
.icon-btn:hover {
  border-color: var(--violet);
  background: var(--surface-hover);
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.menu-toggle { display: none; }
.menu-bar {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  margin: -0.75px 0 0 -9px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-bar:nth-child(2) { transform: translateY(-5.5px); }
.menu-bar:nth-child(4) { transform: translateY(5.5px); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(4) { transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%; left: 20%;
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-80px, 40px); }
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 900px;
}
.hero-sub {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 300;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(12, 7, 25, 0.8);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  align-items: center;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.marquee i { font-style: normal; color: var(--violet); }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 14px)); }
}

/* ---------- Sections & cards ---------- */

.section { padding: 120px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, rgba(12, 7, 25, 0.85), rgba(8, 4, 18, 0.85));
  border-block: 1px solid var(--border);
}

.grid { display: grid; gap: 24px; margin-top: 56px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s, transform 0.35s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 15px; margin-top: 12px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}
.about-story p {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 300;
}
.about-story p + p { margin-top: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  color: #e9e3ff;
  background: rgba(139, 92, 246, 0.06);
}
.values-label { margin-top: 80px; margin-bottom: 0; }
.values-label + .grid { margin-top: 24px; }
.value-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-bright);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.value-card h4 { font-size: 21px; font-weight: 700; }

/* Services */
.icon-badge {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-bright);
  margin-bottom: 26px;
}
.why { margin-top: 110px; }
.why .grid { margin-top: 28px; }
.why-item {
  padding: 26px 0 0;
  border-top: 1px solid var(--border-strong);
}
.why-item h3 { font-size: 18px; font-weight: 700; }
.why-item p { margin-top: 10px; color: var(--text-muted); font-size: 15px; }

/* Portfolio */
.project-card { padding: 0; overflow: hidden; }
.project-card:hover { transform: translateY(-4px); }
.project-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.browser-bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
}
.browser-bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.mock {
  position: absolute;
  inset: 28px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px;
}
.mock-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.mock-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mock-btn {
  width: 84px; height: 22px;
  border-radius: 999px;
  margin-top: 6px;
}
.project-sanno {
  background:
    radial-gradient(circle at 78% 30%, #fbbf24 0 13%, transparent 14%),
    radial-gradient(circle at 92% 62%, #f472b6 0 10%, transparent 11%),
    linear-gradient(135deg, #b91c1c, #ea580c 60%, #f59e0b);
}
.project-sanno .mock-btn { background: #fff; }
.project-procuts {
  background:
    linear-gradient(180deg, transparent 50%, rgba(5, 46, 22, 0.75)),
    radial-gradient(ellipse at 30% 110%, #4d7c0f 0 45%, transparent 46%),
    linear-gradient(160deg, #0f766e, #166534 55%, #14532d);
}
.project-procuts .mock-btn { background: #bef264; }
.project-mix {
  background:
    radial-gradient(circle at 80% 55%, #fde68a 0 9%, #f97316 10% 22%, #7c2d12 23% 33%, transparent 34%),
    linear-gradient(135deg, #1c1917, #44403c);
}
.project-mix .mock-btn { background: #ef4444; }
.project-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 28px 30px 32px;
}
.project-meta {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-bright) !important;
  margin: 0 0 10px !important;
}
.project-body > p:not(.project-meta) { margin-bottom: 24px; }
.project-body .btn { margin-top: auto; }

/* ---------- Pricing ---------- */

.pricing-group { margin-top: 80px; }
.pricing-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pricing-group-head h3 { font-size: 24px; font-weight: 700; }
.pricing-group-head p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.price-grid { margin-top: 28px; }
.renewal-note {
  margin-top: 22px;
  max-width: 760px;
  font-size: 14px;
  color: var(--text-muted);
}
.renewal-note a,
.banner-link {
  color: var(--violet-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.renewal-note a:hover,
.banner-link:hover { color: #fff; }
.banner-link[hidden] { display: none; }

.price-card { padding: 30px 26px; }
.price-card.featured {
  border-color: rgba(167, 139, 250, 0.6);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.04));
  box-shadow: 0 20px 50px -24px rgba(124, 58, 237, 0.7);
}
.price-badge {
  position: absolute;
  top: -12px; left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.price-card h4 { font-size: 18px; font-weight: 700; }
.price-tagline { min-height: 3.3em; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 4px;
}
.price-amount {
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period { color: var(--text-dim); font-size: 14px; }
.price-features {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.price-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: #ddd6f3;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--violet-bright);
  border-bottom: 2px solid var(--violet-bright);
  transform: rotate(-45deg) scale(0.8);
  transform-origin: center;
}
.price-card .btn { margin-top: auto; width: 100%; }

.btn.is-added {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.55);
  color: #d1fae5;
  box-shadow: none;
}

.custom-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-style: dashed;
  border-color: var(--border-strong);
}
.custom-card h3 { font-size: 26px; }
.custom-card .price { margin: 0 0 14px; justify-content: flex-end; }
.custom-card .price-amount { font-size: 28px; }
.custom-actions { display: flex; flex-direction: column; align-items: flex-end; min-width: 240px; }
.custom-actions .btn { width: 100%; }

/* ---------- Contact ---------- */

.cta-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 64px;
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(124, 58, 237, 0.28), transparent 60%),
    rgba(12, 7, 25, 0.9);
}
.cta-copy > p:not(.eyebrow) {
  margin: 18px 0 32px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 520px;
}
.contact-list { display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(8, 4, 18, 0.55);
}
.contact-list .label { margin-bottom: 4px; font-size: 10.5px; }
.contact-list a,
.contact-list span:not(.label):not(.contact-icon) { font-size: 15px; word-break: break-word; }
.contact-list a:hover { color: var(--violet-bright); }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  color: var(--violet-bright);
}

/* Contact form */
.cta-panel { align-items: start; }
.cta-copy .contact-list { margin-top: 32px; }
.form-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 4, 18, 0.7);
}
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.contact-form[hidden],
.form-success[hidden],
.form-status[hidden] { display: none; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row .field { margin-bottom: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: #e9e3ff; }
.req { color: var(--violet-bright); }
.opt { font-weight: 400; color: var(--text-dim); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.05);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field select option { background: #160d2e; color: #fff; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--violet); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet-bright);
  background-color: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}
.field [aria-invalid="true"] { border-color: #f87171; }
.field-error { font-size: 12.5px; color: #fca5a5; }
.field-error:empty { display: none; }
.field-hint { margin: 0 0 18px; font-size: 12.5px; color: var(--text-dim); }
.form-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.08);
  font-size: 13.5px;
  color: #fecaca;
}
.contact-form .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.form-fineprint { margin-top: 12px; font-size: 12px; color: var(--text-dim); text-align: center; }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 8px;
  text-align: center;
  animation: itemIn 0.4s var(--ease);
}
.form-success:focus { outline: none; }
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--text-muted); max-width: 340px; }
.form-success .btn { margin-top: 12px; }
.form-success-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
  margin-bottom: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 4, 18, 0.95);
  padding: 56px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a,
.footer-contact a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-contact a { text-transform: none; letter-spacing: 0.02em; font-size: 14px; }
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 6px; text-align: right; font-size: 14px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Legal pages ---------- */

.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal-inner { max-width: 820px; }
.legal .section-title { max-width: none; }
.legal-updated { margin: 12px 0 36px; color: var(--text-dim); font-size: 14px; }
.legal h2 {
  margin: 44px 0 14px;
  font-size: 22px;
  font-weight: 700;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal h3 { margin: 22px 0 10px; font-size: 17px; font-weight: 600; }
.legal p,
.legal li { color: var(--text-muted); font-size: 16px; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; margin: 12px 0; }
.legal strong { color: #fff; font-weight: 600; }
.legal a:not(.btn) {
  color: var(--violet-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:not(.btn):hover { color: #fff; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 8px; }
.legal-page .site-header .btn { min-height: 40px; }

/* ---------- Cart drawer ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 2, 10, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: #0d0820;
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay[hidden],
.cart-drawer[hidden] { display: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: #0d0820;
}
.cart-head h2 { font-size: 20px; font-weight: 700; }

.cart-body { flex: 1 0 auto; padding: 20px 24px; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 56px 12px;
  color: var(--text-muted);
  font-size: 15px;
}
.cart-empty[hidden] { display: none; }
.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  color: var(--violet-bright);
  margin-bottom: 6px;
}
.cart-empty-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }
.cart-empty .btn { margin-top: 12px; }

.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  animation: itemIn 0.35s var(--ease);
}
.cart-item.removing { animation: itemOut 0.25s ease forwards; }
@keyframes itemIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes itemOut {
  to { opacity: 0; transform: translateX(24px); }
}
.cart-item-type {
  grid-column: 1 / -1;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-bright);
}
.cart-item-name { font-weight: 600; font-size: 15.5px; }
.cart-item-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: right; }
.cart-item-price small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--text-dim); }
.cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-dim);
  transition: color 0.2s, background-color 0.2s;
}
.remove-btn:hover { color: #fca5a5; background: rgba(248, 113, 113, 0.08); }

.cart-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(8, 4, 18, 0.6);
}
.cart-foot[hidden] { display: none; }
.cart-totals { margin: 0; display: grid; gap: 8px; }
.cart-totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart-totals dt { color: var(--text-muted); font-size: 14px; }
.cart-totals dd { margin: 0; font-family: var(--font-display); font-weight: 700; white-space: nowrap; text-align: right; }
.cart-totals .total-main dt { color: #fff; font-weight: 600; }
.cart-totals .total-main { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-totals .total-main dd { font-size: 20px; }
.cart-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: #ddd6f3;
}
.cart-note:empty { display: none; }
.cart-terms { margin-top: 12px; font-size: 12px; color: var(--text-dim); text-align: center; }
.cart-terms a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.cart-terms a:hover { color: #fff; }
.cart-checkout { display: grid; gap: 10px; margin-top: 16px; }
.checkout-btn {
  justify-content: space-between;
  min-height: 50px;
  padding: 0 22px;
  letter-spacing: 0.08em;
  font-size: 12px;
  white-space: normal;
  text-align: left;
}
.checkout-btn .co-name { overflow: hidden; text-overflow: ellipsis; }
.checkout-btn .co-amt { flex: none; }
.checkout-btn:disabled { cursor: progress; opacity: 0.75; transform: none; }
.cart-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
  font-size: 13px;
  line-height: 1.5;
  color: #fecaca;
}
.cart-error[hidden] { display: none; }
.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}
.btn-clear {
  display: block;
  margin: 14px auto 0;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 6px;
}
.btn-clear:hover { color: #fff; }

/* ---------- Checkout return banner ---------- */

.checkout-banner {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  z-index: 60;
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #160d2e;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.8);
  font-size: 14.5px;
  transform: translateX(-50%);
  animation: bannerIn 0.4s var(--ease);
}
.checkout-banner[hidden] { display: none; }
.checkout-banner[data-tone="success"] { border-color: rgba(52, 211, 153, 0.55); }
.checkout-banner p { flex: 1; }
.checkout-banner .icon-btn { flex: none; width: 36px; height: 36px; }
@keyframes bannerIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #160d2e;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .primary-nav ul { gap: 22px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .container { padding: 0 24px; }
  .menu-toggle { display: inline-grid; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 12px 24px 28px;
    background: #080412;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .primary-nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s;
  }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li + li { border-top: 1px solid var(--border); }
  .nav-link { display: block; padding: 16px 0; font-size: 13px; }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--violet-bright); }

  .section { padding: 90px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-panel { grid-template-columns: 1fr; padding: 44px 32px; gap: 40px; }
  .custom-card { grid-template-columns: 1fr; }
  .custom-card .price { justify-content: flex-start; }
  .custom-actions { align-items: stretch; min-width: 0; }
  .project-card { max-width: 560px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 70px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .grid { margin-top: 40px; gap: 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .price-tagline { min-height: 0; }
  .custom-card { padding: 28px 22px; }
  .cta-panel { padding: 34px 20px; border-radius: 22px; }
  .form-card { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 16px; }
  .why { margin-top: 80px; }
  .values-label { margin-top: 60px; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
  .cart-head, .cart-body, .cart-foot { padding-left: 18px; padding-right: 18px; }
  .cart-drawer { border-left: 0; }
}

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
