/* ==========================================================================
   Pixelstate - Stand Expo Real Estate Landing Page
   Exact Typography, Smooth Parallax & Brand Orange Click Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Local Font-Face Definitions (Pixelstate Typography)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Kanit';
  src: url('assets/fonts/Kanit-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('assets/fonts/Kanit-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('assets/fonts/Kanit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('assets/fonts/Kanit-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Variables & Theme
   -------------------------------------------------------------------------- */
:root {
  --pixel-blue: #0052FF;
  --pixel-blue-light: #3A7DFF;
  --pixel-blue-dark: #0038B8;
  --pixel-blue-glow: rgba(0, 82, 255, 0.35);

  --pixel-orange: #F27713;
  --pixel-orange-glow: rgba(242, 119, 19, 0.65);
  
  --cyan-accent: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.35);

  --dark-bg: #060913;
  --dark-surface: rgba(10, 17, 36, 0.75);
  --dark-border: rgba(255, 255, 255, 0.12);

  --text-white: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-dim: rgba(255, 255, 255, 0.45);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Kanit', 'Inter', sans-serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--dark-bg);
  font-family: var(--font-main);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Ambient Glow Effects
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(140px);
  opacity: 0.18;
  will-change: transform;
}

.ambient-glow.top-left {
  top: -12vw;
  left: -12vw;
  background: radial-gradient(circle, var(--pixel-blue) 0%, transparent 70%);
}

.ambient-glow.bottom-right {
  bottom: -12vw;
  right: -12vw;
  background: radial-gradient(circle, var(--cyan-accent) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Header Branding
   -------------------------------------------------------------------------- */
.main-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--dark-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              0 0 20px var(--pixel-blue-glow);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s ease;
}

.brand-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   Split Container Layout
   -------------------------------------------------------------------------- */
.split-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.split-option {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-white);
  padding: 4vw;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  will-change: flex, transform;
  transition: flex 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

/* Desktop Hover Smooth Flex Expansion */
@media (min-width: 900px) {
  .split-container:hover .split-option {
    flex: 0.82;
  }
  
  .split-container .split-option:hover {
    flex: 1.18;
  }
}

/* --------------------------------------------------------------------------
   Background Images & Overlays
   -------------------------------------------------------------------------- */
.bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  background-size: cover;
  background-position: center;
  will-change: transform, filter;
  transform: translate3d(calc(var(--move-x, 0) * 1px), calc(var(--move-y, 0) * 1px), 0) scale(1.02);
  transition: transform 1.2s var(--ease-smooth), filter 0.8s ease;
  filter: brightness(0.62) saturate(1.15);
  backface-visibility: hidden;
}

.bg-desarrolladoras {
  background-image: url('assets/desarrolladora-1.png');
}

.bg-agentes {
  background-image: url('assets/agente-2.png');
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 9, 19, 0.72) 0%,
    rgba(6, 9, 19, 0.52) 50%,
    rgba(6, 9, 19, 0.82) 100%
  );
  transition: opacity 0.8s ease;
}

.gradient-glow {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  transition: opacity 0.8s ease;
}

.left-option .gradient-glow {
  background: radial-gradient(circle at 30% 50%, var(--pixel-blue) 0%, transparent 65%);
}

.right-option .gradient-glow {
  background: radial-gradient(circle at 70% 50%, rgba(0, 160, 255, 0.6) 0%, transparent 65%);
}

/* Hover Background Movement */
.split-option:hover .bg-image {
  transform: translate3d(calc(var(--move-x, 0) * 1.6px), calc(var(--move-y, 0) * 1.6px), 0) scale(1.07);
  filter: brightness(0.75) saturate(1.25);
}

.split-option:hover .bg-overlay {
  opacity: 0.6;
}

.split-option:hover .gradient-glow {
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Option Content Styling (Pixelstate Kanit Typography)
   -------------------------------------------------------------------------- */
.option-content {
  position: relative;
  z-index: 10;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  will-change: transform;
  transform: translate3d(calc(var(--move-x, 0) * -0.4px), calc(var(--move-y, 0) * -0.4px), 0);
  transition: transform 0.8s var(--ease-smooth);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-white);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--pixel-blue);
  box-shadow: 0 0 10px var(--pixel-blue);
}

.tag-dot.cyan-dot {
  background-color: var(--cyan-accent);
  box-shadow: 0 0 10px var(--cyan-accent);
}

.option-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

.highlight {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--pixel-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-cyan {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.option-subtitle {
  font-family: var(--font-main);
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 480px;
}

/* --------------------------------------------------------------------------
   CTA Button with Pixelstate Orange Click State
   -------------------------------------------------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 30px;
  background: var(--pixel-blue);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 8px 24px var(--pixel-blue-glow),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.4s var(--ease-smooth);
}

.cta-button.cta-cyan {
  background: linear-gradient(135deg, #004BD6 0%, #0088FF 100%);
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-smooth);
}

.split-option:hover .cta-button {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px var(--pixel-blue-glow),
              0 0 20px rgba(255, 255, 255, 0.4);
  background: #1A66FF;
}

.split-option:hover .cta-cyan {
  background: linear-gradient(135deg, #0056F5 0%, #0099FF 100%);
}

.split-option:hover .arrow-icon {
  transform: translateX(6px);
}

/* Pixelstate Orange Click Active State */
.split-option:active .cta-button,
.split-option.clicked .cta-button,
.cta-button:active,
.cta-button.is-active {
  background: var(--pixel-orange) !important;
  box-shadow: 0 0 35px var(--pixel-orange-glow),
              0 8px 30px rgba(242, 119, 19, 0.7),
              0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
  transform: scale(0.96) translateY(1px) !important;
  color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   Divider Line
   -------------------------------------------------------------------------- */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 20%,
    rgba(255, 255, 255, 0.22) 80%,
    transparent 100%
  );
}

.divider-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  margin: 10px 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.main-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(6, 9, 19, 0.65);
  padding: 6px 18px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Responsiveness (< 900px)
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .split-container {
    flex-direction: column;
  }

  .split-option {
    padding: 85px 24px 38px 24px;
    align-items: flex-end;
  }

  .left-option {
    align-items: flex-end;
    padding-bottom: 42px;
  }

  .right-option {
    align-items: flex-start;
    padding-top: 52px;
  }

  .main-header {
    top: 16px;
  }

  .brand-badge {
    padding: 8px 20px;
  }

  .brand-logo {
    height: 22px;
  }

  .option-content {
    max-width: 100%;
    gap: 14px;
  }

  .option-title {
    font-size: clamp(1.5rem, 5.8vw, 2.1rem);
  }

  .option-subtitle {
    font-size: 0.92rem;
  }

  .cta-button {
    padding: 13px 24px;
    font-size: 0.9rem;
    margin-top: 4px;
  }

  .split-divider {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
    flex-direction: row;
  }

  .divider-line {
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.22) 20%,
      rgba(255, 255, 255, 0.22) 80%,
      transparent 100%
    );
  }

  .divider-badge {
    margin: 0 10px;
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .main-footer {
    bottom: 12px;
    font-size: 0.68rem;
  }
}
