/* Glassdoor landing page — restored from commit 9dba9eb (S239) */
/* CSP-compliant external CSS */

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

:root{
  --blue:   var(--color-accent-c);
  --green:  var(--color-accent-g);
  --bg:     var(--color-bg);
  --bg2:    var(--color-surface);
  --white:  var(--color-text);
  --dim:    var(--color-text-dim);
  --border: var(--color-border);
}
body{background:var(--color-bg);color:var(--color-text);}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   BACKDROP — index.html in iframe
   sits at z-index 0, fully behind glass
══════════════════════════════════════ */
#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  opacity: 1;
}

/* ══════════════════════════════════════
   GLASS DOOR
══════════════════════════════════════ */
#glass {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(8, 13, 20, 0.58);
  backdrop-filter: blur(14px) saturate(0.8) brightness(0.9);
  -webkit-backdrop-filter: blur(14px) saturate(0.8) brightness(0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity, backdrop-filter, transform;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.15, 1),
    backdrop-filter 1s cubic-bezier(0.4, 0, 0.15, 1),
    -webkit-backdrop-filter 1s cubic-bezier(0.4, 0, 0.15, 1),
    transform 1s cubic-bezier(0.4, 0, 0.15, 1);
}

/* Film grain overlay for depth */
#glass::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
  opacity: 0.028;
  z-index: 1;
  animation: grainShift 0.15s steps(1) infinite;
}

@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  25% { transform: translate(-10px, 5px); }
  50% { transform: translate(5px, -8px); }
  75% { transform: translate(-7px, -3px); }
}

/* Vignette */
#glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    transparent 40%,
    rgba(4, 8, 14, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Reveal state */
#glass.revealing {
  opacity: 0;
  backdrop-filter: blur(0px) saturate(1) brightness(1);
  -webkit-backdrop-filter: blur(0px) saturate(1) brightness(1);
  transform: scale(1.012);
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
#layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ══════════════════════════════════════
   CONTENT
══════════════════════════════════════ */
#content {
  flex: 0 0 460px;
  max-width: 460px;
}

.wordmark {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
  opacity: 0;
  animation: riseIn 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wordmark .e { color: var(--blue); }
.wordmark .c { color: var(--green); }
.wordmark .o { color: var(--white); }

.hero {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.45vw, 32px);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  opacity: 0;
  animation: riseIn 0.75s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-q {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--color-text-dim);
  line-height: 1.55;
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 0.75s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
  opacity: 0;
  animation: riseIn 0.75s 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 26px;
  opacity: 0;
  animation: riseIn 0.75s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#open-btn {
  background: var(--blue);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
#open-btn:hover {
  background: var(--color-accent-c);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,170,255,0.28);
}
#open-btn:active { transform: translateY(0); }

.learn-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--color-text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s;
}
.learn-link:hover {
  color: var(--color-text-mid,var(--color-text-dim));
  border-color: var(--color-text-dim);
}

/* ══════════════════════════════════════
   GLOBE
══════════════════════════════════════ */
#globe-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: fadeGlobe 1.4s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

canvas#gc {
  display: block;
  border-radius: 50%;
}

/* Arc labels */
.arc-label {
  position: absolute;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dim);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,0.8);
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════
   SCROLL HINT
══════════════════════════════════════ */
#hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.8s ease forwards;
}

#hint span {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hint-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  animation: hintBounce 2s ease infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.5; }
  50% { transform: scaleY(1.4) translateY(3px); opacity: 1; }
}

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeGlobe {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  #layout {
    flex-direction: column-reverse;
    padding: 24px 28px 40px;
    justify-content: flex-end;
    height: 100dvh;
    gap: 28px;
    align-items: flex-start;
  }

  #content {
    flex: none;
    max-width: 100%;
  }

  #globe-wrap {
    flex: none;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }

  .wordmark { margin-bottom: 24px; font-size: 17px; }
  .hero { font-size: clamp(20px, 6.5vw, 28px); margin-bottom: 12px; }
  .hero-q { font-size: 15px; margin-bottom: 20px; }
  .tagline { margin-bottom: 28px; }

  #hint { display: none; }
}

/* ── Wordmark — extracted from inline styles for CSP compliance (S239) ── */
.eco-wordmark-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eco-wordmark-logo {
  height: 52px;
  width: auto;
  display: block;
}

.eco-wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eco-wordmark-eco {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.eco-wordmark-eco .e { color: var(--color-accent-c); }
.eco-wordmark-eco .c { color: var(--color-accent-g); }
.eco-wordmark-eco .o { color: var(--color-text); }

.eco-wordmark-domain {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.eco-wordmark-domain .eternal { color: var(--color-accent-c); }
.eco-wordmark-domain .current { color: var(--color-accent-g); }
.eco-wordmark-domain .online { color: var(--color-text); }

/* S389 CSP burn-down */
.arc-label { color: rgba(0,170,255,0.92); }
.arc-label.arc-lbl--green { color: rgba(0,204,68,0.90); }
