/* ============================================================
   EASYNURSE — Landing Page Styles
   Dark Mode · Black Background · Premium Scroll-Driven
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --text: #ffffff;
  --text-muted: #5a5a5a;
  --text-dim: #333333;
  --accent: #3db527;
  --accent-dim: rgba(61, 181, 39, 0.12);
  --accent-glow: rgba(61, 181, 39, 0.35);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* === CONTENT PROTECTION === */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

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

html {
  background: var(--bg);
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: #0c0c0c;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.loader-brand span {
  color: var(--accent);
}

#loader-bar {
  width: 260px;
  height: 1px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

#loader-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.08s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   FIXED HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.8rem 4vw;
  mix-blend-mode: normal;
  transition: transform 0.4s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 5rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-active {
  color: #3db527 !important;
}

.nav-cta {
  color: #fff !important;
  background: #3db527;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  transition: background 0.3s, transform 0.2s !important;
}

.nav-cta:hover {
  background: #4ecf2e !important;
  transform: translateY(-1px);
}

/* ============================================================
   HERO STANDALONE
   ============================================================ */
.hero-standalone {
  position: relative;
  height: 100vh;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 90vw;
}

.hero-phone-col {
  position: absolute;
  right: -5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 55%;
  height: 90vh;
  z-index: 1;
}

.hero-phone-wrap {
  width: 100%;
  flex: 1;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 0;
}

.hero-phone-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

#phone3d-canvas-hero {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    height: auto;
    justify-content: center;
  }
  .hero-phone-col {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    height: 52vh;
    min-height: 320px;
    pointer-events: auto;
  }
  .hero-phone-buttons {
    display: none;
  }
  .hero-inner {
    max-width: 90vw;
  }
}

.hero-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 11vw, 13rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
}

.hero-heading .word {
  display: block;
  overflow: hidden;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  max-width: 360px;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  z-index: 2;
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-arrow {
  font-size: 1rem;
  color: var(--accent);
  animation: bounce 1.8s ease-in-out infinite;
}

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

/* ============================================================
   CANVAS WRAP (fixed, full viewport)
   ============================================================ */
.canvas-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: #0c0c0c;
  clip-path: circle(0% at 70% 50%);
  pointer-events: none;
  will-change: clip-path, opacity;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============================================================
   DARK OVERLAY (fixed)
   ============================================================ */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #0c0c0c;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ============================================================
   HORIZONTAL MARQUEE (fixed)
   ============================================================ */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  z-index: 3;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  will-change: transform;
  opacity: 0.20;
  line-height: 1;
}

/* ============================================================
   SCROLL CONTAINER
   ============================================================ */
#scroll-container {
  position: relative;
  height: 1000vh;
  width: 100%;
}

/* ============================================================
   SCROLL SECTIONS (absolutely positioned within scroll-container)
   ============================================================ */
.scroll-section {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  /* Text always left — padding-right leaves room for video on the right */
  padding-left: 5vw;
  padding-right: 62vw;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.section-inner {
  max-width: 36vw;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.section-body {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.75;
  color: #888;
  max-width: 320px;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.section-stats {
  padding-left: 5vw;
  padding-right: 55vw;
  align-items: center;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5.5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.section-cta {
  pointer-events: none;
}

.cta-button {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 1rem 2.8rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  pointer-events: all;
  box-shadow: 0 0 0 rgba(0,212,255,0);
}

.cta-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.cta-button-secondary {
  display: inline-block;
  margin-top: 1rem;
  margin-left: 1.2rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(61, 181, 39, 0.4);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  pointer-events: all;
}

.cta-button-secondary:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

/* Section tiefer positionieren (nur Section 1) */
.section-low {
  align-items: flex-end;
  padding-bottom: 14vh;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .scroll-section {
    padding-right: 50vw;
  }

  .section-inner {
    max-width: 45vw;
  }

  .stats-grid {
    gap: 2.5rem 3rem;
  }
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: clamp(4rem, 15vw, 7rem);
  }

  .hero-inner {
    max-width: 90vw;
  }

  .hero-tagline {
    max-width: 90%;
  }

  .scroll-section {
    padding-left: 5vw;
    padding-right: 5vw;
    align-items: flex-end;
    padding-bottom: 6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 60%, transparent);
  }

  .section-inner {
    max-width: 100%;
  }

  .section-stats {
    padding-right: 5vw;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .nav-links {
    display: none !important;
  }

  #scroll-container {
    height: 700vh;
  }
}

/* ============================================================
   APP + 3D PHONE MERGED SECTION
   ============================================================ */
#phone3d-section {
  position: relative;
  z-index: 5;
  background: var(--bg);
  padding: 5rem 8vw 4rem;
  overflow: visible;
}

.app-merged-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.app-merged-left {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.app-merged-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.phone3d-canvas-wrap {
  width: 100%;
  height: 72vh;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

#phone3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.app-merged-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.app-merged-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.9rem;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.25s;
}

.app-merged-metric:first-child {
  background: rgba(61,181,39,0.06);
  border-color: rgba(61,181,39,0.2);
}

.app-merged-metric:hover {
  border-color: rgba(61,181,39,0.25);
}

@media (max-width: 900px) {
  .app-merged-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .phone3d-canvas-wrap {
    height: 60vh;
  }
  .app-merged-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 5rem 15vw 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-logo {
  height: 3.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #ccc;
  line-height: 1.5;
}

.footer-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-col h4.footer-heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-wrap: wrap;
    gap: 2.5rem;
  }

  .footer-brand {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-col {
    flex: 1 1 calc(33% - 2rem);
    min-width: 140px;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
  }

  .footer-col {
    flex: 0 0 auto;
  }
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 300;
  position: relative;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0c0c0c;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  line-height: 1;
}

.mobile-nav a:hover,
.mobile-nav a.mobile-nav-active {
  color: #fff;
}

.mobile-nav a.mobile-nav-cta {
  color: #0c0c0c !important;
  background: var(--accent);
  padding: 0.8rem 2.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
  text-transform: uppercase;
}

body.menu-open {
  overflow: hidden;
}

/* ============================================================
   MOBILE LAYOUT FIXES
   ============================================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .site-header {
    padding: 1.2rem 4vw;
  }

  .logo-img {
    height: 3.8rem;
  }

  /* Hero standalone: allow natural height on small screens */
  .hero-standalone {
    height: auto;
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  /* App merged section */
  #phone3d-section {
    padding: 4rem 6vw 3rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 3.2rem;
  }

  /* App metrics: single column on very small screens */
  .app-merged-metrics {
    grid-template-columns: 1fr;
  }

  /* Footer padding */
  .site-footer {
    padding: 4rem 6vw 0;
  }

  /* Section heading size */
  .section-heading {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

@media (max-width: 768px) {
  html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
  }
}
