@font-face {
  font-family: 'SF New Republic';
  src: url('../assets/sf-new-republic-bold-italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Base tokens */
:root {
  --bg: #000000;
  --bg-alt: #050505;
  --accent: #39ff14; /* neon lime */
  --text-main: #f5f5f5;
  --text-muted: #aaaaaa;
  --border-subtle: #222222;
  --radius: 14px;
  --max-width: 960px;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.7);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #050505 0, #000000 55%, #000000 100%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography helpers */
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.2; }
p { line-height: 1.6; margin-bottom: 1rem; }

/* Container */
.site-header, .hero-inner, .section-inner, .footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-title { display: flex; align-items: center; gap: 16px; }

.logo {
  width: 54px;  
  height: 54px; 
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.7));
}

.brand-text h1 {
  font-family: 'SF New Republic', sans-serif;
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.5px;
  color: #fff; 
  text-transform: uppercase;
  line-height: 1;
}

.knwit-word { color: #fff; }
.knwit-w { color: var(--accent); }
.tagline { font-size: 12px; color: var(--text-muted); margin: 0; font-weight: 400; }

/* Nav */
.main-nav { display: flex; gap: 24px; align-items: center; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link-icon { width: 20px; height: 20px; object-fit: contain; }

/* Hero & Logo Fixes */
.hero { padding: 80px 0 60px; text-align: center; }

/* Voorkomt ontploffen van logo's op Home en Ideas */
.hero-logo, .ideas-mark-logo {
  width: 220px; 
  height: auto;
  margin: 0 auto 32px;
  object-fit: contain;
}

/* Maat voor het hartslag logo op Weight pagina */
.hero-app-logo {
  width: 280px;
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

.hero h2 { font-size: 32px; margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }

/* Ideas Page Grid */
.ideas-hero-top {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

/* Sections & Cards */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 32px; }

/* Slideshow Styling (Nu compleet) */
.app-slideshow-container { position: relative; width: 100%; max-width: 850px; margin: 0 auto; padding: 0 15px; }
.app-slides { position: relative; min-height: 480px; }
.app-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.app-slide.is-active { opacity: 1; pointer-events: auto; }
.mockup-frame { width: 210px; height: 440px; background: #000; border: 8px solid #1a1a1a; border-radius: 30px; position: relative; box-shadow: 0 0 40px rgba(57, 255, 20, 0.15); margin: 0 auto; overflow: hidden; flex-shrink: 0; }
.mockup-frame img { width: 100% !important; height: 100% !important; object-fit: fill !important; display: block; border: none !important; }
.slide-content h4 { color: var(--accent); font-size: 1.3rem; margin-bottom: 0.5rem; margin-top: 0; }
.slide-content p { color: var(--text-main); margin-bottom: 0.8rem; line-height: 1.4; font-size: 0.95rem; }
.slide-content ul { color: var(--text-muted); padding-left: 20px; margin: 0; font-size: 0.9rem; }
.slide-content li { margin-bottom: 4px; }

.powered-by-bar { display: flex; justify-content: center; margin-top: 15px; margin-bottom: 8px; }
.powered-by { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(57,255,20,0.55); background: rgba(0,0,0,0.55); color: var(--accent); font-size: 12px; }
.powered-by img { width: 20px; height: 20px; object-fit: contain; }
.app-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; cursor: pointer; opacity: 0.5; padding: 0; }
.app-dot.is-active { background: var(--accent); opacity: 1; }

/* Footer */
.site-footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border-subtle); margin-top: 40px; color: var(--text-muted); font-size: 14px; }

@media (max-width: 768px) {
  .site-header { flex-direction: column; height: auto; padding: 20px; gap: 16px; }
  .ideas-hero-top, .app-slide { grid-template-columns: 1fr; text-align: center; }
  .mockup-frame { margin-bottom: 20px; width: 180px; height: 380px; }
}