/* ==========================================================================
   PROTOSLIDER3D — design system
   Dark precision-engineering aesthetic.
   Palette: near-black background, charcoal surfaces, silver text,
   one electric-blue brand accent + white.
   ========================================================================== */

:root {
  color-scheme: dark;

  --background: oklch(0.16 0.006 250);
  --foreground: oklch(0.93 0.005 250);

  --surface: oklch(0.205 0.008 250);
  --surface-2: oklch(0.245 0.01 250);

  --brand: oklch(0.62 0.17 250);
  --brand-foreground: oklch(0.98 0.005 250);

  --muted-foreground: oklch(0.68 0.008 250);
  --destructive: oklch(0.62 0.2 20);

  --border: oklch(0.32 0.01 250);
  --input: oklch(0.3 0.01 250);

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --radius-2xl: 1.8rem;

  --font-sans: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 72rem;
  --nav-h: 4rem;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- Icons ---------- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.875rem; height: 0.875rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
@media (min-width: 640px) { .section { padding-block: 6rem; } }
.section-sm { padding-block: 3rem; }
@media (min-width: 640px) { .section-sm { padding-block: 4rem; } }

.relative { position: relative; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Decorative utilities ---------- */
.tech-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
}

.tech-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  filter: blur(110px);
  pointer-events: none;
}

.brand-glow {
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--brand) 30%, transparent),
    0 0 40px -8px color-mix(in oklab, var(--brand) 55%, transparent);
}

.text-glow { text-shadow: 0 0 24px color-mix(in oklab, var(--brand) 45%, transparent); }
.text-brand { color: var(--brand); }
.text-muted { color: var(--muted-foreground); }

/* ---------- Typography ---------- */
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 600; }

.h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  line-height: 1.15;
  text-wrap: balance;
}
.h3 { font-size: 1.125rem; }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 60%, transparent);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-foreground);
}
.kicker::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--brand);
}

/* ---------- Section heading ---------- */
.section-heading { max-width: 42rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-top: 1rem; }
.section-heading p { margin-top: 1rem; color: var(--muted-foreground); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
  height: 2.5rem;
  padding-inline: 1.25rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}
.btn-lg { height: 3rem; padding-inline: 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

@media (max-width: 480px) {
  .btn-lg {
    padding-inline: 1.25rem;
    font-size: 0.9375rem;
  }
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow:
    0 0 0 1px color-mix(in oklab, var(--brand) 30%, transparent),
    0 0 40px -8px color-mix(in oklab, var(--brand) 55%, transparent);
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-outline {
  border-color: var(--border);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  color: var(--foreground);
}
.btn-outline:hover {
  border-color: color-mix(in oklab, var(--brand) 60%, transparent);
  background: var(--surface-2);
}

.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn .icon-arrow { transition: transform 0.2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.3s ease, background 0.3s ease;
}
.card:hover { border-color: color-mix(in oklab, var(--brand) 50%, transparent); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand);
  flex-shrink: 0;
}
.icon-badge-sm { width: 2.5rem; height: 2.5rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.gap-lg { gap: 2.5rem; }

@media (min-width: 640px) {
  .sm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--background) 40%, transparent);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
}

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto; height: auto;
  clip: auto;
  left: 1rem; top: 0.75rem;
  z-index: 60;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo img { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.logo-tag {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted-foreground);
}

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  display: block;
  border-radius: 9999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link.active { color: var(--foreground); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: -1px;
  height: 1px;
  background: var(--brand);
}

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: block; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid transparent;
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(20px);
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.mobile-menu.open {
  max-height: 30rem;
  opacity: 1;
  border-top-color: var(--border);
}
@media (min-width: 900px) { .mobile-menu { display: none; } }

.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem; }
.mobile-menu a.nav-link {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 1rem;
}
.mobile-menu a.nav-link.active { background: var(--surface-2); }
.mobile-menu a.nav-link::after { content: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 7rem; }
@media (min-width: 640px) { .hero { padding-top: 8rem; } }

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 6rem; }
}

.hero-copy { max-width: 36rem; }
.hero-copy h1 { margin-top: 1.25rem; }
.hero-copy .lead { margin-top: 1.25rem; max-width: 32rem; }

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.rating-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.stars { display: inline-flex; gap: 0.1rem; color: var(--brand); }
.stars .icon { fill: currentColor; stroke: none; }
.rating-row strong { color: var(--foreground); }

.hero-visual {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 1 / 1;
  animation: float-y 6s ease-in-out infinite;
}
.hero-visual .halo {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: color-mix(in oklab, var(--brand) 20%, transparent);
  filter: blur(48px);
}
.hero-frame {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-frame img { height: 100%; width: 100%; object-fit: cover; }
.hero-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, color-mix(in oklab, var(--background) 90%, transparent), transparent);
  color: var(--muted-foreground);
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: 7rem; }
@media (min-width: 640px) { .page-hero { padding-top: 8rem; } }
.page-hero .container { padding-bottom: 2.5rem; }
@media (min-width: 640px) { .page-hero .container { padding-bottom: 3.5rem; } }
.page-hero-inner { max-width: 48rem; }
.page-hero h1 { margin-top: 1.25rem; font-size: clamp(2.25rem, 4.5vw, 3rem); line-height: 1.08; }
.page-hero .lead { margin-top: 1.25rem; max-width: 42rem; }
.page-hero-actions { margin-top: 2rem; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat-value {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .stat-value { font-size: 2.25rem; } }
.stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.service-card::before {
  content: "";
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  filter: blur(32px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card h3 { margin-top: 1.25rem; }
.service-card p { margin-top: 0.5rem; flex: 1; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.link-more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}
.service-card:hover .icon-arrow { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.steps { position: relative; margin-top: 3.5rem; }
.steps-line {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
@media (min-width: 1024px) { .steps-line { display: block; } }

.step-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}
.steps h3 { margin-top: 1.25rem; }
.steps p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }

/* Vertical timeline (about page) */
.timeline {
  position: relative;
  margin-top: 3rem;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  display: grid;
  gap: 2rem;
}
.timeline li { position: relative; }
.timeline-dot {
  position: absolute;
  left: -2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--brand) 50%, transparent);
  background: var(--background);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}
.timeline h3 { font-size: 1.125rem; }
.timeline p { margin-top: 0.375rem; max-width: 36rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }

/* ---------- Why choose ---------- */
.feature-list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-item h3 { font-size: 1rem; }
.feature-item p { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
@media (min-width: 640px) { .media-frame { aspect-ratio: 1 / 1; } }
.media-frame.wide { aspect-ratio: 4 / 3; }
.media-frame img { height: 100%; width: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 1rem;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .gallery-feature { grid-column: span 2; grid-row: span 2; }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in oklab, var(--background) 80%, transparent), transparent 60%);
}
.gallery-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; height: 100%; }
.review-card blockquote {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.7;
  color: color-mix(in oklab, var(--foreground) 90%, transparent);
}
.review-foot {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}
.review-name { font-size: 0.875rem; font-weight: 500; }

.rating-summary {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Services detail (products page) ---------- */
.service-row {
  display: grid;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; }
  .service-row.flip .service-media { order: 2; }
  .service-row.flip .service-copy { order: 1; }
}
.service-copy h2 { margin-top: 1.25rem; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.service-copy > p { margin-top: 0.75rem; line-height: 1.7; color: var(--muted-foreground); text-wrap: pretty; }
.service-cols { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .service-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-cols h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; }
.service-cols ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.service-cols li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.service-cols li .icon { color: var(--brand); margin-top: 0.125rem; }
.dot {
  margin-top: 0.45rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--brand);
  flex-shrink: 0;
}
.service-copy .btn { margin-top: 1.75rem; }
.service-stack { display: grid; gap: 4rem; }
@media (min-width: 640px) { .service-stack { gap: 6rem; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
}
@media (min-width: 640px) { .cta-band { padding: 3rem; } }
.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-inner h2 { margin-top: 1rem; }
.cta-inner > div:first-child { max-width: 36rem; }
.cta-inner p { margin-top: 0.75rem; color: var(--muted-foreground); text-wrap: pretty; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem; }
  .contact-aside { grid-column: span 2; }
  .contact-main { grid-column: span 3; }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}
.contact-card:hover { border-color: color-mix(in oklab, var(--brand) 50%, transparent); }
.contact-card.top { align-items: flex-start; }
.contact-card .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}
.contact-card .value { margin-top: 0.15rem; font-size: 0.875rem; font-weight: 500; }
.contact-stack { display: grid; gap: 1rem; }

/* Form */
.form-panel {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 640px) { .form-panel { padding: 2rem; } }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: color-mix(in oklab, var(--surface-2) 50%, transparent);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 30%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--destructive); }

.field-error {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--destructive);
}

.file-drop {
  display: flex;
  cursor: pointer;
  align-items: center;
  gap: 0.75rem;
  border: 1px dashed var(--border);
  background: color-mix(in oklab, var(--surface-2) 50%, transparent);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: border-color 0.2s ease;
}
.file-drop:hover { border-color: color-mix(in oklab, var(--brand) 50%, transparent); }
.file-drop .icon { color: var(--brand); }
.file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.form-success .ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  background: var(--surface-2);
  color: var(--brand);
}
.form-success h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.form-success p { margin-top: 0.5rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.form-success .btn { margin-top: 1.5rem; }

.hidden { display: none !important; }

/* Map */
.map-panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 60%, transparent);
}
.map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
@media (min-width: 640px) { .map-canvas { aspect-ratio: 16 / 7; } }
.map-canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  background: color-mix(in oklab, var(--surface-2) 40%, transparent);
}
.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--brand) 40%, transparent);
  background: var(--background);
  color: var(--brand);
}
.map-placeholder p { max-width: 20rem; padding-inline: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.map-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}
@media (min-width: 640px) { .map-foot { flex-direction: row; align-items: center; } }

/* ---------- Order tracker ---------- */
.tracker { margin-inline: auto; max-width: 48rem; }
.tracker-form {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.tracker-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .tracker-row { flex-direction: row; } }
.tracker-input-wrap { position: relative; flex: 1; }
.tracker-input-wrap .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.tracker-input {
  height: 3rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding-left: 2.5rem;
  padding-right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.tracker-input:focus { border-color: var(--brand); }
.tracker-hint { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.tracker-hint button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  color: var(--brand);
}
.tracker-hint button:hover { text-decoration: underline; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--destructive) 40%, transparent);
  background: color-mix(in oklab, var(--destructive) 10%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.alert .icon { color: var(--destructive); margin-top: 0.125rem; }
.alert p + p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.order-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}
@media (min-width: 640px) { .order-panel { padding: 1.75rem; } }
.order-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}
@media (min-width: 640px) { .order-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.order-id { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); }
.order-item { margin-top: 0.25rem; font-size: 1.125rem; font-weight: 600; text-wrap: balance; }
.order-eta {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.stage-list { margin-top: 1.5rem; }
.stage {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}
.stage:last-child { padding-bottom: 0; }
.stage-connector {
  position: absolute;
  left: 19px;
  top: 2.5rem;
  height: calc(100% - 1.5rem);
  width: 1px;
  background: var(--border);
}
.stage.done .stage-connector { background: var(--brand); }
.stage-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--muted-foreground);
}
.stage.done .stage-icon {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-foreground);
}
.stage.active .stage-icon {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 15%, transparent);
  color: var(--brand);
}
.stage.active .stage-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1px solid color-mix(in oklab, var(--brand) 60%, transparent);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(1.6); opacity: 0; }
}
.stage-body { padding-top: 0.25rem; }
.stage-title { display: flex; align-items: center; gap: 0.5rem; }
.stage-title p { font-weight: 600; color: var(--muted-foreground); }
.stage.done .stage-title p,
.stage.active .stage-title p { color: var(--foreground); }
.stage-badge {
  border-radius: 9999px;
  background: color-mix(in oklab, var(--brand) 15%, transparent);
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.stage-desc { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted-foreground); }
.stage-courier { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand); }

.help-section { border-top: 1px solid var(--border); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.footer-inner { position: relative; padding-block: 3.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.footer p.about { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; line-height: 1.7; color: var(--muted-foreground); }
.footer h2 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500; }
.footer ul { margin-top: 1rem; display: grid; gap: 0.625rem; }
.footer li, .footer a { font-size: 0.875rem; color: var(--muted-foreground); }
.footer a:hover { color: var(--brand); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.625rem; }
.footer-contact .icon { color: var(--brand); flex-shrink: 0; }

.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 90%, transparent);
  backdrop-filter: blur(20px);
  border-radius: 9999px;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}
.wa-float:hover { border-color: color-mix(in oklab, var(--brand) 60%, transparent); }
.wa-float .bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--brand-foreground);
  transition: transform 0.2s ease;
}
.wa-float:hover .bubble { transform: scale(1.1); }
.wa-label { display: none; }
@media (min-width: 640px) { .wa-label { display: inline; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Print ---------- */
@media print {
  .navbar, .wa-float, .footer { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small structural fixes ---------- */
.contact-card > span { display: block; min-width: 0; }
.contact-card .label,
.contact-card .value { display: block; }
.review-card .stars { color: var(--brand); }
.order-eta strong { font-weight: 600; }
.footer-contact a { transition: color 0.2s ease; }
.service-copy .icon-badge { margin-bottom: 0; }

/* ==========================================================================
   Order flow additions — form alert, Order ID panel, order meta,
   admin dashboard. Appended; nothing above was changed.
   ========================================================================== */

/* ---------- Inline form error banner ---------- */
.form-alert {
  margin-bottom: 1.25rem;
}
.form-alert p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- Order ID panel in the success state ---------- */
.order-id-box {
  margin: 1.5rem auto;
  max-width: 22rem;
  border: 1px dashed color-mix(in oklab, var(--brand) 55%, var(--border));
  background: color-mix(in oklab, var(--brand) 8%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.order-id-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.order-id-value {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--foreground);
  overflow-wrap: anywhere;
}
.order-id-box .btn { margin-top: 1rem; }

.success-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Tracking: meta grid + note ---------- */
.track-loading {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.order-meta {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.order-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.order-meta dd {
  margin-top: 0.2rem;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.order-meta dd a { color: inherit; }

.order-note {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border-left: 2px solid var(--brand);
  background: color-mix(in oklab, var(--brand) 7%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
}
.order-note .icon { color: var(--brand); margin-top: 0.15rem; flex: none; }

/* ---------- Admin dashboard ---------- */
.admin-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .admin-bar { flex-direction: row; align-items: flex-end; }
}
.admin-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.admin-card + .admin-card { margin-top: 1rem; }
@media (min-width: 640px) { .admin-card { padding: 1.5rem; } }

.admin-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.status-pill {
  border: 1px solid color-mix(in oklab, var(--brand) 45%, var(--border));
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.admin-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-file {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.admin-file a { color: var(--brand); }

.admin-controls {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .admin-controls { grid-template-columns: repeat(3, 1fr); }
  .admin-controls .field-wide { grid-column: 1 / -1; }
}

.admin-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-row-msg {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.admin-row-msg.ok { color: var(--brand); }
.admin-row-msg.err { color: var(--destructive); }
