/* ---------------------------------------------------------------------------
   Lex Matondo — Minimal Editorial Landing Page
   Monochrome Palette: #050505, #111111, #F2F2F0, #999999
   Typography: Inter
--------------------------------------------------------------------------- */

:root {
  --bg-primary: #050505;
  --bg-secondary: #111111;
  --text-primary: #f2f2f0;
  --text-muted: #999999;
  --border-subtle: rgba(242, 242, 240, 0.12);

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100%;
  width: 100%;
}

body.landing-body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #ffffff;
  color: #000000;
}

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

/* ---------------------------------------------------------------------------
   FULL VIEWPORT CONTAINER
--------------------------------------------------------------------------- */
.landing-container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   HEADER
--------------------------------------------------------------------------- */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
  background: var(--bg-primary);
}

.header-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header-desc {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------
   CENTER PROMPT BAR
--------------------------------------------------------------------------- */
.prompt-bar {
  position: absolute;
  top: 4.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 15;
  opacity: 0.85;
}

.prompt-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-subtle);
}

/* ---------------------------------------------------------------------------
   50/50 SPLIT HERO
--------------------------------------------------------------------------- */
.landing-split {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.split-side {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  cursor: pointer;
  background: var(--bg-primary);
  transition: flex-basis 550ms var(--ease-smooth), opacity 400ms ease;
  overflow: hidden;
  outline: none;
}

.split-side:focus-visible {
  box-shadow: inset 0 0 0 2px var(--text-primary);
}

/* 65% / 35% Desktop Hover Expansion */
.landing-split.hover-tech .side-tech {
  flex-basis: 65%;
  background: var(--bg-secondary);
}
.landing-split.hover-tech .side-create {
  flex-basis: 35%;
  opacity: 0.45;
}

.landing-split.hover-create .side-create {
  flex-basis: 65%;
  background: var(--bg-secondary);
}
.landing-split.hover-create .side-tech {
  flex-basis: 35%;
  opacity: 0.45;
}

/* Fullscreen Expansion Wipe on Click */
.landing-split.expand-tech .side-tech {
  flex-basis: 100% !important;
  opacity: 1 !important;
  z-index: 30;
}
.landing-split.expand-tech .side-create {
  flex-basis: 0% !important;
  opacity: 0 !important;
  padding: 0 !important;
}

.landing-split.expand-create .side-create {
  flex-basis: 100% !important;
  opacity: 1 !important;
  z-index: 30;
}
.landing-split.expand-create .side-tech {
  flex-basis: 0% !important;
  opacity: 0 !important;
  padding: 0 !important;
}

/* Vertical Line Divider */
.split-divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  transition: opacity 300ms ease;
}

.landing-split.hover-tech .split-divider,
.landing-split.hover-create .split-divider {
  opacity: 0;
}

/* ---------------------------------------------------------------------------
   REAL MEDIA REVEAL (SUBTLE GRAYSCALE HOVER BACKGROUND)
--------------------------------------------------------------------------- */
.side-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-quint);
  z-index: 1;
}

.side-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(110%) brightness(0.4);
  transform: scale(1.04);
  transition: transform 800ms var(--ease-out-quint);
}

.landing-split.hover-tech .side-tech .side-media,
.landing-split.hover-create .side-create .side-media {
  opacity: 0.16;
}

.landing-split.hover-tech .side-tech .side-media img,
.landing-split.hover-create .side-create .side-media img {
  transform: scale(1);
}

/* ---------------------------------------------------------------------------
   SIDE CONTENT & TYPOGRAPHY
--------------------------------------------------------------------------- */
.side-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  transform: translateY(0);
  transition: transform 450ms var(--ease-smooth);
}

.side-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.side-number {
  color: var(--text-primary);
}

.side-title {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
  margin: 0.25rem 0;
}

.side-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.4;
}

.side-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.landing-split.hover-tech .side-tech .side-enter,
.landing-split.hover-create .side-create .side-enter {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   FOOTER
--------------------------------------------------------------------------- */
.landing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  z-index: 20;
  background: var(--bg-primary);
}

/* ---------------------------------------------------------------------------
   RESPONSIVE / MOBILE (<= 768px)
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body.landing-body {
    overflow-y: auto;
  }

  .landing-container {
    height: auto;
    min-height: 100dvh;
  }

  .landing-header,
  .landing-footer {
    padding: 1.25rem 1.5rem;
  }

  .prompt-bar {
    position: static;
    border-bottom: 1px solid var(--border-subtle);
  }

  .prompt-text {
    border: none;
    padding: 0.75rem 1.5rem;
  }

  .landing-split {
    flex-direction: column;
    flex: none;
  }

  .split-side {
    flex: none;
    width: 100%;
    min-height: 40vh;
    padding: 3rem 1.5rem;
  }

  .side-tech {
    border-bottom: 1px solid var(--border-subtle);
  }

  .split-divider {
    display: none;
  }

  .side-media {
    opacity: 0.12 !important;
  }

  .side-enter {
    opacity: 1;
    transform: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .split-side,
  .side-media,
  .side-media img,
  .side-enter,
  .split-divider {
    transition: none !important;
  }
}
