/* Overlay cinema — gold-night bed. Type is the product; film is atmosphere. */
:root {
  --mx: 50%;
  --my: 42%;
  --al-play: 0;
  --al-ink: #0b0906;
  --al-gold: #e8c547;
  --al-gold-2: #f3d27a;
  --al-paper: #f4ead8;
}

html.al-cinema {
  background: var(--al-ink);
}

/* Layer 0: canvas under the hero still */
section.min-h-screen.flex.items-center.overflow-hidden {
  background: var(--al-ink);
  isolation: isolate;
}

section.min-h-screen.flex.items-center.overflow-hidden > .bg-cover {
  z-index: 1;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.06);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

html.al-cinema-film section.min-h-screen.flex.items-center.overflow-hidden > .bg-cover {
  opacity: 0;
  pointer-events: none;
}

/* Kill the white wash. Corner + floor scrim so left type reads, right plate lives. */
section.min-h-screen.flex.items-center.overflow-hidden > .bg-gradient-to-r.from-white\/90 {
  z-index: 2;
  background-color: transparent !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 7, 6, 0.88) 0%,
      rgba(8, 7, 6, 0.62) 28%,
      rgba(8, 7, 6, 0.22) 52%,
      rgba(8, 7, 6, 0.04) 68%,
      transparent 82%
    ),
    linear-gradient(
      180deg,
      rgba(8, 7, 6, 0.55) 0%,
      transparent 26%,
      transparent 68%,
      rgba(8, 7, 6, 0.72) 100%
    ) !important;
}

.al-hero-bed,
.al-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none !important;
  pointer-events: none;
}

.al-hero-bed {
  z-index: 0;
  overflow: hidden;
}

.al-hero-video {
  object-fit: cover;
  object-position: 62% 48%;
  opacity: 1;
  transform: scale(1.06);
}

.al-pointer-light {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    640px circle at var(--mx) var(--my),
    rgba(232, 197, 71, 0.16),
    rgba(232, 197, 71, 0.04) 32%,
    transparent 58%
  );
  mix-blend-mode: screen;
}

.al-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(8, 7, 6, 0.55) 100%);
}

.al-playhead {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(232, 197, 71, 0.15),
    rgba(232, 197, 71, 0.95)
  );
  transform-origin: 0 50%;
  transform: scaleX(var(--al-play, 0));
}

.al-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(22vh, 160px);
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--al-ink));
}

.al-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.75  0 0 0 0 0.35  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Type on film — first paint, no JS required */
section.min-h-screen.flex.items-center .hero-copy {
  position: relative;
  z-index: 8;
}

section.min-h-screen.flex.items-center .font-mono-label.text-cyan-600 {
  color: var(--al-gold) !important;
  text-shadow: 0 0 24px rgba(232, 197, 71, 0.35);
}

section.min-h-screen.flex.items-center .hero-title {
  color: var(--al-paper) !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

section.min-h-screen.flex.items-center .hero-title .text-gradient {
  background-image: linear-gradient(135deg, #f6e6b8, #e8c547, #c9a227) !important;
  -webkit-text-fill-color: transparent;
}

section.min-h-screen.flex.items-center .hero-copy > p.text-slate-600,
section.min-h-screen.flex.items-center .hero-copy p.text-lg {
  color: rgba(244, 234, 216, 0.84) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

section.min-h-screen.flex.items-center .glass-hero {
  background: rgba(12, 10, 8, 0.58) !important;
  border: 1px solid rgba(232, 197, 71, 0.28) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(243, 210, 122, 0.16) !important;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

section.min-h-screen.flex.items-center .glass-hero h3 {
  color: var(--al-paper) !important;
}

section.min-h-screen.flex.items-center .glass-hero p {
  color: rgba(244, 234, 216, 0.78) !important;
}

section.min-h-screen.flex.items-center .accent-line {
  background: linear-gradient(90deg, #c9a227, #f3d27a) !important;
  box-shadow: 0 0 16px rgba(232, 197, 71, 0.45);
}

section.min-h-screen.flex.items-center .icon-circle-hero,
section.min-h-screen.flex.items-center .glass-hero .icon-circle {
  background: linear-gradient(160deg, rgba(32, 26, 16, 0.95), rgba(18, 14, 10, 0.9)) !important;
  border-color: rgba(232, 197, 71, 0.38) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(243, 210, 122, 0.2) !important;
}

section.min-h-screen.flex.items-center .icon-circle-hero svg,
section.min-h-screen.flex.items-center .glass-hero .icon-circle svg {
  color: var(--al-gold-2) !important;
  stroke: currentColor !important;
}

section.min-h-screen.flex.items-center .btn-primary,
.btn-primary {
  background: linear-gradient(135deg, #f6e6b8 0%, #e8c547 42%, #c9a227 100%) !important;
  color: #0b0906 !important;
  box-shadow: 0 8px 28px rgba(232, 197, 71, 0.32), 0 0 0 1px rgba(243, 210, 122, 0.28) !important;
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(232, 197, 71, 0.42), 0 0 0 1px rgba(243, 210, 122, 0.4) !important;
  color: #0b0906 !important;
}

.btn-whatsapp {
  background: transparent !important;
  color: var(--al-paper) !important;
  border: 1px solid rgba(232, 197, 71, 0.42) !important;
  box-shadow: none !important;
}

.btn-whatsapp:hover {
  background: rgba(232, 197, 71, 0.12) !important;
  color: var(--al-gold-2) !important;
  border-color: rgba(232, 197, 71, 0.7) !important;
  transform: translateY(-2px);
}

/* Nav over film */
nav.fixed.z-50 {
  background: rgba(10, 8, 6, 0.42) !important;
  border-bottom: 1px solid rgba(232, 197, 71, 0.12);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

nav.fixed.z-50.nav-glass,
.nav-glass {
  background: rgba(10, 8, 6, 0.78) !important;
  border-bottom: 1px solid rgba(232, 197, 71, 0.22) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28) !important;
}

nav.fixed.z-50 a.text-slate-600,
nav.fixed.z-50 a.text-sm {
  color: #f4ead8 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

nav.fixed.z-50 a.text-slate-600:hover,
nav.fixed.z-50 a:hover {
  color: var(--al-gold-2) !important;
}

nav.fixed.z-50 button.md\\:hidden,
nav.fixed.z-50 button[aria-label] {
  color: var(--al-paper) !important;
}

nav.fixed.z-50 .glass-card {
  background: rgba(14, 12, 10, 0.94) !important;
  border: 1px solid rgba(232, 197, 71, 0.24) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}

nav.fixed.z-50 .glass-card a {
  color: var(--al-paper) !important;
  border-color: rgba(232, 197, 71, 0.14) !important;
}

nav.fixed.z-50 .glass-card a:hover {
  color: var(--al-gold-2) !important;
}

/* Magnet on primary CTA — transform only, inner hover */
@media (hover: hover) and (pointer: fine) {
  section.min-h-screen.flex.items-center .btn-primary {
    transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.16s ease-out;
  }
  section.min-h-screen.flex.items-center .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
  }
  section.min-h-screen.flex.items-center .btn-primary:active {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .al-hero-video,
  .al-pointer-light,
  .al-playhead {
    display: none !important;
  }
  section.min-h-screen.flex.items-center.overflow-hidden > .bg-cover {
    transform: none;
    filter: none;
  }
}

/* ——— One world below the hero (gold-night, not a second light site) ——— */
html,
body {
  background: var(--al-ink) !important;
  color: var(--al-paper);
}

body:before {
  opacity: 0.35 !important;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(232, 197, 71, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(0, 180, 216, 0.05) 0%, transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(232, 197, 71, 0.04) 0%, transparent 46%) !important;
}

::-webkit-scrollbar-track {
  background: #120f0c;
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 197, 71, 0.35);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 197, 71, 0.55);
}
::selection {
  background: rgba(232, 197, 71, 0.32);
  color: #fff8e8;
}

.section-light,
.section-white {
  background: transparent !important;
  backdrop-filter: none !important;
}

#services,
#industries,
#process,
#capabilities,
#testimonials,
#ceo,
#contact,
footer {
  color: var(--al-paper);
}

#services > .bg-cover,
#process > .bg-cover,
#capabilities > .bg-cover,
#contact > .bg-cover {
  opacity: 0.14 !important;
  filter: saturate(0.4) brightness(0.38) contrast(1.08);
}

#services > .bg-gradient-to-b,
#process > .bg-gradient-to-b,
#contact > .bg-gradient-to-b,
section > .from-white\/95,
section > .via-white\/85,
section > .via-white\/80,
section > .to-white\/90,
section > .to-white\/95,
section > .to-white\/70,
section > .to-white\/98 {
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    rgba(11, 9, 6, 0.82) 0%,
    rgba(11, 9, 6, 0.92) 48%,
    rgba(11, 9, 6, 0.97) 100%
  ) !important;
}

#services h2,
#industries h2,
#process h2,
#capabilities h2,
#testimonials h2,
#ceo h2,
#contact h2,
#services h3,
#industries h3,
#process h3,
#capabilities h3,
#testimonials h3,
#ceo h3,
#contact h3,
footer h4 {
  color: var(--al-paper) !important;
}

#services .text-slate-900,
#industries .text-slate-900,
#process .text-slate-900,
#ceo .text-slate-900,
#contact .text-slate-900,
footer .text-slate-900 {
  color: var(--al-paper) !important;
}

#services .text-slate-600,
#industries .text-slate-600,
#process .text-slate-600,
#ceo .text-slate-600,
#contact .text-slate-600,
footer .text-slate-600,
#services .text-slate-500,
#industries .text-slate-500,
#process .text-slate-500,
#ceo .text-slate-500,
#contact .text-slate-500,
footer .text-slate-500,
#contact .text-slate-700 {
  color: rgba(244, 234, 216, 0.72) !important;
}

#services .font-mono-label,
#industries .font-mono-label,
#process .font-mono-label,
#ceo .font-mono-label,
#contact .font-mono-label,
footer .font-mono-label,
.font-mono-label.text-cyan-600 {
  color: var(--al-gold) !important;
}

#services .text-cyan-600,
#industries .text-cyan-600,
#process .text-cyan-600,
#ceo .text-cyan-600,
#contact .text-cyan-600 {
  color: var(--al-gold) !important;
}

.accent-line {
  background: linear-gradient(90deg, #c9a227, #f3d27a) !important;
}

.glass-card {
  background: rgba(16, 13, 10, 0.62) !important;
  border: 1px solid rgba(232, 197, 71, 0.22) !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(243, 210, 122, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.glass-card:hover {
  background: rgba(22, 18, 12, 0.78) !important;
  border-color: rgba(232, 197, 71, 0.38) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(243, 210, 122, 0.16) !important;
}

.glass-card:before {
  background: linear-gradient(90deg, transparent, rgba(243, 210, 122, 0.35), transparent) !important;
}

.glass-card h3,
.glass-card h4,
.glass-card .text-slate-900 {
  color: var(--al-paper) !important;
}

.glass-card p,
.glass-card .text-slate-600,
.glass-card .text-slate-500 {
  color: rgba(244, 234, 216, 0.72) !important;
}

.icon-circle,
.icon-circle-hero,
.process-glass-icon,
#process .icon-circle,
#process .process-glass-icon,
#process .process-step .icon-circle {
  background: linear-gradient(160deg, rgba(36, 28, 16, 0.98), rgba(16, 12, 8, 0.96)) !important;
  border-color: rgba(232, 197, 71, 0.38) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(243, 210, 122, 0.18) !important;
  color: var(--al-gold-2) !important;
}

.icon-circle svg,
.icon-circle-hero svg,
.process-glass-icon svg,
#process .icon-circle svg,
.text-cyan-600 .icon-circle svg,
.icon-circle span {
  color: var(--al-gold-2) !important;
  stroke: currentColor !important;
}

.icon-circle:hover,
.icon-circle-hero:hover {
  border-color: rgba(243, 210, 122, 0.7) !important;
  box-shadow:
    0 14px 32px rgba(232, 197, 71, 0.16),
    inset 0 1px 0 rgba(243, 210, 122, 0.28) !important;
}

#process .process-step-index {
  color: rgba(232, 197, 71, 0.55) !important;
}

@media (min-width: 768px) {
  .process-step-line {
    background: linear-gradient(90deg, rgba(232, 197, 71, 0.15), rgba(232, 197, 71, 0.55), rgba(232, 197, 71, 0.15)) !important;
    border-top-color: rgba(232, 197, 71, 0.35) !important;
  }
  .process-step-line::after {
    background: var(--al-gold) !important;
    box-shadow: 0 0 0 3px rgba(11, 9, 6, 0.9) !important;
  }
}

#ceo .border-cyan-400,
#ceo .rounded-full {
  border-color: rgba(232, 197, 71, 0.55) !important;
  box-shadow: 0 12px 40px rgba(232, 197, 71, 0.18) !important;
}

#contact input,
#contact textarea,
#contact select {
  background: rgba(20, 16, 12, 0.78) !important;
  border: 1px solid rgba(232, 197, 71, 0.22) !important;
  color: var(--al-paper) !important;
  caret-color: var(--al-gold);
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: rgba(244, 234, 216, 0.38) !important;
}

#contact input:focus,
#contact textarea:focus,
#contact select:focus {
  background: rgba(28, 22, 16, 0.92) !important;
  border-color: rgba(232, 197, 71, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.14) !important;
  outline: none;
}

footer {
  background: rgba(8, 7, 6, 0.92) !important;
  border-top: 1px solid rgba(232, 197, 71, 0.18) !important;
  backdrop-filter: blur(16px);
}

footer a {
  color: rgba(244, 234, 216, 0.78) !important;
}

footer a:hover {
  color: var(--al-gold-2) !important;
}

footer .border-slate-200\/60,
footer .border-t {
  border-color: rgba(232, 197, 71, 0.18) !important;
}

#root .bg-cyan-50 {
  background: rgba(36, 28, 16, 0.9) !important;
}

#root .text-cyan-700,
#root .text-cyan-600 {
  color: var(--al-gold) !important;
}

#root .border-cyan-100,
#root .border-cyan-400 {
  border-color: rgba(232, 197, 71, 0.32) !important;
}

#root .px-3.py-1.rounded-full {
  background: rgba(36, 28, 16, 0.85) !important;
  color: var(--al-gold-2) !important;
  border-color: rgba(232, 197, 71, 0.28) !important;
}

#root .font-mono-label.text-slate-600,
#root .font-mono-label.text-slate-500 {
  color: rgba(232, 197, 71, 0.78) !important;
}

#root h2,
#root h3,
#root h4,
#root .text-slate-900 {
  color: var(--al-paper) !important;
}

#root .text-slate-600,
#root .text-slate-500,
#root .text-slate-700,
#root .text-slate-400 {
  color: rgba(244, 234, 216, 0.72) !important;
}

section > .bg-cover.opacity-15,
section > .bg-cover.opacity-10,
section > .bg-cover.opacity-20,
section > .bg-cover.opacity-5 {
  opacity: 0.16 !important;
  filter: saturate(0.4) brightness(0.42) contrast(1.08);
}

#abbasilabs-support iframe {
  background: transparent !important;
  color-scheme: dark;
}

#root .text-emerald-700 {
  color: var(--al-gold-2) !important;
}

#root a.hover\:text-cyan-600:hover {
  color: var(--al-gold-2) !important;
}

#contact .btn-primary {
  width: 100%;
}

@media (max-width: 640px) {
  section.min-h-screen.flex.items-center .btn-primary,
  section.min-h-screen.flex.items-center .btn-whatsapp {
    min-height: 44px;
  }
}
