/* Raymond Hanemaaijer · personal operator site, dark cinematic premium.
   Palette: near-black canvas with a green undertone, warm ivory ink,
   electric emerald (rayo = lightning, green = Raymond). */

:root {
  --bg: #070B09;
  --panel: #0D1410;
  --panel-2: #111A14;
  --line: rgba(242, 245, 240, 0.08);
  --ink: #F2F5F0;
  --sub: #A2ADA4;
  --faint: #67736A;
  --accent: #2EE07A;
  --accent-2: #14B88A;
  --accent-soft: rgba(46, 224, 122, 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #06120B; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #1D2620; border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); } 60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}
.beam {
  position: fixed; z-index: 0; pointer-events: none;
  top: -35vh; left: 50%; width: 130vw; height: 120vh;
  transform: translateX(-50%) rotate(-14deg);
  background:
    radial-gradient(ellipse 42% 34% at 62% 22%, rgba(46, 224, 122, 0.12), transparent 70%),
    radial-gradient(ellipse 34% 30% at 30% 12%, rgba(20, 184, 138, 0.07), transparent 70%);
  filter: blur(10px);
}

main { position: relative; z-index: 2; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.06; }
h3 { font-size: 1.45rem; }
.eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.1rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 9, 0.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: none;
}
.nav-logo span { font-weight: 400; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--faint); margin-top: 0.2em; }
.bolt { color: var(--accent); }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  color: var(--sub); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 0.7rem 1.35rem; border-radius: 999px; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform; white-space: nowrap;
}
.btn-solid { background: var(--accent); color: #06120B; }
.btn-solid:hover { box-shadow: 0 0 0 4px var(--accent-soft), 0 8px 30px rgba(46, 224, 122, 0.25); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(245,244,241,0.3); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn-xl { padding: 1.15rem 2.4rem; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 7rem clamp(1.2rem, 6vw, 6rem) 4rem; position: relative;
}
.hero-title {
  font-size: clamp(2.9rem, 9.5vw, 7.2rem); line-height: 1.0; letter-spacing: -0.03em;
  margin: 0.4rem 0 1.8rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-title em {
  font-style: normal; color: transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-sub { max-width: 34rem; color: var(--sub); font-size: 1.08rem; }
.hero-cta { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 7vh, 5rem); flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num.big { font-size: 2.6rem; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--faint); }
.stat-divider { width: 1px; height: 2.6rem; background: var(--line); }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--line); border-radius: 12px;
}
.scroll-hint span {
  position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--accent); border-radius: 2px; animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; }
.ticker-track {
  display: flex; gap: 2.4rem; width: max-content; align-items: center;
  animation: ticker 26s linear infinite;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.ticker-track i { font-style: normal; color: var(--accent); font-size: 0.8rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) clamp(1.2rem, 6vw, 6rem); position: relative; }
.section-head { max-width: 46rem; margin-bottom: 3.5rem; }
.section-sub { color: var(--sub); margin-top: 1.2rem; font-size: 1.05rem; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.1rem; }
.service {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.9rem 1.9rem; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.service::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 224, 122, 0.08), transparent 60%);
  pointer-events: none;
}
.service:hover { transform: translateY(-4px); border-color: rgba(46, 224, 122, 0.25); }
.service:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: 0.85rem; letter-spacing: 0.2em; margin-bottom: 1.4rem;
}
.service h3 { margin-bottom: 0.8rem; }
.service p { color: var(--sub); font-size: 0.95rem; }
.service ul { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.service li { color: var(--ink); font-size: 0.88rem; padding-left: 1.1rem; position: relative; }
.service li::before { content: "⚡"; position: absolute; left: 0; top: 0; font-size: 0.65rem; color: var(--accent); }

/* ---------- case study ---------- */
.section-case { padding-top: 0; }
.case {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(2rem, 5vw, 4rem); align-items: center; overflow: hidden; position: relative;
}
.case::after {
  content: ""; position: absolute; top: -40%; right: -20%; width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(46, 224, 122, 0.07), transparent 65%); pointer-events: none;
}
.case-copy h2 { margin-bottom: 1.1rem; }
.case-copy > p { color: var(--sub); font-size: 1rem; }
.case-metrics { display: flex; align-items: center; gap: 1.6rem; margin: 1.8rem 0 0.8rem; }
.metric { display: flex; flex-direction: column; }
.metric span:last-child { font-size: 0.78rem; color: var(--faint); }
.metric-arrow { color: var(--accent); font-size: 1.6rem; }
.case-note { font-size: 0.85rem; color: var(--faint); }
.case-chart { position: relative; }
.case-chart svg { width: 100%; height: auto; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-line {
  stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 900; stroke-dashoffset: 900;
}
.case.in-view .chart-line { animation: draw 2.2s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-fill { opacity: 0; transition: opacity 1.2s ease 1.4s; }
.case.in-view .chart-fill { opacity: 1; }
.chart-dot { fill: var(--accent); opacity: 0; }
.case.in-view .chart-dot { animation: pop 0.5s var(--ease) 2.3s forwards; }
@keyframes pop { from { opacity: 0; r: 0; } to { opacity: 1; r: 5; } }
.chart-badge {
  position: absolute; top: 2%; right: 1%;
  font-family: var(--font-display); font-weight: 700; color: #0A0A0B;
  background: var(--accent); padding: 0.25rem 0.7rem; border-radius: 8px; font-size: 0.95rem;
  opacity: 0; transform: translateY(8px); transition: all 0.5s var(--ease) 2.4s;
}
.case.in-view .chart-badge { opacity: 1; transform: translateY(0); }

/* ---------- platform ---------- */
.platform { perspective: 1400px; margin-bottom: 3rem; }
.mock-browser {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 80px rgba(46, 224, 122, 0.05);
  transition: transform 0.2s ease-out; will-change: transform;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2A2E; }
.mock-bar i:first-child { background: rgba(255, 99, 99, 0.55); }
.mock-bar i:nth-child(2) { background: rgba(255, 190, 70, 0.55); }
.mock-bar i:nth-child(3) { background: rgba(90, 200, 120, 0.55); }
.mock-bar span { margin-left: 0.6rem; font-size: 0.72rem; color: var(--faint); letter-spacing: 0.08em; }
.mock-body { display: grid; grid-template-columns: 64px 1fr; min-height: 320px; }
.mock-side { border-right: 1px solid var(--line); padding: 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mock-side-item { height: 10px; border-radius: 5px; background: #232327; }
.mock-side-item.active { background: var(--accent); }
.mock-main { padding: 1.3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.mock-card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.mock-kpi { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.mock-green { color: #59C87A; font-size: 1.1rem; letter-spacing: 0.05em; }
.mock-cap { font-size: 0.7rem; color: var(--faint); }
.mock-chart { flex: 1; display: flex; align-items: flex-end; gap: 0.65rem; min-height: 130px; }
.mock-col {
  flex: 1; height: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(46, 224, 122, 0.85), rgba(46, 224, 122, 0.15));
  transition: height 1.1s var(--ease);
}
.platform.in-view .mock-col { height: var(--h); }
.platform.in-view .mock-col:nth-child(2) { transition-delay: 0.07s; }
.platform.in-view .mock-col:nth-child(3) { transition-delay: 0.14s; }
.platform.in-view .mock-col:nth-child(4) { transition-delay: 0.21s; }
.platform.in-view .mock-col:nth-child(5) { transition-delay: 0.28s; }
.platform.in-view .mock-col:nth-child(6) { transition-delay: 0.35s; }
.platform.in-view .mock-col:nth-child(7) { transition-delay: 0.42s; }
.platform.in-view .mock-col:nth-child(8) { transition-delay: 0.49s; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.1rem; }
.pfeat {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  background: rgba(255, 255, 255, 0.015); transition: border-color 0.3s;
}
.pfeat:hover { border-color: rgba(46, 224, 122, 0.3); }
.pfeat h4 { font-size: 1.02rem; margin-bottom: 0.5rem; color: var(--accent); }
.pfeat p { font-size: 0.88rem; color: var(--sub); }

/* ---------- coaching (the product) ---------- */
.section-coaching {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(46, 224, 122, 0.05), transparent 70%);
}
.coaching { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; }
.coach-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem 1.9rem 1.9rem; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.coach-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46, 224, 122, 0.09), transparent 60%);
  pointer-events: none;
}
.coach-card:hover { transform: translateY(-4px); border-color: rgba(46, 224, 122, 0.3); }
.coach-card:hover::before { opacity: 1; }
.coach-card h3 { margin-bottom: 0.8rem; }
.coach-card > p { color: var(--sub); font-size: 0.95rem; }
.coach-card ul { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.coach-card li { color: var(--ink); font-size: 0.88rem; padding-left: 1.1rem; position: relative; }
.coach-card li::before { content: "⚡"; position: absolute; left: 0; top: 0; font-size: 0.65rem; color: var(--accent); }

.coach-how {
  display: flex; align-items: stretch; gap: 1rem; margin-top: 3rem; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.5rem; background: rgba(255, 255, 255, 0.015);
}
.how-step span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.9rem;
}
.how-step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.how-step p { font-size: 0.86rem; color: var(--sub); }
.how-arrow { align-self: center; color: var(--accent); font-size: 1.4rem; }

.coach-cta { text-align: center; margin-top: 3rem; }
.coach-note { margin-top: 1rem; font-size: 0.85rem; color: var(--faint); }

/* ---------- about ---------- */
.section-about { border-top: 1px solid var(--line); }
.about h2 { margin-bottom: 2rem; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 62rem; }
.about-cols p { color: var(--sub); }
.about-points { display: flex; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.apoint {
  display: inline-flex; align-items: center; gap: 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.7rem 1.3rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.88rem;
}
.apoint span { color: var(--accent); font-size: 0.75rem; font-weight: 700; }

/* ---------- CTA ---------- */
.section-cta { text-align: center; padding-bottom: 7rem; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 1rem; }
.cta .section-sub { max-width: 30rem; margin: 0 auto 2.4rem; }
.cta-mail { margin-top: 1.6rem; font-size: 0.9rem; color: var(--faint); }
.cta-mail a { color: var(--sub); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.25s, border-color 0.25s; }
.cta-mail a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem clamp(1.2rem, 6vw, 6rem); border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--faint); position: relative; z-index: 2;
}
.footer-left { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; color: var(--sub); }
.footer-mid { margin-left: auto; }
.footer-right { margin-left: 2rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .how-arrow { display: none; }
  .nav { gap: 1rem; }
  .nav-logo span { display: none; }
  .nav .btn { margin-left: auto; padding: 0.55rem 1.1rem; font-size: 0.82rem; }
  .case { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .mock-cards { grid-template-columns: repeat(2, 1fr); }
  .mock-cards .mock-card:nth-child(3) { display: none; }
  .footer-right { margin-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .mock-col { height: var(--h); }
}
