/* =============================================
   Tech Pack Market — Landing Page CSS
   Scoped under body.is-landing
   ============================================= */

body.is-landing {
  --bg-dark: #0a0a0a;
  --bg-mid: #111111;
  --accent: #e8e0d0;
  --text-primary: #f0ede8;
  --text-muted: #666660;
  --text-secondary: #999990;
  --highlight: #c8b88a;
  --highlight-dim: rgba(200, 184, 138, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.6s ease;
}

body.is-landing *, body.is-landing *::before, body.is-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.is-landing a { text-decoration: none; color: inherit; }
body.is-landing ul { list-style: none; }

/* =============================================
   LOADER
   ============================================= */
body.is-landing #loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

body.is-landing .loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 260px;
}

body.is-landing .loader-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

body.is-landing .loader-bar-wrap {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

body.is-landing #loader-bar {
  height: 100%;
  width: 0%;
  background: var(--highlight);
  transition: width 0.15s ease;
}

body.is-landing #loader-percent {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* =============================================
   HEADER
   ============================================= */
body.is-landing .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 24px 48px;
}

body.is-landing .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.is-landing .nav-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
}

body.is-landing .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

body.is-landing .nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

body.is-landing .nav-links a:hover { color: var(--text-primary); }

body.is-landing .nav-cta {
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 2px;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease !important;
}

body.is-landing .nav-cta:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* =============================================
   HERO
   ============================================= */
body.is-landing .hero-standalone {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  overflow: hidden;
}

body.is-landing .hero-inner {
  text-align: center;
  max-width: 1100px;
  padding: 0 5vw;
  width: 100%;
}

body.is-landing .hero-standalone .section-label {
  display: block;
  margin-bottom: 28px;
  text-align: center;
}

body.is-landing .hero-heading {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 32px;
  overflow: hidden;
}

body.is-landing .hero-word {
  display: inline-block;
  margin-right: 0.15em;
  opacity: 0;
  transform: translateY(60px);
}

body.is-landing .hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.02em;
  opacity: 0;
}

body.is-landing .scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: landingScrollBob 2s ease-in-out infinite 2s;
}

body.is-landing .scroll-indicator svg {
  width: 16px;
  height: 16px;
  animation: landingArrowDrop 2s ease-in-out infinite 2s;
}

@keyframes landingScrollBob {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

@keyframes landingArrowDrop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* =============================================
   CANVAS — right half only
   ============================================= */
body.is-landing .canvas-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  right: 0;
  bottom: 0;
  z-index: 1;
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

body.is-landing #canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =============================================
   DARK OVERLAY
   ============================================= */
body.is-landing #dark-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* =============================================
   MARQUEE
   ============================================= */
body.is-landing .marquee-wrap {
  position: fixed;
  bottom: 12vh;
  left: 0;
  z-index: 6;
  width: 50%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  will-change: opacity;
}

body.is-landing .marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  -webkit-text-stroke: none;
  white-space: nowrap;
  will-change: transform;
}

/* =============================================
   SCROLL CONTAINER
   ============================================= */
body.is-landing #scroll-container {
  position: relative;
  height: 650vh;
  z-index: 5;
}

/* =============================================
   SCROLL SECTIONS
   ============================================= */
body.is-landing .scroll-section {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.9s ease;
}

body.is-landing .align-left {
  padding-left: 5vw;
  padding-right: 52vw;
  justify-content: flex-start;
}

body.is-landing .align-right {
  padding-left: 8vw;
  padding-right: 52vw;
  justify-content: flex-start;
}

body.is-landing .align-left .section-inner,
body.is-landing .align-right .section-inner {
  max-width: 42vw;
}

/* =============================================
   SECTION LABELS & TYPOGRAPHY
   ============================================= */
body.is-landing .section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--highlight);
  display: block;
  margin-bottom: 18px;
}

body.is-landing .section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 22px;
}

body.is-landing .section-body {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(240, 237, 232, 0.72);
  line-height: 1.75;
  max-width: 420px;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
body.is-landing .process-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.is-landing .step {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.is-landing .step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--highlight);
  min-width: 24px;
}

body.is-landing .step-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex: 1;
}

/* =============================================
   CTA SECTION
   ============================================= */
body.is-landing .section-cta {
  justify-content: flex-start;
  align-items: center;
  padding: 0 5vw;
  right: 50%;
  width: 50%;
}

body.is-landing .cta-inner {
  text-align: left;
  max-width: 100%;
}

body.is-landing .cta-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 20px;
}

body.is-landing .cta-body {
  max-width: 100%;
  margin-bottom: 40px;
  font-size: 1rem;
  color: rgba(240, 237, 232, 0.6);
}

body.is-landing .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--highlight);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease, gap 0.25s ease;
}

body.is-landing .cta-button:hover {
  background: var(--accent);
  gap: 16px;
}

body.is-landing .btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

body.is-landing .cta-button:hover .btn-arrow { transform: translateX(4px); }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
  body.is-landing .site-header { padding: 20px 24px; }
  body.is-landing .nav-links li:not(:last-child) { display: none; }
  body.is-landing .hero-heading { font-size: clamp(3rem, 13vw, 5rem); }

  body.is-landing .align-left,
  body.is-landing .align-right {
    padding: 0 6vw;
    justify-content: center;
    text-align: center;
  }

  body.is-landing .align-left .section-inner,
  body.is-landing .align-right .section-inner {
    max-width: 100%;
    background: rgba(10,10,10,0.82);
    backdrop-filter: blur(8px);
    padding: 32px 24px;
    border-radius: 4px;
  }

  body.is-landing .section-body { max-width: 100%; }
  body.is-landing #scroll-container { height: 550vh; }
  body.is-landing .marquee-text { font-size: 18vw; }
  body.is-landing .section-cta { padding: 0 6vw; }
  body.is-landing .cta-inner { max-width: 100%; }
}
