/* ============================================
   NutriSchorsch Landing — Custom CSS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Sora:wght@700;800&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --green: #b8ff3b;
  --green-dim: rgba(184, 255, 59, 0.15);
  --bg: #0f1117;
  --surface: #1a1e22;
  --border: #313840;
  --text: #ffffff;
  --text-muted: #7d8790;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Nav --- */
.nav-scrolled {
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.85) !important;
}

/* --- Hero Gradient Animation --- */
.hero-gradient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(184, 255, 59, 0.06), transparent),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(184, 255, 59, 0.04), transparent),
    radial-gradient(ellipse 400px 300px at 60% 80%, rgba(184, 255, 59, 0.03), transparent);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 2%) scale(0.98); }
  100% { transform: translate(1%, -1%) scale(1.01); }
}

/* Grid overlay for hero */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 255, 59, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 59, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

/* --- Hero SVG Illustration --- */
.hero-visual {
  position: relative;
}

.hero-visual svg {
  filter: drop-shadow(0 0 40px rgba(184, 255, 59, 0.15));
}

.macro-ring {
  transform-origin: center;
  animation: ringPulse 3s ease-in-out infinite;
}

.macro-ring:nth-child(2) { animation-delay: 0.5s; }
.macro-ring:nth-child(3) { animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* --- Feature Cards --- */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.02);
  border-color: rgba(184, 255, 59, 0.4);
  box-shadow: 0 0 30px rgba(184, 255, 59, 0.05);
}

.feature-card .icon-wrap {
  transition: transform 0.3s ease;
}

.feature-card:hover .icon-wrap {
  transform: scale(1.1);
}

/* --- Steps connector line --- */
.steps-connector {
  position: absolute;
  top: 2rem;
  left: calc(16.66% + 1.5rem);
  right: calc(16.66% + 1.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(184, 255, 59, 0.3), var(--green));
}

@media (max-width: 768px) {
  .steps-connector {
    display: none;
  }
}

/* --- Step number --- */
.step-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.step-card:hover .step-number {
  opacity: 0.5;
}

/* --- Schorsch avatar glow --- */
.schorsch-avatar {
  box-shadow: 0 0 50px rgba(184, 255, 59, 0.15), 0 0 100px rgba(184, 255, 59, 0.05);
  animation: avatarGlow 4s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
  0% { box-shadow: 0 0 50px rgba(184, 255, 59, 0.15), 0 0 100px rgba(184, 255, 59, 0.05); }
  100% { box-shadow: 0 0 60px rgba(184, 255, 59, 0.25), 0 0 120px rgba(184, 255, 59, 0.08); }
}

/* --- CTA Section gradient --- */
.cta-gradient {
  background: linear-gradient(135deg, rgba(184, 255, 59, 0.08) 0%, rgba(15, 17, 23, 0) 50%),
              linear-gradient(315deg, rgba(184, 255, 59, 0.06) 0%, rgba(15, 17, 23, 0) 50%),
              var(--bg);
}

/* --- Button Hover --- */
.btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(184, 255, 59, 0.3);
}

.btn-secondary {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(184, 255, 59, 0.05);
}

/* --- Mobile Nav --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Persona Cards --- */
.persona-card {
  position: relative;
  overflow: hidden;
}

.persona-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.persona-card:hover::before {
  transform: scaleY(1);
}

/* --- Selection color --- */
::selection {
  background: rgba(184, 255, 59, 0.3);
  color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
