@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #7ec8e3;
  --accent-glow: rgba(126, 200, 227, 0.35);
  --bg: #050510;
  --text: #e0e6ed;
  --text-dim: #8899aa;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ─── Fixed canvas ─── */
#main-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ─── Hero logo PNG ─── */
#logo-img {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  transform-origin: center center;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-text {
  margin-top: 200px;
  text-align: center;
  pointer-events: auto;
}

.hero h1 {
  font-weight: 900;
  font-size: 3.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.hero .tagline {
  margin-top: 12px;
  font-weight: 300;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-hint .arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ─── Sections: alternating left / right ─── */
.content-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 100px 8%;
  z-index: 2;
}

/* Odd sections (1, 3): content on left */
.content-section.side-left .section-text {
  margin-right: auto;
}

/* Even sections (2, 4): content on right */
.content-section.side-right .section-text {
  margin-left: auto;
}

.section-inner {
  max-width: 520px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.section-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.6;
}

.section-inner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-inner p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.section-inner p strong, .bpmn-label p strong {
  color: var(--accent);
  font-weight: 600;
}

.section-text { flex: 1; max-width: 520px; }

/* ─── Thread anchor dot beside heading ─── */
.section-inner h2 {
  position: relative;
}

.thread-anchor {
  position: absolute;
  top: 50%;
  width: 1px; height: 1px;
  transform: translateY(-50%);
}

/* Anchor sits on the outer edge of the heading */
.side-left .thread-anchor { left: -30px; }
.side-right .thread-anchor { right: -30px; }

/* ─── BPMN interlude label ─── */
.bpmn-label {
  position: sticky;
  top: 85%;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}
.bpmn-label.visible {
  opacity: 1;
}

/* ─── CTA Button ─── */
.cta-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}
.cta-btn:hover {
  background: rgba(126, 200, 227, 0.12);
  box-shadow: 0 0 25px rgba(126, 200, 227, 0.25), 0 0 60px rgba(126, 200, 227, 0.1);
  transform: translateY(-1px);
}
.cta-btn:active {
  transform: translateY(0);
}
.cta-btn.cta-hero {
  font-size: 1.05rem;
  padding: 16px 44px;
  margin-top: 32px;
}
.cta-btn.cta-footer {
  margin-top: 20px;
  border-color: var(--text-dim);
  color: var(--text-dim);
}
.cta-btn.cta-footer:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ─── Language picker ─── */
.lang-picker {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 10;
  display: flex;
  gap: 6px;
}
.lang-picker button {
  background: rgba(126, 200, 227, 0.08);
  border: 1px solid rgba(126, 200, 227, 0.2);
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-picker button:hover {
  border-color: var(--accent);
  color: #fff;
}
.lang-picker button.active {
  background: rgba(126, 200, 227, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile: collapse into dropdown-style picker */
@media (max-width: 768px) {
  .lang-picker {
    flex-direction: column;
    gap: 0;
  }
  .lang-picker:not(.open) button:not(.active) {
    display: none;
  }
  .lang-picker.open button {
    display: block;
  }
  .lang-picker button.active {
    border-radius: 4px;
  }
  .lang-picker.open button.active {
    border-radius: 4px 4px 0 0;
  }
  .lang-picker.open button:not(.active) {
    border-radius: 0;
    border-top: none;
  }
  .lang-picker.open button:last-child {
    border-radius: 0 0 4px 4px;
  }
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* ─── Background grid ─── */
.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(126,200,227,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,200,227,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-text { margin-top: 160px; }
  .content-section { padding: 60px 6%; }
  .section-inner h2 { font-size: 1.6rem; }
  .side-left .thread-anchor,
  .side-right .thread-anchor { left: auto; right: auto; }
  .bpmn-label h2 { font-size: 1.2rem !important; }
  .bpmn-label p { font-size: 0.8rem !important; }
}
