:root {
  --bg-0: #f8f9fa;
  --bg-1: #e9ecef;
  --bg-2: #dee2e6;
  --bg-3: #ced4da;
  --bg-4: #adb5bd;
  --bg-5: #8f98a3;
  --ink-1: #6c757d;
  --ink-2: #495057;
  --ink-3: #343a40;
  --ink-4: #212529;
  --ink-5: #111418;
  --surface-dark: #1b1f24;
  --surface-mid: rgba(33, 37, 41, 0.72);
  --surface-light: rgba(248, 249, 250, 0.08);
  --line-soft: rgba(248, 249, 250, 0.14);
  --line-strong: rgba(248, 249, 250, 0.22);
  --glow-soft: rgba(222, 226, 230, 0.18);
  --shadow-soft: 0 18px 50px rgba(33, 37, 41, 0.12);
  --shadow-card: 0 28px 90px rgba(15, 17, 20, 0.28);
  --container: min(1180px, calc(100% - 48px));
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--bg-0);
  background: #0f1318;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Global Grain Noise for Premium feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  filter: contrast(120%) brightness(100%);
}

.is-ready .hero-reveal,
.is-ready .hero-reveal-scale,
.is-ready .hero-fade {
  animation-play-state: running;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition:
    padding 180ms ease,
    background-color 180ms ease,
    backdrop-filter 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  padding: 0;
  background: rgba(17, 20, 24, 0.9); /* Solid-ish background, no blur */
  border-bottom: 1px solid rgba(248, 249, 250, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 0px 2rem;
  border-radius: 0;
  border: 0;
  background: transparent; /* Remove background */
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-0);
}

.brand img {
  height: 48px; /* Slightly larger for better balance with text */
  width: auto;
  display: block;
  margin-right: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 50px;
  color: rgba(248, 249, 250, 0.76);
  font-size: 1.2rem;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--bg-0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
    cursor: pointer;
}

.header-cta {
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink-5);
  background: var(--bg-0);
  box-shadow: 0 18px 40px rgba(248, 249, 250, 0.14);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 20px) 0 20px;
  background:
    radial-gradient(circle at 18% 22%, rgba(248, 249, 250, 0.1), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(173, 181, 189, 0.1), transparent 30%),
    linear-gradient(145deg, #0f1318 0%, #1b2026 48%, #262d35 100%);
}

.pathways {
  position: relative;
  padding: 140px 0;
  background: radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.12), transparent 45%),
              radial-gradient(circle at 0% 100%, rgba(155, 81, 224, 0.1), transparent 45%),
              radial-gradient(rgba(248, 249, 250, 0.25) 1px, transparent 1px),
              #0f1318;
  background-size: 100% 100%, 100% 100%, 48px 48px, 100% 100%;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  z-index: 2; /* Layer above for reveal */
}

.pathways-inner {
  width: var(--container);
  margin: 0 auto;
}

.pathways-heading {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.pathways-heading h2 {
  margin: 0;
  margin-bottom: 10px;
  color: var(--bg-0);
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.path-card {
  position: relative;
  padding: 34px 32px 32px;
  border: 1px solid rgba(248, 249, 250, 0.1);
  border-radius: 28px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(248, 249, 250, 0.08), rgba(248, 249, 250, 0.03)),
    rgba(19, 23, 28, 0.92);
  box-shadow:
    0 18px 50px rgba(5, 8, 12, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    filter 220ms ease;
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 249, 250, 0.14);
  box-shadow:
    0 22px 58px rgba(5, 8, 12, 0.26),
    0 0 24px rgba(222, 226, 230, 0.03);
  filter: brightness(1.02);
}

.path-card-featured {
  transform: scale(1.018);
  border-color: rgba(248, 249, 250, 0.18);
  background:
    radial-gradient(circle at top right, rgba(248, 249, 250, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(248, 249, 250, 0.11), rgba(248, 249, 250, 0.04)),
    rgba(19, 23, 28, 0.78);
  box-shadow:
    0 26px 80px rgba(5, 8, 12, 0.34),
    0 0 46px rgba(222, 226, 230, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.path-card-featured:hover {
  transform: translateY(-2px) scale(1.018);
  box-shadow:
    0 28px 82px rgba(5, 8, 12, 0.34),
    0 0 32px rgba(222, 226, 230, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  filter: brightness(1.02);
}

.path-card-label {
  display: inline-block;
  margin-bottom: 14px;
  color: rgba(248, 249, 250, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 0;
  color: var(--bg-0);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.path-card p {
  max-width: 30ch;
  margin: 14px 0 0;
  color: rgba(248, 249, 250, 0.82);
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.7;
}

.path-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 18px;
  border: 1px solid rgba(248, 249, 250, 0.14);
  border-radius: 999px;
  color: var(--bg-0);
  font-weight: 600;
  background: rgba(248, 249, 250, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.path-card-cta:hover {
  transform: translateY(-1px) scale(1.03);
}

.path-card-cta-solid {
  color: var(--ink-5);
  border-color: transparent;
  background: var(--bg-0);
  box-shadow: 0 16px 38px rgba(248, 249, 250, 0.12);
}

.path-card-cta-solid:hover {
  box-shadow: 0 20px 46px rgba(248, 249, 250, 0.16);
}

.path-card-cta-outline {
  color: var(--bg-0);
  border-color: rgba(248, 249, 250, 0.24);
  background: rgba(248, 249, 250, 0.08);
}

.path-card-cta-outline:hover {
  border-color: rgba(248, 249, 250, 0.3);
  background: rgba(248, 249, 250, 0.1);
  box-shadow: 0 14px 36px rgba(5, 8, 12, 0.18);
}



.hero-media,
.hero-overlay,
.hero-noise {
  position: absolute;
  inset: 0;
}

.hero-media {
  transform: translate3d(0, 0, 0) scale(1.08);
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.88;
}

.orb-one {
  top: 10%;
  left: 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(233, 236, 239, 0.07), rgba(173, 181, 189, 0.05) 72%, transparent 100%);
}

.orb-two {
  right: 9%;
  top: 12%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(222, 226, 230, 0.1), rgba(73, 80, 87, 0.06) 70%, transparent 100%);
}

.orb-three {
  bottom: 8%;
  left: 44%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(206, 212, 218, 0.14), rgba(52, 58, 64, 0.02) 72%, transparent 100%);
}

.grid-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 36px;
  background:
    linear-gradient(rgba(248, 249, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 249, 250, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
  opacity: 0.34;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.2) 0%, rgba(8, 10, 14, 0.2) 24%, rgba(8, 10, 14, 0.84) 100%),
    linear-gradient(120deg, rgba(248, 249, 250, 0.04) 0%, rgba(52, 58, 64, 0.08) 34%, rgba(8, 10, 14, 0.56) 100%);
}

.hero-noise {
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(248, 249, 250, 0.8) 0.8px, transparent 0.9px),
    radial-gradient(circle at 80% 60%, rgba(248, 249, 250, 0.12) 0.8px, transparent 0.9px);
  background-size: 22px 22px, 28px 28px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy-block {
  color: var(--bg-0);
}

.hero-reveal,
.hero-reveal-scale,
.hero-fade {
  animation-duration: 820ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  animation-play-state: paused;
}

.hero-reveal {
  animation-name: heroRevealUp;
}

.hero-reveal-scale {
  animation-name: heroRevealScale;
  animation-duration: 1000ms;
}

.hero-fade {
  animation-name: heroFadeIn;
  animation-duration: 1400ms;
}

.hero-delay-1 {
  animation-delay: 90ms;
}

.hero-delay-2 {
  animation-delay: 180ms;
}

.hero-delay-3 {
  animation-delay: 270ms;
}

.hero-delay-4 {
  animation-delay: 380ms;
}

.hero-delay-5 {
  animation-delay: 480ms;
}


h1 {
  max-width: 12.5ch;
  margin: 0;
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  font-size: clamp(3.1rem, 5.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
  opacity: 0.6;
  margin-top: 1rem;
}

.hero-copy {
  max-width: 40ch;
  margin: 50px 0px;
  color: rgba(248, 249, 250, 0.8);
  font-size: clamp(1rem, 1.4vw, 1.06rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  font-size: 0.97rem;
}

.button-primary {
  color: var(--ink-5);
  background: var(--bg-0);
  box-shadow: 0 22px 55px rgba(248, 249, 250, 0.16);
}

.button-secondary {
  color: var(--bg-0);
  border: 1px solid rgba(248, 249, 250, 0.18);
  background: rgba(248, 249, 250, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  will-change: transform;
}

.visual-card {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.12), rgba(248, 249, 250, 0.05));
  backdrop-filter: blur(18px);
  box-shadow:
    0 30px 100px rgba(5, 8, 12, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.visual-card-main {
  position: absolute;
  inset: 34px 12px 34px 34px;
  border-radius: 28px;
  overflow: hidden;
}

.visual-card-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--glow-soft), transparent 30%);
  pointer-events: none;
}

.visual-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(248, 249, 250, 0.1);
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.4);
}

.visual-layout {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: calc(100% - 47px);
  position: relative;
  z-index: 1;
}

.visual-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 16px;
  border-right: 1px solid rgba(248, 249, 250, 0.08);
  background: rgba(248, 249, 250, 0.05);
}

.visual-sidebar div {
  height: 12px;
  border-radius: 999px;
  background: rgba(248, 249, 250, 0.14);
}

.visual-content {
  padding: 22px;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.visual-metrics article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(248, 249, 250, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.visual-metrics strong,
.visual-card-floating strong {
  display: block;
  color: var(--bg-0);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.visual-metrics span,
.visual-card-floating span {
  display: block;
  margin-top: 6px;
  color: rgba(248, 249, 250, 0.64);
  font-size: 0.84rem;
}

.visual-chart {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248, 249, 250, 0.06);
}

.chart-line {
  height: 108px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 249, 250, 0.12), rgba(248, 249, 250, 0.03)),
    linear-gradient(120deg, transparent 0%, transparent 18%, rgba(248, 249, 250, 0.34) 18.5%, transparent 19%, transparent 36%, rgba(248, 249, 250, 0.44) 36.5%, transparent 37%, transparent 54%, rgba(248, 249, 250, 0.3) 54.5%, transparent 55%);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  height: 74px;
}

.chart-bars span {
  display: block;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.68), rgba(173, 181, 189, 0.18));
}

.chart-bars span:nth-child(1) {
  height: 38%;
}

.chart-bars span:nth-child(2) {
  height: 66%;
}

.chart-bars span:nth-child(3) {
  height: 54%;
}

.chart-bars span:nth-child(4) {
  height: 82%;
}

.chart-bars span:nth-child(5) {
  height: 72%;
}

.visual-table {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.visual-table div {
  height: 42px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(248, 249, 250, 0.1) 0%, rgba(248, 249, 250, 0.04) 62%, rgba(248, 249, 250, 0.1) 100%);
}

.visual-card-floating {
  position: absolute;
  width: 200px;
  padding: 16px 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 23, 28, 0.84), rgba(33, 37, 41, 0.4));
}

.visual-card-floating p {
  margin: 0 0 10px;
  color: rgba(248, 249, 250, 0.62);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.floating-left {
  left: -8px;
  bottom: 64px;
}

.floating-right { 
  right: -10px;
  top: -10px;
}

@keyframes heroRevealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroRevealScale {
  from {
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 74px;
    padding: 0;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-bottom: 28px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .process {
    padding: 0 0 96px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 50px;
    padding-right: 0;
    margin-bottom: 60px;
    text-align: left;
  }

  .timeline-line {
    left: 20px;
    transform: none;
  }

  .timeline-dot {
    left: 20px;
    top: 30px;
    transform: translateX(-50%);
  }

  .timeline-visual {
    display: none;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    text-align: left;
    max-width: none;
    order: 2;
  }

  .step-num {
    right: auto;
    left: 20px;
  }

  .step-features li,
  .timeline-item:nth-child(even) .step-features li {
    justify-content: flex-start;
  }

  .step-features li::before,
  .timeline-item:nth-child(even) .step-features li::before {
    order: -1;
  }

  .hero-visual {
    min-height: 360px;
  }

  .pathways {
    padding: 80px 0 96px;
  }

  .pathways-grid {
    grid-template-columns: 1fr;
  }

  .path-card,
  .path-card-featured,
  .path-card:hover,
  .path-card-featured:hover {
    transform: none;
  }

  .visual-card-main {
    inset: 14px 8px 14px;
  }

  .floating-left,
  .floating-right {
    width: 200px;
  }

  .floating-left {
    left: 8px;
    bottom: 0;
  }

  .floating-right {
    right: 8px;
    top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 0;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 18px);
    padding-bottom: 14px;
  }

  .process {
    padding: 0 0 80px;
  }

  .pathways {
    padding: 64px 0 80px;
  }

  .pathways-heading {
    margin-bottom: 28px;
  }

  .path-card {
    padding: 28px 24px 24px;
    border-radius: 24px;
    cursor: pointer;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 12vw, 4.1rem);
    line-height: 0.96;
  }

  .hero-copy {
    max-width: 32ch;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .process-heading {
    margin-bottom: 40px;
  }

  .timeline-content {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .step-num {
    font-size: 3rem;
    top: -15px;
  }

  .process-card {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .hero-visual {
    min-height: 250px;
  }

  .visual-card-main {
    inset: 0;
    border-radius: 24px;
  }

  .visual-layout {
    grid-template-columns: 1fr;
  }

  .visual-sidebar {
    display: none;
  }

  .visual-content {
    padding: 16px;
  }

  .visual-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .chart-line {
    height: 64px;
  }

  .visual-card-floating {
    display: none;
  }
}

/* Value Prop Section */
.value-prop {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 50% 100%, rgba(66, 133, 244, 0.12), transparent 50%),
              radial-gradient(circle at 10% 10%, rgba(155, 81, 224, 0.08), transparent 40%),
              radial-gradient(rgba(248, 249, 250, 0.02) 1px, transparent 1px),
              #0f1318;
  background-size: 100% 100%, 100% 100%, 50px 50px, 100% 100%;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  z-index: 2; /* Layer above for reveal */
}

.value-prop-inner {
  width: var(--container);
  margin: 0 auto;
}

.value-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 80px;
}

.value-tagline {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bg-0);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.44;
}

.value-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 5.5vw, 4.2rem);
  color: var(--bg-0);
  margin: 0 0 24px;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.value-header p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.14rem;
  line-height: 1.6;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-item {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 36px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.value-item-featured {
  padding: 50px 42px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.value-item-secondary {
  opacity: 0.7;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease;
}

.value-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(248, 249, 250, 0.05);
}

.value-item:hover .value-icon {
  background: rgba(248, 249, 250, 0.08);
  border-color: rgba(248, 249, 250, 0.3);
  transform: translateY(-2px) scale(1.1);
  color: #fff;
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(248, 249, 250, 0.04);
  border: 1px solid rgba(248, 249, 250, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-0);
  margin-bottom: 28px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-item p {
  color: rgba(248, 249, 250, 0.88);
  font-size: 1.14rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.01em;
}

.value-item-featured p {
  font-size: 1.25rem;
  color: var(--bg-0);
}

.value-footer {
  margin-top: 60px; /* Reduced margin */
  text-align: center;
  position: relative;
}

.value-footer p {
  color: rgba(248, 249, 250, 0.4);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Projects Section */
.projects {
  padding: 160px 0 100px;
  background: 
    linear-gradient(180deg, #0f1318 0%, rgba(15, 19, 24, 0.4) 100%),
    radial-gradient(circle at 80% 20%, rgba(66, 133, 244, 0.08), transparent 45%),
    #0f1318;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
}

.projects-inner {
  width: var(--container);
  margin: 0 auto;
}

.projects-header {
  margin-bottom: 72px;
  max-width: 680px;
}

.projects-tagline {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #60a5fa; /* Soft Blue Accent */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.projects-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  color: var(--bg-0);
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.projects-header p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.25rem;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  background: rgba(248, 249, 250, 0.02);
  border: 1px solid rgba(248, 249, 250, 0.05);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(248, 249, 250, 0.04);
  border-color: rgba(248, 249, 250, 0.1);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(66, 133, 244, 0.05);
}

.project-image {
  position: relative;
  height: 240px;
  background: #151a21;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.project-badge-custom, .project-badge-ready {
  background: rgba(66, 133, 244, 0.15);
  color: rgb(167, 196, 246);
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.project-price-tag {
  background: rgba(15, 19, 24, 0.88);
  border: 1px solid rgba(248, 249, 250, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.project-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px 32px 0;
}

.project-ui-mock {
  width: 100%;
  height: 80%;
  background: #0f1318;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(248, 249, 250, 0.1);
  border-bottom: none;
  position: relative;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-ui-mock {
  transform: translateY(-8px);
}

.project-ui-mock::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30%;
  height: 12px;
  background: rgba(248, 249, 250, 0.06);
  border-radius: 4px;
}

.project-ui-mock::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 14px;
  right: 14px;
  bottom: 0;
  background: 
    linear-gradient(rgba(248, 249, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 249, 250, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 8px 8px 0 0;
}

.placeholder-ui-1 { background: linear-gradient(135deg, #1f2937, #111827); }
.placeholder-ui-2 { background: linear-gradient(135deg, #374151, #1f2937); }
.placeholder-ui-3 { background: linear-gradient(135deg, #4b5563, #374151); }

.project-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.6rem;
  color: var(--bg-0);
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-content p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 40px;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bg-0);
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s ease;
  margin-top: auto;
}

.project-link svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-link:hover svg {
  transform: translateX(6px);
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects {
    padding: 100px 0 60px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-content {
    padding: 32px 28px;
  }
}

/* Audience / Who We Build For */
.audience {
  padding: 140px 0 160px;
  background: radial-gradient(circle at 50% 50%, rgba(155, 81, 224, 0.08), transparent 50%),
              radial-gradient(rgba(248, 249, 250, 0.1) 1px, transparent 1px),
              #0f1318;
  background-size: 100% 100%, 40px 40px, 100% 100%;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  position: relative;
  z-index: 2; /* Layer above for reveal */
}

.audience-inner {
  width: var(--container);
  margin: 0 auto;
}

.audience-header {
  margin-bottom: 32px;
}

.audience-tagline {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--bg-0);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.44;
}

.audience-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 6vw, 4.4rem);
  color: var(--bg-0);
  margin: 0 0 24px;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.audience-header p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.25rem;
  line-height: 1.5;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.audience-card {
  background: rgba(248, 249, 250, 0.02);
  border: 1px solid rgba(248, 249, 250, 0.05);
  border-radius: 40px;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  opacity: 0.85;
  overflow: hidden; /* Ensure image and overlay are clipped */
  padding: 0; /* Removing top-level padding for image placement */
}

.audience-card-image {
  position: relative;
  width: 100%;
  height: 170px; /* Reduced from 220px */
  overflow: hidden;
}

.audience-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.4) grayscale(100%) contrast(1.1);
}

.audience-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f1318 5%, rgba(15, 19, 24, 0.5) 40%, transparent 100%);
}

.audience-card:hover .audience-card-image img {
  transform: scale(1.05);
  filter: brightness(0.5) grayscale(0) contrast(1.1);
}

.audience-card-highlighted {
  opacity: 1;
  background: rgba(248, 249, 250, 0.04);
  border-color: rgba(248, 249, 250, 0.12);
  transform: scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.audience-card:hover {
  opacity: 1;
  background: rgba(248, 249, 250, 0.03);
  border-color: rgba(248, 249, 250, 0.1);
  transform: translateY(-8px);
}

.audience-card-highlighted:hover {
  transform: translateY(-10px) scale(1.03);
}

.audience-card h3 {
  position: absolute;
  bottom: 20px; /* Slightly adjusted */
  left: 32px;
  right: 32px;
  font-family: "IBM Plex Serif", serif;
  font-size: 1.7rem; /* Reduced from 1.85rem */
  color: var(--bg-0);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
  z-index: 2;
}

.audience-card-content {
  padding: 24px 32px 36px; /* Compacted from 32px 36px 48px */
}

.audience-card p {
  color: rgba(248, 249, 250, 0.54);
  font-size: 1rem; /* Slightly smaller for density */
  line-height: 1.5;
  margin: 0 0 24px;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reduced from 14px */
}

.audience-list li {
  color: rgba(248, 249, 250, 0.9);
  font-size: 0.94rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.audience-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--bg-0);
  border-radius: 50%;
  opacity: 0.8;
}

@media (max-width: 980px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-card {
    padding: 32px;
  }
}

/* About Us Section */
/* About Us Section - Full Width Redesign */
.about {
  padding: 160px 0;
  background: #0a0d12;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(66, 133, 244, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(155, 81, 224, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.about-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-content {
  flex: 1;
  text-align: left;
  z-index: 2;
}

.about-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}



.about-tagline {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399; /* Soft Emerald Accent */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.about-content h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--bg-0);
  margin: 0 0 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.about-content p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 48px;
  max-width: 580px;
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  border-top: 1px solid rgba(248, 249, 250, 0.08);
  padding-top: 48px;
  max-width: 500px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.metric strong {
  font-family: "IBM Plex Serif", serif;
  font-size: 2.5rem;
  color: var(--bg-0);
  line-height: 1;
}

.metric span {
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.about-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--bg-0);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.8;
  text-decoration: none;
}

.about-cta-link svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-cta-link:hover {
  opacity: 1;
  gap: 16px;
}

.about-cta-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .about-content {
    padding: 56px 32px;
    border-radius: 32px;
  }
  .about-metrics {
    flex-direction: column;
    gap: 32px;
  }
}

/* Contact Section */
.contact {
  padding: 160px 0;
  background: 
    radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.08), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(155, 81, 224, 0.05), transparent 45%),
    #0f1318;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
}

.contact-inner {
  width: var(--container);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-header {
  margin-bottom: 56px;
  max-width: 500px;
}

.contact-tagline {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fb923c; /* Soft Orange Accent */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.contact-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  color: var(--bg-0);
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.contact-header p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.14rem;
  line-height: 1.6;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.08);
  color: var(--bg-0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-method > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-method strong {
  color: var(--bg-0);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-method a,
.contact-method span {
  color: rgba(248, 249, 250, 0.54);
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.contact-method a:hover {
  color: var(--bg-0);
}

.contact-form {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 
    0 40px 100px rgba(5, 8, 12, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.contact-form::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: rgba(155, 81, 224, 0.15);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  color: rgba(248, 249, 250, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(10, 13, 18, 0.5);
  border: 1px solid rgba(248, 249, 250, 0.12);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--bg-0);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(248, 249, 250, 0.3);
  background: rgba(15, 19, 24, 0.8);
  box-shadow: 0 0 0 4px rgba(248, 249, 250, 0.05);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: rgba(248, 249, 250, 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f8f9fa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right 20px top 50%, 0 0;
  background-size: 12px auto, 100%;
}

select option {
  background: #0f1318;
  color: var(--bg-0);
}

.submit-btn {
  margin-top: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px;
  font-size: 1.08rem;
  border-radius: 16px;
  cursor: pointer;
}

.submit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.submit-btn.is-loading svg {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.form-status {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s ease;
  min-height: 24px;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}

.form-trust-message {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248, 249, 250, 0.5);
  text-align: center;
  margin-top: 8px;
  background: rgba(248, 249, 250, 0.02);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(248, 249, 250, 0.05);
}

.form-trust-message strong {
  color: rgba(66, 133, 244, 0.9);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}


@media (max-width: 1100px) {
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .contact-header {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 100px 0;
  }
  
  .contact-form {
    padding: 32px 24px;
    border-radius: 28px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Final Bottom Block - Reveals on Scroll */
.bottom-reveal-block {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  background: #0f1318;
}

main {
  position: relative;
  z-index: 2;
  background: #0f1318;
}

/* Final CTA Section */
.cta-final {
  padding: 160px 0;
  background: #0f1318;
  text-align: center;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 2; /* Layer above footer for reveal */
}

/* Premium Site Footer */
.site-footer {
  padding: 60px 0 10px; /* Increased top padding to clear fixed nav during reveal */
  background: #090c10;
  border-top: 1px solid rgba(248, 249, 250, 0.03);
  color: rgba(248, 249, 250, 0.4);
  font-size: 0.94rem;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 80px;
  margin-bottom: 20px;
}

.footer-brand-col .brand {
  display: flex;
}

.footer-description {
  max-width: 32ch;
  line-height: 1.6;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-col h4 {
  color: var(--bg-0);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
}

.footer-nav-col a {
  display: block;
  margin-bottom: 12px;
  transition: color 180ms ease;
}

.footer-nav-col a:hover {
  color: var(--bg-0);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 249, 250, 0.03);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.05);
  border: 1px solid rgba(248, 249, 250, 0.08);
  color: rgba(248, 249, 250, 0.4);
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

.footer-socials a:hover {
  color: var(--bg-0);
  background: rgba(248, 249, 250, 0.1);
  border-color: rgba(248, 249, 250, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(248, 249, 250, 0.15), 0 0 40px rgba(248, 249, 250, 0.06);
}

/* Platform-specific glow colors */
.footer-socials a[aria-label="X (Twitter)"]:hover {
  box-shadow: 0 0 18px rgba(248, 249, 250, 0.2), 0 0 40px rgba(248, 249, 250, 0.08);
}

.footer-socials a[aria-label="Instagram"]:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.3);
  box-shadow: 0 0 18px rgba(225, 48, 108, 0.25), 0 0 40px rgba(225, 48, 108, 0.08);
}

.footer-socials a[aria-label="Facebook"]:hover {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.25), 0 0 40px rgba(24, 119, 242, 0.08);
}

.footer-socials a[aria-label="LinkedIn"]:hover {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.3);
  box-shadow: 0 0 18px rgba(10, 102, 194, 0.25), 0 0 40px rgba(10, 102, 194, 0.08);
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: -150px;
  background: 
    radial-gradient(at 15% 25%, rgba(66, 133, 244, 0.22) 0%, transparent 45%),
    radial-gradient(at 85% 75%, rgba(155, 81, 224, 0.2) 0%, transparent 45%),
    radial-gradient(at 50% 50%, rgba(248, 249, 250, 0.08) 0%, transparent 60%),
    radial-gradient(rgba(248, 249, 250, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px;
  opacity: 0;
  filter: blur(80px); /* Slightly reduced blur for more distinct texture */
  transform: scale(0.8);
  transition: opacity 2s ease, transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cta-final.reveal-visible::before {
  opacity: 1;
  transform: scale(1);
  animation: bg-mesh 15s infinite alternate ease-in-out;
}

@keyframes bg-mesh {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg) translate(20px, 10px); }
  100% { transform: scale(1) rotate(-5deg) translate(-20px, -10px); }
}

.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1600 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 110c71.6 0 71.6 112 143.2 112s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112S1145.6 222 1217.2 222s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112S1600 110 1600 110' fill='none' stroke='%23f8f9fa' stroke-width='1.5'/%3E%3Cpath d='M0 260c71.6 0 71.6 112 143.2 112s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112S1145.6 372 1217.2 372s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112S1600 260 1600 260' fill='none' stroke='%23f8f9fa' stroke-width='1.5'/%3E%3Cpath d='M0 410c71.6 0 71.6 112 143.2 112s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112S1145.6 522 1217.2 522s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112S1600 410 1600 410' fill='none' stroke='%23f8f9fa' stroke-width='1.5'/%3E%3Cpath d='M0 560c71.6 0 71.6 112 143.2 112s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112S1145.6 672 1217.2 672s71.6-112 143.2-112 71.6 112 143.2 112 71.6-112 143.2-112 71.6 112 143.2 112S1600 560 1600 560' fill='none' stroke='%23f8f9fa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 400px 200px;
  background-repeat: repeat;
  animation: bg-wave-drift 30s linear infinite;
  pointer-events: none;
}

@keyframes bg-wave-drift {
  from { background-position: 0 0; }
  to { background-position: 400px 200px; }
}

.cta-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-final h3 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  color: var(--bg-0);
  margin: 0 0 28px;
  letter-spacing: -0.05em;
  font-weight: 600;
  transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
}

.cta-final.reveal-visible h3 {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cta-final p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.25rem;
  margin: 0 auto 56px;
  max-width: 40ch;
  line-height: 1.5;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  transform: translateY(20px);
  opacity: 0;
}

.cta-final.reveal-visible p {
  transform: translateY(0);
  opacity: 1;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.cta-final.reveal-visible .cta-actions {
  opacity: 1;
  transform: translateY(0);
}

.cta-final .button-primary {
  min-height: 64px;
  padding: 0 48px;
  font-size: 1.1rem;
}

/* Mobile Adjustments for New Sections */
@media (max-width: 980px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .value-prop {
    padding: 80px 0;
  }
  
  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-item {
    padding: 32px;
  }

  .value-header {
    margin-bottom: 48px;
  }

  .cta-final {
    padding: 100px 0;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-final .button {
    width: 100%;
  }
}

/* Scroll Reveal General */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media,
  .hero-visual {
    transform: none !important;
  }
}

/* ==========================================================================
   3D CUBE METHODOLOGY EXPLORATION (EXPERIMENTAL)
   ========================================================================== */

.cube-section-wrapper {
  position: relative;
  background: #0f1318;
  z-index: 5;
  --cube-accent: #4285f4;
  --cube-muted: rgba(248, 249, 250, 0.4);
  --font-display: "IBM Plex Serif", serif;
  --font-mono: "DM Mono", monospace;
  overflow-x: clip; /* Prevent side-by-side layout shifting from causing scrollbars */
}

#cube-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Side-by-side shift for intro and alternating phases */
.cube-section-wrapper.is-at-top #cube-scene {
  transform: translateX(15vw);
}

.cube-section-wrapper.is-at-top #cs0 .cube-text-card {
  opacity: 1;
  transform: translateX(0);
}

#cube {
  --s: min(65vw, 65vh, 480px);
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: #0f1318;
  border: 1px solid rgba(248, 249, 250, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85; /* Blend with background */
  transition: opacity 0.5s ease;
}

.face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 19, 24, 0.8) 0%, transparent 40%),
              linear-gradient(to bottom, rgba(15, 19, 24, 0.4) 0%, transparent 30%);
  pointer-events: none;
}

.face-ph {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: rgba(248, 249, 250, 0.15);
  letter-spacing: 0.1em;
}

/* Face Rotations */
.face[data-face="front"]  { transform: translateZ(calc(var(--s) / 2)); }
.face[data-face="back"]   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.face[data-face="right"]  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.face[data-face="left"]   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.face[data-face="top"]    { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.face[data-face="bottom"] { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }

#cube-hud {
  position: fixed;
  top: 85px;
  right: 40px;
  z-index: 100;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cube-muted);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cube-section-wrapper.is-active #cube-hud {
  opacity: 1;
}

.cube-progress-bar {
  width: 100px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0 8px auto;
}

.cube-progress-fill {
  height: 100%;
  width: 0;
  background: var(--cube-accent);
}

.cube-scene-label {
  color: var(--cube-accent);
  letter-spacing: 0.2em;
}

#cube-scroll-container {
  position: relative;
  z-index: 2;
  margin-top: -100vh;
}

.cube-slide {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.cube-text-card {
  max-width: 440px;
  padding: 40px;
  background: rgba(15, 19, 24, 0.95);
  border-left: 1px solid var(--cube-accent);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cube-text-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.cube-text-card.right {
  margin-left: auto;
  border-left: none;
  border-right: 1px solid var(--cube-accent);
  transform: translateX(30px);
}

.cube-text-card.right.visible {
  transform: translateX(0);
}

.cube-tag {
  color: var(--cube-accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cube-text-card h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
}

.cube-body-text {
  color: rgba(248, 249, 250, 0.6);
  line-height: 1.6;
  font-size: 1.1rem;
}

.cube-h-line {
  width: 60px;
  height: 1px;
  background: var(--cube-accent);
  margin-bottom: 20px;
}

.cube-text-card.right .cube-h-line {
  margin-left: auto;
}

.cube-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--cube-accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cube-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.cube-cta:hover svg {
  transform: translateX(5px);
}


/* Ready Products Section */
.ready-products {
  padding: 160px 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(66, 133, 244, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(155, 81, 224, 0.05), transparent 40%),
    #0f1318;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  position: relative;
  overflow: hidden;
}

.ready-products-inner {
  width: var(--container);
  margin: 0 auto;
}

.ready-products-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 80px;
}

.ready-products.value-tagline {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a78bfa; /* Soft Purple Accent */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.9;
}

.ready-products-header h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(3rem, 5.5vw, 4.4rem);
  color: var(--bg-0);
  margin: 0 0 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.ready-products-header p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 1.25rem;
  line-height: 1.6;
}

.ready-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(248, 249, 250, 0.02);
  border: 1px solid rgba(248, 249, 250, 0.05);
  border-radius: 40px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.product-card-featured {
    background: rgba(248, 249, 250, 0.04);
    border-color: rgba(248, 249, 250, 0.12);
    transform: scale(1.02);
    z-index: 5;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  transform: translateY(-12px);
  background: rgba(248, 249, 250, 0.05);
  border-color: rgba(248, 249, 250, 0.15);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
}

.product-card-top {
  position: relative;
  height: 220px;
  background: #151a21;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-type-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 14px;
    background: rgba(248, 249, 250, 0.1);
    border: 1px solid rgba(248, 249, 250, 0.2);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(248, 249, 250, 0.8);
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 14px;
    background: #fff;
    color: #000;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-mockup {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.product-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: saturate(1.2);
}

.product-card:hover .product-mockup {
    transform: scale(1.05);
}

.product-card-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.7rem;
  color: #fff;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-desc {
  color: rgba(248, 249, 250, 0.5);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 32px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.spec {
  background: rgba(248, 249, 250, 0.04);
  padding: 14px 10px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(248, 249, 250, 0.05);
}

.spec strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.spec span {
  display: block;
  font-size: 0.7rem;
  color: rgba(248, 249, 250, 0.4);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 12px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(248, 249, 250, 0.8);
  font-weight: 500;
}

.product-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  opacity: 0.6;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 249, 250, 0.08);
}

.product-pricing {
    display: flex;
    flex-direction: column;
}

.product-pricing .currency {
    font-size: 0.9rem;
    color: rgba(248, 249, 250, 0.4);
    font-weight: 800;
}

.product-pricing .price {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.product-pricing .period {
    font-size: 0.7rem;
    color: rgba(248, 249, 250, 0.4);
    text-transform: uppercase;
    font-weight: 700;
}

.buy-button {
  flex-shrink: 0;
  padding: 14px 28px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.buy-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

@media (max-width: 980px) {
  .ready-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card-featured {
      transform: none;
  }
}

@media (max-width: 640px) {
  .ready-products-grid {
    grid-template-columns: 1fr;
  }
  .product-card-body {
      padding: 32px 28px;
  }
}

/* Section A: Stack Marquee */
.tech-stack-marquee {
  width: 100%;
  overflow: hidden;
  background: #0f1318;
  padding: 40px 0;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 80px;
  animation: marquee 60s linear infinite;
}

.marquee-track span {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(248, 249, 250, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.marquee-track span:hover {
  color: var(--bg-0);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section C: Founder Note (Integrated Footer Introduction) */
.founder-note {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}

.founder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-text {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  width: 100%;
}

.founder-text p {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--bg-0);
  margin: 0;
  flex: 1;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(248, 249, 250, 0.08);
}

.founder-text p::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: 32px;
  font-size: 5rem;
  font-family: "IBM Plex Serif", serif;
  color: rgba(248, 249, 250, 0.06);
  line-height: 1;
  pointer-events: none;
}

.founder-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  flex-shrink: 0;
}

.founder-profile-img {
  width: clamp(200px, 20vw, 370px);
  height: clamp(200px, 20vw, 350px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(248, 249, 250, 0.08);
  background: rgba(248, 249, 250, 0.03);
  flex-shrink: 0;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(248, 249, 250, 0.04);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-profile-img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(248, 249, 250, 0.06);
}

.founder-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.founder-meta-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(
    to top,
    rgba(10, 11, 16, 0.95) 0%,
    rgba(10, 11, 16, 0.7) 60%,
    transparent 100%
  );
  border-radius: 0 0 16px 16px;
}

.founder-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-0);
  letter-spacing: -0.01em;
}

.founder-role {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(248, 249, 250, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (max-width: 768px) {
  .founder-note {
    padding: 0 24px;
    margin: 0 auto 60px;
  }
  .founder-text {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .founder-text p {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid rgba(248, 249, 250, 0.08);
    padding-top: 28px;
  }
  .founder-text p::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .founder-profile-img {
    width: 220px;
    height: 280px;
  }
}

/* ==========================================================================
   AUTH PAGE (LOGIN & PORTAL)
   ========================================================================== */

.auth-page {
  background: #0f1318;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.auth-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.auth-card-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px 48px;
  border-radius: 36px;
  box-shadow: 
    0 40px 100px rgba(5, 8, 12, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.auth-brand {
  margin: 0 auto 40px;
  display: inline-block;
  font-size: 1.5rem;
}

.auth-title {
  font-family: "IBM Plex Serif", serif;
  font-size: 2.2rem;
  color: var(--bg-0);
  margin: 0 0 8px;
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: rgba(248, 249, 250, 0.5);
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-submit {
  margin-top: 16px;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.auth-links a {
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-links a:hover {
  color: var(--bg-0);
}

.auth-divider {
  color: rgba(248, 249, 250, 0.2);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .auth-card-inner {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   PORTAL LAYOUT (CLIENT & ADMIN)
   ========================================================================== */

.portal-layout {
  display: flex;
  min-height: 100vh;
  background: #090c10;
  color: var(--bg-0);
}

.portal-sidebar {
  width: 280px;
  border-right: 1px solid rgba(248, 249, 250, 0.05);
  background: #0f1318;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
}

.portal-main {
  flex: 1;
  padding: 60px 80px;
  overflow-y: auto;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.portal-nav a {
  color: rgba(248, 249, 250, 0.5);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-nav a:hover, .portal-nav a.active {
  background: rgba(248, 249, 250, 0.04);
  color: var(--bg-0);
}

.portal-user {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 249, 250, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4285f4;
}

.portal-user-info {
  display: flex;
  flex-direction: column;
}

.portal-user-info strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.portal-user-info span {
  font-size: 0.8rem;
  color: rgba(248, 249, 250, 0.4);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
}

.portal-header h1 {
  font-family: "IBM Plex Serif", serif;
  font-size: 2.8rem;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portal-header p {
  color: rgba(248, 249, 250, 0.5);
  margin: 0;
  font-size: 1.1rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.portal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(248, 249, 250, 0.05);
  border-radius: 32px;
  padding: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.portal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.portal-card h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

/* Project Status Tracker */
.status-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 40px;
}

.status-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.status-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(248, 249, 250, 0.08);
  z-index: 1;
}

.status-step:last-child::after {
  display: none;
}

.status-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #090c10;
  border: 2px solid rgba(248, 249, 250, 0.2);
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.status-step.completed .status-dot {
  border-color: #10b981;
  background: #10b981;
}

.status-step.completed::after {
  background: #10b981;
  opacity: 0.5;
}

.status-step.active .status-dot {
  border-color: #4285f4;
  background: #4285f4;
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
}

.status-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 249, 250, 0.3);
}

.status-step.active .status-label {
  color: var(--bg-0);
}

.status-step.completed .status-label {
  color: rgba(248, 249, 250, 0.6);
}

/* Payments List */
.payment-list {
  display: flex;
  flex-direction: column;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
}

.payment-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payment-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.payment-info span {
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.4);
  font-family: "DM Mono", monospace;
}

.payment-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.payment-amount {
  font-weight: 700;
  font-size: 1.1rem;
}

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-paid {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-action {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.badge-action:hover {
  background: rgba(66, 133, 244, 0.2);
  color: #fff;
}

@media (max-width: 980px) {
  .portal-layout {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
    height: auto;
    padding: 24px;
    border-right: none;
    border-bottom: 1px solid rgba(248, 249, 250, 0.05);
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-main {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   MODALS (SUCCESS & ACCOUNT CREATION)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.94);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 580px;
  padding: 24px;
  margin: 0 auto; /* Ensure centering in block-level overlays */
  transform: translateY(40px) scale(0.96);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-inner {
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
              rgba(17, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  padding: 80px 56px 64px;
  text-align: center;
  box-shadow: 
    0 40px 120px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.modal-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(248, 249, 250, 0.06);
  color: rgba(248, 249, 250, 0.5);
  border: 1px solid rgba(248, 249, 250, 0.1);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 32px;
}

.modal-inner h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: 3rem;
  margin: 0 0 20px;
  color: var(--bg-0);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.modal-inner p {
  color: rgba(248, 249, 250, 0.48);
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 48px;
  text-wrap: balance;
}

.modal-action-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-action-box .security-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal-action-box .security-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: rgba(248, 249, 250, 0.4);
}

.modal-action-box .security-text {
  text-align: center;
}

.modal-action-box h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-0);
}

.modal-action-box p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(248, 249, 250, 0.4);
  line-height: 1.5;
}

.modal-action-box strong {
  color: var(--bg-0);
  font-weight: 600;
}

.modal-close-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(248, 249, 250, 0.6) !important;
  box-shadow: none !important;
  min-height: 52px !important;
  width: fit-content !important;
  padding: 0 32px !important;
  margin: 0 auto !important;
  transition: all 0.3s ease !important;
}

.modal-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--bg-0) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 640px) {
  .modal-inner {
    padding: 48px 24px;
    border-radius: 36px;
  }
  .modal-inner h2 {
    font-size: 2rem;
  }
}
/* ==========================================================================
   SPA: USER PROFILE & DASHBOARD
   ========================================================================== */

.user-profile-nav {
  position: relative;
}

.user-trigger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 4px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 240px;
  background: rgba(13, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.user-profile-nav:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.dropdown-header strong {
  display: block;
  font-size: 14px;
  color: white;
}

.dropdown-header span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.dropdown-links a, .logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.logout-btn {
  color: #ff4d4d;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
}

/* Portal Content Styles */
#dashboard-view {
  min-height: 100vh;
  background: #05080c; /* Solid brand dark background */
  position: relative;
  z-index: 10;
}

.portal-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(0, 112, 243, 0.1) 0%, transparent 60%);
}

.portal-hero h1 {
  font-family: "IBM Plex Serif", serif;
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: white;
}

.portal-grid {
  max-width: 1200px;
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding: 0 24px;
}

.portal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.active-project {
  grid-column: span 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.card-header h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* Dashboard V2 Premium Styles */
.portal-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 112, 243, 0.1);
    color: #0070f3;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.project-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-0);
}

.project-title-group h2 {
    font-size: 1.5rem;
    margin-top: 4px;
}

/* Tracker V2 */
.tracker-v2 {
    margin: 48px 0;
    position: relative;
}

.tracker-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: #1a1f2e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.step span {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
}

.step.completed .step-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.step.active .step-dot {
    background: #0070f3;
    border-color: #0070f3;
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
    transform: scale(1.2);
}

.step.active span {
    color: white;
}

.tracker-line-v2 {
    position: absolute;
    top: 5px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.line-fill {
    height: 100%;
    background: #10b981;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Metadata Grid */
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.meta-item strong {
    font-size: 0.95rem;
    color: white;
}

/* Financial Flow */
.financial-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flow-label span:first-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.badge-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge-tag.paid { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.badge-tag.confirmed { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.flow-amount {
    font-family: "IBM Plex Serif", serif;
    font-weight: 500;
    color: white;
}

.flow-item.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-item.total .flow-amount {
    font-size: 1.25rem;
    color: #0070f3;
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
}

.activity-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 4px;
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
}

.activity-marker {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-marker.ripple {
    background: #0070f3;
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.1);
}

.activity-date {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.activity-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.pay-btn-v2 {
    width: 100%;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
}


@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

/* Side-by-Side Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-select {
    width: 80px;
    height: 54px; /* Matches standard input height */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: 12px;
    padding: 0 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.country-select:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
}


/* Security Notice Box */
.security-notice-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: left;
}

.security-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 20px;
}

.security-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 112, 243, 0.1);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0070f3;
    flex-shrink: 0;
}

.security-text h4 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: white;
}
.security-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

#sent-email-label {
    color: #0070f3;
}


select#country_code {
    width: fit-content;
    min-width: 85px;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-left: 14px;
    padding-right: 28px; /* Buffer for hidden icon space */
    background-image: none !important; /* Forces arrow removal */
    background-color: rgba(255, 255, 255, 0.03);
    text-align: left;
}

.portal-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ADMIN MODALS (In-Site, No Browser Popups)
   ========================================================================== */

.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-container {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  transform: translateY(30px) scale(0.96);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-overlay.is-active .admin-modal-container {
  transform: translateY(0) scale(1);
}

.admin-modal-inner {
  background: rgba(17, 20, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 48px 40px 40px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(248, 249, 250, 0.3);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.admin-modal-close:hover {
  color: var(--bg-0);
}

.admin-modal-inner h3 {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bg-0);
  margin: 0 0 8px;
}

.admin-modal-desc {
  color: rgba(248, 249, 250, 0.4);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 32px;
}

.admin-modal-field {
  margin-bottom: 20px;
}

.admin-modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(248, 249, 250, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.admin-modal-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--bg-0);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.admin-modal-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.admin-modal-field input::placeholder {
  color: rgba(248, 249, 250, 0.2);
}

.admin-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.admin-modal-actions .button {
  flex: 1;
  justify-content: center;
  min-height: 48px;
}

.admin-modal-cancel {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(248, 249, 250, 0.5) !important;
  box-shadow: none !important;
}

.admin-modal-cancel:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: var(--bg-0) !important;
}

.admin-modal-result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  margin-top: 8px;
}

.admin-modal-result-card .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.admin-modal-result-card .result-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-modal-result-card .result-label {
  font-size: 0.8rem;
  color: rgba(248, 249, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-modal-result-card .result-value {
  font-size: 0.95rem;
  color: var(--bg-0);
  font-weight: 500;
  font-family: monospace;
}

.admin-modal-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.admin-modal-error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

@media (max-width: 640px) {
  .admin-modal-inner {
    padding: 36px 24px 28px;
    border-radius: 24px;
  }
  .admin-modal-inner h3 {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   LEADS TOOLBAR, PAGINATION & GROUPED VIEW
   ========================================================================== */

.leads-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leads-toolbar-left {
  display: flex;
  gap: 4px;
}

.leads-toolbar-right {
  display: flex;
  gap: 4px;
}

.leads-sort-btn {
  background: none;
  border: 1px solid transparent;
  color: rgba(248, 249, 250, 0.35);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.leads-sort-btn:hover {
  color: rgba(248, 249, 250, 0.6);
  background: rgba(255, 255, 255, 0.03);
}

.leads-sort-btn.is-active {
  color: var(--bg-0);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.leads-view-btn {
  background: none;
  border: 1px solid transparent;
  color: rgba(248, 249, 250, 0.25);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.leads-view-btn:hover {
  color: rgba(248, 249, 250, 0.5);
}

.leads-view-btn.is-active {
  color: var(--bg-0);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Grouped Lead Card */
.lead-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.lead-group:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.lead-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
  user-select: none;
}

.lead-group-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lead-group-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-group-info strong {
  font-size: 1rem;
  color: var(--bg-0);
}

.lead-group-info span {
  font-size: 0.82rem;
  color: rgba(248, 249, 250, 0.35);
}

.lead-group-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-group-count {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(248, 249, 250, 0.3);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

.lead-group-chevron {
  color: rgba(248, 249, 250, 0.25);
  transition: transform 0.3s ease;
  display: flex;
}

.lead-group.is-open .lead-group-chevron {
  transform: rotate(180deg);
}

.lead-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-group.is-open .lead-group-body {
  max-height: 2000px;
}

.lead-group-body .payment-row {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px 24px;
}

.lead-group-body .payment-row:last-child {
  border-bottom: none;
}

/* Pagination */
.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.leads-pagination button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 249, 250, 0.4);
  font-size: 0.82rem;
  font-weight: 500;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leads-pagination button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--bg-0);
  border-color: rgba(255, 255, 255, 0.15);
}

.leads-pagination button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-0);
  border-color: rgba(255, 255, 255, 0.2);
}

.leads-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}

.leads-pagination .page-info {
  font-size: 0.78rem;
  color: rgba(248, 249, 250, 0.3);
  padding: 0 8px;
}

@media (max-width: 640px) {
  .leads-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .lead-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lead-group-right {
    width: 100%;
    justify-content: space-between;
  }
}
/* --- Contact Modal --- */
.contact-modal-container {
  max-width: 700px;
  width: 90%;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0d12;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact-modal-container .modal-inner {
  padding: 48px;
  position: relative;
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 2.5rem;
  margin-top: 12px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-header p {
  color: rgba(248, 249, 250, 0.4);
  font-size: 1rem;
  max-width: 450px;
  margin: 0 auto;
}

.modal-close-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  border: none;
}

.modal-close-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.modal-form {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}

.modal-form .form-group label {
  color: rgba(248, 249, 250, 0.5);
}

.modal-form input, 
.modal-form select, 
.modal-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .contact-modal-container .modal-inner {
    padding: 32px 20px;
  }
  .modal-header h2 {
    font-size: 1.8rem;
  }
}

/* --- Contact Modal Improvements --- */
.contact-modal-container {
  max-width: 1400px !important; /* Full site width */
  width: 95% !important;
  height: auto;
  max-height: 90vh; /* Don't exceed screen height */
  display: flex;
  flex-direction: column;
}

.contact-modal-container .modal-inner {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 0 !important; /* Move padding to header/body */
  overflow: hidden;
}

.modal-header {
  padding: 48px 48px 24px;
  margin-bottom: 0 !important;
  background: #0a0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 5;
}

.modal-form-body {
  padding: 40px 48px 48px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* 2-column Grid for the wide form */
.modal-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.modal-form .span-full {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .modal-form .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.modal-form textarea {
  min-height: 120px;
}

/* --- Modal Below Header Fix --- */
.site-header {
  z-index: 10002 !important; /* Ensure header is above everything */
}

.modal-overlay {
  top: 88px !important; /* Start modal below the fixed header */
  height: calc(100vh - 88px) !important;
  z-index: 10001 !important;
  align-items: flex-start !important; /* Align to top instead of center */
  padding-top: 40px;
}

.contact-modal-container {
  height: auto !important;
  max-height: calc(100vh - 160px) !important; /* Ensure it fits between header and footer */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-form-body {
  overflow-y: auto !important;
  /* Ensure scroll works with Lenis */
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* --- Fix Phone Input Styling --- */
.phone-input-group {
    display: flex;
    gap: 0 !important; /* Remove gap for seamless look */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.country-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0 16px !important;
    width: 80px !important;
    height: 52px !important;
}

#modal-phone {
    flex: 1;
    background: transparent !important;
    border: none !important;
    height: 52px !important;
    padding: 0 16px !important;
}

/* --- Force Modal Scroll Fix --- */
.modal-form-body {
  max-height: 100% !important;
  overflow-y: auto !important;
  display: block !important;
  -ms-overflow-style: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}

.modal-form-body::-webkit-scrollbar {
  width: 6px;
}

.modal-form-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* --- Modal Clean Up & Scroll Fix --- */
.contact-modal-container {
    max-height: calc(100vh - 120px) !important;
    overflow: visible !important; /* Open the path for scroll */
}

.contact-modal-container .modal-inner {
    max-height: 100%;
    overflow: hidden; /* Only inner hides overflow for corners */
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 24px 40px !important; /* Shrink padding */
    text-align: left !important; /* Move to left for sleeker look */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-text {
  flex: 1;
}

.modal-header h2 {
    font-size: 1.8rem !important; /* Shrink font */
    margin: 4px 0 !important;
}

.modal-header p {
    font-size: 0.85rem !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.modal-header .modal-badge {
  margin-bottom: 0 !important;
  margin-right: 12px;
}

.modal-form-body {
    padding: 32px 40px !important; /* More compact body */
}

/* --- The Unbreakable Modal Scroll Pattern --- */
.modal-overlay {
    position: fixed !important;
    top: 88px !important; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 88px) !important;
    background: linear-gradient(
0deg, #ebd399, #4c3312);
    z-index: 10001 !important;
    
    /* Crucial: Make the whole background scrollable */
    overflow-y: auto !important;
    padding: 0 !important;
    display: block !important; /* Switch from flex to block */
}

.contact-modal-container {
    max-width: 1200px !important;
    width: 95% !important;
    margin: 0 auto !important; /* Centered horizontally */
    background: #0a0d12;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    max-height: none !important; /* Allow natural height */
    overflow: visible !important;
}

.modal-inner {
    overflow: visible !important;
}

.modal-header {
    background: #0a0d12;
    padding: 20px 32px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem !important; /* Even smaller */
}

/* Modal Form Styles */
.modal-form-body {
    padding: 32px !important;
    overflow: visible !important; /* No more internal scroll conflict */
}

.modal-close-icon {
    top: 15px !important;
    right: 15px !important;
}

/* --- FINAL SCROLL OVERRIDE --- */
#contact-modal {
  display: block !important;
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

body.modal-open {
  overflow: hidden !important;
}

.contact-modal-container {
  overflow: visible !important;
}

/* --- Force consistent input/select heights for 2-column rows --- */
.modal-form select, 
.modal-form input, 
.modal-form .phone-input-group {
    height: 54px !important;
}

.modal-form textarea {
    height: auto !important;
    min-height: 120px !important;
}

/* --- Seamless Modal Transition --- */
.modal-overlay {
    top: 87px !important; /* Adjusted by 1px to close the hairline gap */
    height: calc(100vh - 87px) !important;
}

/* --- Projects Horizontal Slider --- */
.projects-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.projects-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 0 max(40px, calc((100vw - 1400px) / 2));
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.projects-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.projects-slider .project-card {
    flex: 0 0 450px;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-slider .project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

@media (max-width: 768px) {
    .projects-slider .project-card {
        flex: 0 0 85vw;
    }
    .projects-slider {
        padding: 0 10vw;
        gap: 20px;
    }
}

.project-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
}

/* --- Slider Navigation Styles --- */
.projects-header-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.slider-track-pill {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.slider-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e3ca8c, #ebd399);
    transition: width 0.3s ease;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 900px) {
    .projects-header-group {
        margin-bottom: 32px;
    }
}

/* --- Force Exactly 3 Cards & Centered Slider --- */
.projects-slider-container {
    width: 100% !important; /* Back to normal width */
    position: static !important;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
    overflow: hidden;
}

.projects-slider {
    display: flex;
    gap: 32px;
    padding: 10px 0 40px !important; /* Remove the extreme side padding */
    width: 100%;
}

.projects-slider .project-card {
    /* (100% - all gaps) divided by 3 cards */
    flex: 0 0 calc((100% - 64px) / 3) !important;
    min-width: 320px;
    scroll-snap-align: center;
}

@media (max-width: 1200px) {
    .projects-slider .project-card {
        flex: 0 0 calc((100% - 32px) / 2) !important; /* Show 2 cards */
    }
}

@media (max-width: 768px) {
    .projects-slider .project-card {
        flex: 0 0 100% !important; /* Show 1 card */
    }
}

/* --- Device Mockup Image Fixes --- */
.device-mobile .device-screen img {
    object-position: top center !important; /* Keep the logo/header visible */
    object-fit: cover !important; /* Ensure it fills the frame but starts from the top */
    width: 100% !important;
    height: 100% !important;
}

.device-tablet .device-screen img {
    object-position: center top !important;
    object-fit: cover !important;
}

/* Adjusting the mobile frame aspect ratio for better fit */
@media (max-width: 768px) {
    .device-mobile {
        max-width: 280px !important;
    }
}

/* --- Force Mockup Images to fill exactly --- */
.product-mockup .mockup-body:has(img) {
    padding: 0 !important; /* Remove internal padding if image exists */
}

.product-mockup .mockup-body img {
    object-position: top center !important;
    object-fit: fill !important; /* Ensure the WHOLE mobile screenshot fits in the frame */
    border-radius: inherit;
}

/* --- Desktop Slideshow Styling --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-img.active {
    opacity: 1;
}

.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slideshow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: var(--bg-0);
    width: 18px;
    border-radius: 3px;
}

/* --- Slideshow Overlap Fix --- */
.slideshow-container {
    background: #0d1117 !important; /* Ensure solid background */
}

.slide-img {
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.slide-img.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    z-index: 2; /* Bring active slide to front */
}

/* --- Desktop Mockup Full-Screen Engine --- */
.product-mockup.is-fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 95vw !important;
    height: 90vh !important;
    z-index: 10001 !important;
    border-radius: 20px !important;
    box-shadow: 0 0 100px rgba(0,0,0,0.8) !important;
}

/* Background overlay for full-screen */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, 0.97);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mockup-expand-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mockup-expand-btn:hover {
    color: var(--bg-0);
    background: rgba(255,255,255,0.05);
}

.fullscreen-close {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 10002;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

body.has-fullscreen .fullscreen-close {
    display: flex;
}

/* --- Dynamic Mobile Island Update --- */
.type-mobile .mockup-screen {
    border-radius: 28px;
    z-index: 1;
}

.type-mobile .mockup-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: rgb(41 45 47);
    z-index: 50; /* Above the image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px; /* Move text up slightly */
}

.type-mobile .mockup-view-name {
    font-size: 0.5rem !important;
    opacity: 0.6;
    letter-spacing: 0.2em;
    font-weight: 700;
}

/* --- Full-Screen solid body fix --- */
.is-fullscreen .mockup-header {
    background: #1a1f26 !important;
}

.is-fullscreen .mockup-screen {
    background: #0d1117 !important;
}

/* Mobile Responsive - About Us Full Width Section */
@media (max-width: 992px) {
  .about {
      padding: 100px 0;
  }
  
  .about-inner {
      flex-direction: column;
      text-align: center;
      gap: 60px;
  }
  
  .about-content {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  
  .about-content p {
      margin: 0 auto 32px;
  }
  
  .about-metrics {
      margin: 0 auto 48px;
  }
  
  .about-visual {
      width: 100%;
      height: 450px;
      margin-top: 20px;
  }
  
  .mockup-stack {
      height: 400px !important;
  }
  
  .mockup-item {
      width: 280px !important; /* Scale down for tablet/large mobile */
  }
}

@media (max-width: 576px) {
  .about {
      padding: 80px 0;
      border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .about-content h2 {
      font-size: 2.8rem;
  }
  
  .about-content p {
      font-size: 1.1rem;
      padding: 0 10px;
  }
  
  .about-visual {
      height: 350px;
  }
  
  .mockup-stack {
      height: 320px !important;
  }
  
  .mockup-item {
      width: 220px !important; /* Scale down for small mobile */
  }
  
  .mockup-item:nth-child(1) { top: 0; right: -20px; }
  .mockup-item:nth-child(2) { top: 60px; right: 10px; }
  .mockup-item:nth-child(3) { bottom: 40px; left: -10px; }
  .mockup-item:nth-child(4) { bottom: 0; right: 0; }
}

/* --- Aesthetic Page Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    background: #0a0d12;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), 
                visibility 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.loader-logo {
    position: relative;
    width: 80px;
    height: 80px;
    animation: loader-pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.loader-logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(227, 202, 140, 0.3) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 1;
    animation: loader-glow 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 200px;
}

.loader-brand {
    font-family: "IBM Plex Serif", serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--bg-0);
    opacity: 0;
    transform: translateY(10px);
    animation: loader-slide-up 0.8s cubic-bezier(0.2, 0, 0.2, 1) forwards 0.3s;
}

.loader-progress-track {
    width: 100%;
    height: 2px;
    background: rgba(248, 249, 250, 0.05);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    animation: loader-fade-in 0.5s ease forwards 0.6s;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e3ca8c, transparent);
    animation: loader-progress 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(248, 249, 250, 0.3);
    opacity: 0;
    animation: loader-fade-in 0.5s ease forwards 0.9s;
}

@keyframes loader-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loader-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes loader-slide-up {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loader-fade-in {
    to { opacity: 1; }
}

@keyframes loader-progress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 50%; transform: translateX(0); }
    100% { width: 100%; transform: translateX(100%); }
}

/* Page reveal effect when loaded */
body.is-loading {
    overflow: hidden;
}

body.is-loaded #main-content,
body.is-loaded .site-header {
    animation: page-reveal 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes page-reveal {
    from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ======================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions)
   ====================================================== */

.legal-page {
  padding-top: 0;
}

/* Hero */
.legal-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 60px) 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(248, 249, 250, 0.06), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(173, 181, 189, 0.05), transparent 40%),
    linear-gradient(170deg, #0f1318 0%, #181d23 50%, #1b2026 100%);
}

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

.legal-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  animation: legal-orb-float 12s ease-in-out infinite alternate;
}

.legal-orb-1 {
  top: 10%;
  left: 15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.08), transparent 70%);
}

.legal-orb-2 {
  bottom: 5%;
  right: 12%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(155, 81, 224, 0.06), transparent 70%);
  animation-delay: -6s;
}

@keyframes legal-orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.08); }
}

.legal-grid-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(248, 249, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 249, 250, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.6;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.legal-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 20px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.7);
  background: rgba(248, 249, 250, 0.06);
  border: 1px solid rgba(248, 249, 250, 0.1);
}

.legal-hero h1 {
  max-width: none;
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--bg-0);
  margin: 0 0 18px;
}

.legal-subtitle {
  color: rgba(248, 249, 250, 0.55);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(248, 249, 250, 0.35);
  font-size: 0.82rem;
}

.legal-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.25);
}

/* Content Layout */
.legal-content {
  padding: 60px 24px 100px;
  background: #0f1318;
}

.legal-content-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

/* Table of Contents — Sticky Sidebar */
.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  padding: 28px;
  border-radius: 20px;
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.07);
}

.legal-toc h3 {
  margin: 0 0 18px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 249, 250, 0.5);
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.legal-toc ol li {
  counter-increment: toc-counter;
}

.legal-toc ol li a {
  display: block;
  padding: 8px 0;
  color: rgba(248, 249, 250, 0.45);
  font-size: 0.84rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(248, 249, 250, 0.04);
  transition: color 180ms ease, padding-left 180ms ease;
}

.legal-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero) ". ";
  color: rgba(248, 249, 250, 0.2);
  font-weight: 600;
  font-size: 0.76rem;
}

.legal-toc ol li a:hover {
  color: var(--bg-0);
  padding-left: 6px;
}

.legal-toc ol li:last-child a {
  border-bottom: none;
}

/* Body Content */
.legal-body {
  max-width: 760px;
}

/* Intro Card */
.legal-intro-card {
  padding: 32px;
  margin-bottom: 48px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(66, 133, 244, 0.04), rgba(155, 81, 224, 0.03)),
    rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.legal-intro-card p {
  color: rgba(248, 249, 250, 0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.legal-intro-card p + p {
  margin-top: 14px;
}

.legal-intro-card strong {
  color: var(--bg-0);
}

/* Section Blocks */
.legal-section {
  position: relative;
  padding: 40px 0;
  border-bottom: 1px solid rgba(248, 249, 250, 0.05);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section-number {
  position: absolute;
  top: 40px;
  right: 0;
  font-family: "IBM Plex Serif", serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(248, 249, 250, 25%);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.legal-section h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bg-0);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  padding-right: 80px;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(248, 249, 250, 0.85);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.legal-section p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 14px;
}

.legal-section p a {
  color: rgba(248, 249, 250, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(248, 249, 250, 0.2);
  transition: text-decoration-color 180ms ease, color 180ms ease;
}

.legal-section p a:hover {
  color: var(--bg-0);
  text-decoration-color: rgba(248, 249, 250, 0.6);
}

.legal-section ul {
  padding: 0 0 0 20px;
  margin: 0 0 16px;
}

.legal-section ul li {
  color: rgba(248, 249, 250, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-section ul li::marker {
  color: rgba(248, 249, 250, 0.15);
}

.legal-section ul li strong {
  color: rgba(248, 249, 250, 0.8);
}

/* Callout Box */
.legal-callout {
  padding: 22px 26px;
  margin: 20px 0;
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.03);
  border-left: 3px solid rgba(248, 249, 250, 0.15);
  color: rgba(248, 249, 250, 0.55);
  font-size: 0.88rem;
  line-height: 1.7;
}

.legal-callout strong {
  color: rgba(248, 249, 250, 0.8);
  display: block;
  margin-bottom: 6px;
}

/* Contact Card */
.legal-contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  padding: 26px 30px;
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.03);
  border: 1px solid rgba(248, 249, 250, 0.07);
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(248, 249, 250, 0.5);
  font-size: 0.9rem;
}

.legal-contact-item svg {
  flex-shrink: 0;
  color: rgba(248, 249, 250, 0.3);
}

.legal-contact-item a {
  color: rgba(248, 249, 250, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(248, 249, 250, 0.15);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.legal-contact-item a:hover {
  color: var(--bg-0);
  text-decoration-color: rgba(248, 249, 250, 0.5);
}

/* Responsive: Tablet & Mobile */
@media (max-width: 900px) {
  .legal-content-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
  }

  .legal-section-number {
    font-size: 3rem;
  }

  .legal-section h2 {
    padding-right: 50px;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    min-height: 340px;
    padding: calc(var(--header-height) + 40px) 20px 40px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-subtitle {
    font-size: 0.95rem;
  }

  .legal-meta {
    flex-direction: column;
    gap: 6px;
  }

  .legal-meta-dot {
    display: none;
  }

  .legal-content {
    padding: 40px 16px 80px;
  }

  .legal-toc {
    padding: 20px;
  }

  .legal-section {
    padding: 30px 0;
  }

  .legal-section-number {
    font-size: 2.4rem;
    top: 30px;
  }

  .legal-section h2 {
    font-size: 1.3rem;
    padding-right: 40px;
  }

  .legal-intro-card {
    padding: 22px;
  }

  .legal-contact-card {
    padding: 20px;
  }
}

/* ==========================================================================
   BOOKING STRATEGY CALL MODAL (Heizen-Inspired Two-Track)
   ========================================================================== */

.booking-overlay {
  padding: 0;
  top: 0 !important;
  height: 100vh !important;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(4, 5, 8, 0.98);
  display: block !important;
}

.booking-modal-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-overlay.is-active .booking-modal-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button */
.booking-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.booking-close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
  transform: rotate(90deg);
}

/* ===== LEFT PANEL: BRANDING ===== */
.booking-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(102, 166, 230, 0.06) 0%, rgba(155, 81, 224, 0.04) 50%, transparent 100%),
    linear-gradient(180deg, #0e1117 0%, #141820 100%);
}

/* Decorative diagonal lines like Heizen's background */
.booking-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(248, 249, 250, 0.015),
      rgba(248, 249, 250, 0.015) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

.booking-left::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(14, 17, 23, 0.95), transparent);
  pointer-events: none;
}

.booking-brand {
  position: relative;
  z-index: 2;
}

.booking-brand .brand {
  font-size: 1.1rem;
}

.booking-brand .brand img {
  height: 38px;
}

.booking-left-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.booking-left-content h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg-0);
  margin: 0 0 24px;
  max-width: 18ch;
}

.booking-left-content h2 em {
  font-style: italic;
  color: #8ec8f6;
}

.booking-left-content > p {
  font-size: 0.98rem;
  color: rgba(248, 249, 250, 0.55);
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 0 40px;
}

/* Trust Section */
.booking-trust {
  margin-top: auto;
}

.booking-trust-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248, 249, 250, 0.35);
  margin-bottom: 18px;
}

.booking-trust-logos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.booking-trust-logos span {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(248, 249, 250, 0.08);
  border-radius: 8px;
  background: rgba(248, 249, 250, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(248, 249, 250, 0.45);
  letter-spacing: 0.02em;
}

/* Left Footer */
.booking-left-footer {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 249, 250, 0.06);
}

.booking-address strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(248, 249, 250, 0.5);
  margin-bottom: 4px;
}

.booking-address span {
  font-size: 0.8rem;
  color: rgba(248, 249, 250, 0.3);
}

/* ===== RIGHT PANEL: FORM ===== */
.booking-right {
  background: #fff;
  padding: 48px 52px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.booking-right::-webkit-scrollbar {
  width: 6px;
}

.booking-right::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.booking-form-header {
  margin-bottom: 32px;
}

.booking-form-header h3 {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #111418;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.booking-form-header p {
  font-size: 0.88rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Form Grid */
.booking-form {
  display: flex;
  flex-direction: column;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.booking-form-grid .span-full {
  grid-column: 1 / -1;
}

/* Field Styles */
.booking-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.booking-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #212529;
  letter-spacing: 0.01em;
}

.booking-field label .req {
  color: #e74c3c;
  font-weight: 700;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  color: #212529;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  outline: none;
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: #adb5bd;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: #212529;
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.06);
}

.booking-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23343a40%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px auto;
}

.booking-field select option {
  background: #fff;
  color: #212529;
}

.booking-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Phone Input Group in Booking (Light Theme) */
.booking-field .phone-input-group {
  display: flex;
  gap: 0;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s ease;
}

.booking-field .phone-input-group:focus-within {
  border-color: #212529;
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.06);
}

.booking-field .phone-input-group select {
  border: none;
  border-right: 1px solid #dee2e6;
  border-radius: 0;
  width: 80px;
  min-width: 80px;
  padding: 13px 8px 13px 14px;
  background-color: #f8f9fa;
  background-position: right 8px center;
  font-size: 0.85rem;
  box-shadow: none;
}

.booking-field .phone-input-group select:focus {
  box-shadow: none;
}

.booking-field .phone-input-group input {
  border: none;
  border-radius: 0;
  flex: 1;
  box-shadow: none;
}

.booking-field .phone-input-group input:focus {
  box-shadow: none;
}

/* Field Hints */
.booking-field-hint {
  font-size: 0.72rem;
  color: #adb5bd;
  margin-top: -2px;
  font-style: italic;
}

/* Character Counter */
.char-counter {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: #adb5bd;
  margin-top: -2px;
}

/* Submit Button */
.booking-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  margin-top: 28px;
  background: #111418;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.booking-submit-btn:hover {
  background: #2a2f36;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.booking-submit-btn:active {
  transform: translateY(0);
}

.booking-submit-btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

.booking-submit-btn.is-loading svg {
  animation: rotate 1s linear infinite;
}

/* Toggle Link */
.booking-toggle-link {
  text-align: center;
  font-size: 0.88rem;
  color: #6c757d;
  margin-top: 16px;
  padding-top: 0;
}

.booking-toggle-link a {
  color: #111418;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.booking-toggle-link a:hover {
  color: #4285f4;
}

/* Form View Transitions */
.booking-form-view {
  animation: bookingFadeIn 0.35s ease;
}

@keyframes bookingFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE: BOOKING MODAL ===== */

@media (max-width: 1100px) {
  .booking-right {
    padding: 40px 36px;
  }
  
  .booking-left {
    padding: 40px 40px;
  }
}

@media (max-width: 900px) {
  .booking-modal-container {
    display: block !important;
    height: 100%;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .booking-left {
    display: none;
  }

  .booking-right {
    padding: 60px 24px 80px;
    min-height: 100%;
    height: auto;
    width: 100%;
    background: #fff;
    overflow-y: visible;
  }

  .booking-close-btn {
    position: fixed !important;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
  }
}

@media (max-width: 600px) {
  .booking-right {
    padding: 60px 16px 60px;
  }

  .booking-form-header h3 {
    font-size: 1.25rem;
  }

  .booking-field label {
    font-size: 0.85rem;
  }

  .booking-submit-btn {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
}

/* --- Final UI Refinements: Centering & Full-Screen --- */
#success-modal {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 0 !important;
}

#booking-modal {
  top: 0 !important;
  height: 100vh !important;
  z-index: 20000 !important; /* Above everything */
}

@media (max-width: 900px) {
  #booking-modal {
    padding: 0 !important;
  }
}

/* Scheduler Styles */
.scheduler-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.1);
    border: 1px dashed rgba(0,0,0,0.05);
    border-radius: 12px;
}

