/* ============================================================
   UNLOX — Built for What's Next
   ============================================================ */

:root {
  --black: #060607;
  --ink: #101013;
  --ink-2: #1b1b1f;
  --white: #ffffff;
  --off-white: #f5f5f7;
  --grey-100: #e8e8ed;
  --grey-300: #d2d2d7;
  --grey-500: #86868b;
  --grey-700: #424245;
  --orange: #ff6a00;
  --orange-hover: #e85f00;
  --orange-soft: rgba(255, 106, 0, 0.08);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(6, 6, 7, 0.04), 0 12px 32px rgba(6, 6, 7, 0.07);
  --shadow-card-hover: 0 2px 4px rgba(6, 6, 7, 0.05), 0 24px 60px rgba(6, 6, 7, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
}

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

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

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

#process, #services, #pricing, #why, #work, #about, #contact { scroll-margin-top: 80px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: 980px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, transform 0.3s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-hover); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-300);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }

.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(6, 6, 7, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark { border-radius: 50%; }
.brand-word {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  color: var(--white);
}
.brand-x {
  background: linear-gradient(100deg, #fff 49.5%, var(--orange) 50.5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav > a:not(.nav-cta) {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s ease;
}
.main-nav > a:not(.nav-cta):hover { color: var(--white); }

.lang-toggle {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 980px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 0;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 25%, transparent 72%);
}

/* ---------- The Unlox mark — animated door that settles into the logo ---------- */
.door-scene {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 400px;
  height: 640px;
  transform: translateY(-52%);
  pointer-events: none;
}

/* the white left side + curved bottom of the "U" — appears as the door opens */
.lg-u {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease 1.1s;
}
.door-scene.open .lg-u {
  opacity: 1;
  animation: uPulse 4.2s ease-in-out 3s infinite alternate;
}
@keyframes uPulse {
  from { filter: drop-shadow(0 0 10px rgba(255, 244, 224, 0.3)); }
  to { filter: drop-shadow(0 0 24px rgba(255, 228, 190, 0.55)); }
}

/* soft ambient — kept tight around the mark, not the whole hero */
.door-ambient {
  position: absolute;
  left: 285px;
  top: 320px;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 106, 0, 0.14) 0%, rgba(255, 106, 0, 0.04) 45%, transparent 68%);
  opacity: 0;
  transition: opacity 2.4s ease 0.9s;
}
.door-scene.open .door-ambient {
  opacity: 1;
  animation: ambientPulse 5s ease-in-out 3s infinite alternate;
}
@keyframes ambientPulse {
  from { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* the doorway = the right vertical stroke of the "U" */
.doorway {
  position: absolute;
  left: 254px;
  top: 176px;
  width: 74px;
  height: 324px;
  perspective: 950px;
  perspective-origin: -30% 45%;
}

/* shadow the panel casts back into the lit opening */
.door-cast {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 9, 0, 0.55), rgba(24, 9, 0, 0.16) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 1.8s ease 1s;
  z-index: 1;
}
.door-scene.open .door-cast { opacity: 0.55; }

/* interior light behind the panel — shows as a hot edge once ajar */
.door-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(150% 100% at 50% 80%,
      #ffffff 0%, #fff3e2 40%, #ffd9a8 70%, #ffab55 100%);
  opacity: 0;
  transition: opacity 1.8s ease 0.55s;
}
.door-scene.open .door-light {
  opacity: 1;
  box-shadow:
    0 0 22px 5px rgba(255, 140, 40, 0.45),
    0 0 60px 14px rgba(255, 106, 0, 0.2);
  animation: lightPulse 4.2s ease-in-out 3s infinite alternate;
}
@keyframes lightPulse {
  from {
    filter: brightness(1);
    box-shadow: 0 0 18px 4px rgba(255, 140, 40, 0.35), 0 0 50px 12px rgba(255, 106, 0, 0.15);
  }
  to {
    filter: brightness(1.15);
    box-shadow: 0 0 30px 8px rgba(255, 150, 50, 0.55), 0 0 80px 20px rgba(255, 106, 0, 0.28);
  }
}

/* a hot vertical seam where the door first cracks open (handle side) */
.door-seam {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, #ffd9a8 18%, #fff3e2 50%, #ffd9a8 82%, transparent);
  box-shadow: 0 0 22px 6px rgba(255, 150, 50, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease 0.35s;
  z-index: 3;
}
.door-scene.open .door-seam { opacity: 1; transition: opacity 0.4s ease; animation: seamFade 1.4s ease 0.9s forwards; }
@keyframes seamFade { to { opacity: 0; } }

/* the door panel — a physical door hinged along its inner LEFT edge.
   True 3D: perspective on the doorway, preserve-3d, a thickness face,
   and a keyframed swing with slow start, acceleration and gentle settle. */
.door-panel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(0deg);
  transition: background-color 1.2s ease 0.9s, box-shadow 1.2s ease 0.9s;
  background: linear-gradient(94deg, #232329 0%, #141417 60%, #0c0c0e 100%);
  border-radius: 2px;
  z-index: 2;
}
/* door thickness along the hinge side — becomes visible as it swings */
.door-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 13px;
  transform-origin: left center;
  transform: rotateY(90deg);
  background: linear-gradient(180deg, #1c1c21 0%, #101013 100%);
  transition: background 1.2s ease 0.9s;
}
.door-scene.open .door-edge {
  background: linear-gradient(180deg, #8a3f00 0%, #6b3000 60%, #4f2300 100%);
}
.door-handle {
  position: absolute;
  right: 11px;
  top: 46%;
  width: 7px;
  height: 44px;
  transform: translateY(-50%) translateZ(2px);
  border-radius: 4px;
  background: #0a0a0c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
.door-scene.open .door-panel {
  animation: doorSwing 3s cubic-bezier(0.5, 0.04, 0.22, 1) 0.45s forwards;
  background: linear-gradient(180deg, #ff8f2e 0%, #f97400 55%, #e85f00 100%);
  box-shadow:
    inset 0 -8px 18px rgba(255, 225, 180, 0.4),
    inset 4px 0 10px rgba(255, 200, 140, 0.28),
    14px 4px 30px rgba(0, 0, 0, 0.4),
    0 0 20px 3px rgba(255, 120, 20, 0.3);
}
@keyframes doorSwing {
  0% { transform: rotateY(0deg); }
  14% { transform: rotateY(-3deg); }
  72% { transform: rotateY(-37deg); }
  87% { transform: rotateY(-30.5deg); }
  100% { transform: rotateY(-33deg); }
}

/* light cast across the floor — short and close to the mark */
.door-beam {
  position: absolute;
  left: 4%;
  bottom: 14%;
  width: 84%;
  height: 20%;
  background: linear-gradient(80deg,
    transparent 16%,
    rgba(255, 140, 40, 0.1) 42%,
    rgba(255, 160, 70, 0.26) 66%,
    rgba(255, 200, 140, 0.38) 82%,
    transparent 96%);
  transform: skewX(-32deg);
  filter: blur(16px);
  opacity: 0;
  transition: opacity 2.2s ease 1s;
}
.door-scene.open .door-beam {
  opacity: 1;
  animation: beamPulse 4.2s ease-in-out 3s infinite alternate;
}
@keyframes beamPulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}
/* hot pool where the door meets the bottom stroke */
.door-threshold {
  position: absolute;
  left: 68%;
  bottom: 18.5%;
  width: 210px;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 220, 170, 0.6), rgba(255, 120, 20, 0.25) 55%, transparent 75%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 2s ease 1.1s;
}
.door-scene.open .door-threshold {
  opacity: 1;
  animation: beamPulse 4.2s ease-in-out 3s infinite alternate;
}

/* ---------- Hero content ---------- */
.hero-inner { position: relative; z-index: 2; max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1.8rem;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.4); }
  70% { box-shadow: 0 0 0 9px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.hero-title {
  font-size: clamp(3rem, 1.6rem + 6.4vw, 6.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1.7rem;
}
.hero-title > span { display: block; }
.accent-line { color: var(--orange); }
.title-dot { color: var(--white); }

.hero-sub {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  max-width: 550px;
  margin-bottom: 2.6rem;
  font-weight: 400;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-note {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.5rem 0 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.ticker-track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.6);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 3.5rem + 5vw, 8.5rem) 0; }
.section-alt { background: var(--off-white); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 2rem + 3.5vw, 5rem);
}
.section-head-left { text-align: left; margin-inline: 0; }

.kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--grey-500);
  margin-top: 1.1rem;
  font-size: 1.13rem;
  line-height: 1.6;
}

/* ---------- Process ---------- */
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  position: relative;
}
.track-line {
  position: absolute;
  top: 24px;
  left: 9%;
  right: 9%;
  height: 1.5px;
  background: var(--grey-100);
  overflow: hidden;
  border-radius: 2px;
}
.track-line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #ff9440);
  transition: width 0.25s linear;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.8rem;
}

.step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--grey-100);
  color: var(--ink);
  margin-bottom: 1.4rem;
  transition: border-color 0.35s ease, color 0.35s ease, transform 0.45s var(--ease);
}
.step-dot svg { width: 20px; height: 20px; }
.process-step:hover .step-dot {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-4px);
}

.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--grey-500);
  margin-bottom: 0.55rem;
}

.process-step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.94rem; color: var(--grey-500); line-height: 1.5; }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; gap: 1.4rem; }
.services-grid, .plans-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.service-icon {
  display: inline-flex;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 { margin-bottom: 0.35rem; }
.service-tag { color: var(--grey-500); font-size: 0.96rem; margin-bottom: 1.4rem; }

.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.7rem;
  font-size: 0.97rem;
  color: var(--grey-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Pricing ---------- */
.launch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.launch-card, .plan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.launch-card:hover, .plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.launch-featured {
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.launch-featured::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.launch-featured .launch-desc, .launch-featured .check-list li { color: rgba(255, 255, 255, 0.72); }

.flag {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  z-index: 1;
}

.launch-head { margin-bottom: 1rem; padding-right: 2rem; }
.launch-head h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }

.price { display: flex; align-items: baseline; gap: 0.5rem; }
.price-amount {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.price-term { color: var(--grey-500); font-size: 0.95rem; }
.launch-featured .price-term { color: rgba(255, 255, 255, 0.5); }

.launch-desc, .plan-desc { color: var(--grey-500); font-size: 0.98rem; margin-bottom: 1.3rem; line-height: 1.55; }
.launch-card .check-list, .plan-card .check-list { margin-bottom: 2rem; flex: 1; }

.pricing-subhead {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.plan-card h4 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.plan-card .price { margin-bottom: 1rem; }
.plan-card .price-amount { font-size: 2.1rem; }
.plan-featured { box-shadow: 0 0 0 1.5px var(--orange), var(--shadow-card-hover); }

.pricing-note {
  text-align: center;
  color: var(--grey-500);
  font-size: 0.92rem;
  margin-top: 2.6rem;
}

/* ---------- Why Unlox (dark) ---------- */
.section-dark {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark-glow {
  position: absolute;
  left: 50%;
  top: -240px;
  width: 760px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 106, 0, 0.13), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.why-card {
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: background-color 0.4s ease, transform 0.5s var(--ease);
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-5px);
}
.why-num {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.why-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.why-card p { color: rgba(255, 255, 255, 0.58); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Projects ---------- */
.projects { display: grid; gap: clamp(3.5rem, 2.5rem + 3vw, 6rem); }

.project-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 1.5rem + 2.5vw, 4rem);
  align-items: center;
}
.project-flip .browser-mockup { order: 2; }
.project-flip .project-info { order: 1; }

.browser-mockup {
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 2px 6px rgba(6, 6, 7, 0.08), 0 28px 70px rgba(6, 6, 7, 0.18);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.project-card:hover .browser-mockup {
  transform: translateY(-8px);
  box-shadow: 0 4px 10px rgba(6, 6, 7, 0.1), 0 40px 90px rgba(6, 6, 7, 0.25);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.72rem 1rem;
  background: var(--ink-2);
  position: relative;
  z-index: 4;
}
.b-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.browser-bar .b-dot:first-child { background: rgba(255, 106, 0, 0.75); }
.b-url {
  margin-left: 0.8rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.24rem 0.9rem;
  border-radius: 980px;
  letter-spacing: 0.02em;
}

/* 404 → reveal stage */
.shot-stage { position: relative; overflow: hidden; }
.shot-stage img { width: 100%; }

.shot-404 {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
/* tempered-glass shatter — irregular SVG shards, revealed left to right */
.shatter-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.shard {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform var(--dur, 1.4s) cubic-bezier(0.42, 0.05, 0.18, 1),
    opacity var(--dur, 1.4s) ease;
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.shard polygon {
  fill: #f5f5f7;
  stroke: #f5f5f7;
  stroke-width: 0.35;
  transition: fill 0.5s ease var(--d, 0s), stroke 0.5s ease var(--d, 0s);
}
.e404-code, .e404-text, .e404-url {
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease 0.1s;
}
.project-card.dissolved .shot-404 {
  background: transparent;
  pointer-events: none;
}
.project-card.dissolved .e404-code,
.project-card.dissolved .e404-text,
.project-card.dissolved .e404-url { opacity: 0; }
.project-card.dissolved .shard {
  opacity: 0;
  transform: translate(var(--dx, 0px), var(--dy, 20px)) rotate(var(--r, 0deg)) scale(var(--s, 0.7));
}
.project-card.dissolved .shard polygon {
  fill: #faf6f0;
  stroke: rgba(255, 255, 255, 0.75);
}
.project-card.dissolved .shard.glow {
  filter: drop-shadow(0 0 4px rgba(255, 106, 0, 0.8));
}
.project-card.dissolved .shard.glow polygon { stroke: var(--orange); }
.e404-code {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--grey-300);
}
.e404-text {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--orange);
  text-shadow:
    -1.5px -1.5px 0 #060607, 1.5px -1.5px 0 #060607,
    -1.5px 1.5px 0 #060607, 1.5px 1.5px 0 #060607,
    -1.5px 0 0 #060607, 1.5px 0 0 #060607,
    0 -1.5px 0 #060607, 0 1.5px 0 #060607,
    0 3px 10px rgba(6, 6, 7, 0.25);
}
.e404-url {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--grey-300);
  letter-spacing: 0.04em;
}

.project-industry {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.8rem;
}
.project-info h3 { font-size: 1.75rem; margin-bottom: 0.9rem; }
.project-desc { color: var(--grey-700); margin-bottom: 1.5rem; line-height: 1.6; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.9rem;
}
.tag-list li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--grey-700);
  background: var(--off-white);
  padding: 0.38rem 0.9rem;
  border-radius: 980px;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  align-items: center;
}
.about-copy p { color: var(--grey-700); margin-bottom: 1.2rem; max-width: 56ch; line-height: 1.65; }
.about-copy .btn { margin-top: 0.8rem; }

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(6,6,7,.06), 0 30px 70px rgba(6, 6, 7, 0.16);
}
.about-visual img { width: 100%; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(120deg, #ff7a1a 0%, var(--orange) 45%, #e85400 100%);
  color: var(--white);
  padding: clamp(4.5rem, 3rem + 4vw, 7rem) 0;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 86% 82%, rgba(6, 6, 7, 0.16), transparent 48%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 0.9rem; }
.cta-inner p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 2.3rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
  align-items: start;
}

.contact-perks { margin-top: 2rem; display: grid; gap: 0.9rem; }
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.98rem;
  color: var(--grey-700);
}
.contact-perks svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.form-field label span[aria-hidden] { color: var(--orange); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--off-white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-status { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #c8341f; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-slogan {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-nav { display: grid; gap: 0.7rem; }
.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--white); }

.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover {
  color: var(--white);
  border-color: var(--orange);
  background: rgba(255, 106, 0, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }
.d-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .door-scene .door-panel { transform: rotateY(-33deg); animation: none !important; }
  .door-scene .door-light, .door-scene .door-beam, .door-scene .lg-u,
  .door-scene .door-ambient, .door-scene .door-threshold { opacity: 1; }
  .door-scene .door-cast { opacity: 0.55; }
  .shot-404 { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .plans-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .track-line { display: none; }
  .door-scene { right: -70px; opacity: 0.65; }
}

@media (max-width: 820px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 7, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2.1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 105;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav > a:not(.nav-cta) { font-size: 1.25rem; }
  .nav-toggle { display: flex; }

  .project-card { grid-template-columns: 1fr; }
  .project-flip .browser-mockup { order: 0; }
  .project-flip .project-info { order: 1; }

  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 440px; }
  .launch-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid, .plans-grid, .why-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .door-scene {
    right: -110px;
    top: 42%;
    transform: translateY(-50%) scale(0.62);
    opacity: 0.55;
  }
  .hero-inner { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
