/* Doova — landingspagina
   Glas en langzaam drijvende kleurvelden, in dezelfde taal als de app zelf. */

:root {
  --bg: #06080b;
  --ink: #f3f6fa;
  --ink-2: rgba(243, 246, 250, 0.64);
  --ink-3: rgba(243, 246, 250, 0.4);

  --cyan: #58c4f6;
  --coral: #ff4f81;
  --purple: #a855f7;
  --blue: #4361ee;

  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --rim: rgba(255, 255, 255, 0.11);
  --rim-2: rgba(255, 255, 255, 0.2);

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

p { margin: 0; }

/* ---------- achtergrond: drijvende kleurvelden ---------- */

.aurora {
  position: fixed;
  inset: -25%;
  z-index: -2;
  filter: blur(120px) saturate(175%);
  opacity: 0.78;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.b1 {
  width: 52vw; height: 52vw; left: 2%; top: 0%;
  background: radial-gradient(circle, var(--blue) 0%, rgba(67, 97, 238, 0.35) 45%, transparent 72%);
  animation: drift-a 46s var(--ease) infinite;
}
.b2 {
  width: 46vw; height: 46vw; right: 0%; top: -6%;
  background: radial-gradient(circle, var(--coral) 0%, rgba(255, 79, 129, 0.32) 45%, transparent 70%);
  animation: drift-b 58s var(--ease) infinite;
}
.b3 {
  width: 44vw; height: 44vw; left: 4%; top: 44%;
  background: radial-gradient(circle, var(--purple) 0%, rgba(168, 85, 247, 0.34) 45%, transparent 72%);
  animation: drift-c 64s var(--ease) infinite;
}
.b4 {
  width: 42vw; height: 42vw; right: 10%; top: 58%;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(88, 196, 246, 0.34) 45%, transparent 70%);
  animation: drift-d 52s var(--ease) infinite;
}
@keyframes drift-a {
  0%, 100% { transform: none; }
  33% { transform: translate3d(14vw, 9vh, 0) scale(1.15); }
  66% { transform: translate3d(-6vw, 18vh, 0) scale(0.9); }
}
@keyframes drift-b {
  0%, 100% { transform: none; }
  40% { transform: translate3d(-16vw, 14vh, 0) scale(1.2); }
  70% { transform: translate3d(-4vw, 30vh, 0) scale(0.95); }
}
@keyframes drift-c {
  0%, 100% { transform: none; }
  35% { transform: translate3d(12vw, -12vh, 0) scale(0.88); }
  68% { transform: translate3d(-14vw, 8vh, 0) scale(1.12); }
}
@keyframes drift-d {
  0%, 100% { transform: none; }
  45% { transform: translate3d(-18vw, -10vh, 0) scale(1.18); }
  75% { transform: translate3d(6vw, 6vh, 0) scale(0.92); }
}

/* Zachte sluier: net genoeg om tekst leesbaar te houden, niet zoveel dat de
   kleuren eronder verdwijnen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(65% 45% at 50% 34%, rgba(6, 8, 11, 0.66), transparent 72%),
    radial-gradient(130% 95% at 50% 45%, rgba(6, 8, 11, 0.12), rgba(6, 8, 11, 0.52) 80%),
    linear-gradient(180deg, rgba(6, 8, 11, 0.42), transparent 20%, transparent 80%, rgba(6, 8, 11, 0.55));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- glas ---------- */

.panel,
.card,
.window,
.player,
.nav.is-stuck {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--rim);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}
.panel::before,
.card::before,
.window::before,
.player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 var(--rim-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%);
}

/* ---------- navigatie ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.is-stuck {
  background: rgba(8, 10, 14, 0.62);
  border-bottom-color: var(--rim);
  border-left: 0; border-right: 0; border-top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img { border-radius: 7px; }
.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid var(--rim);
  background: var(--glass-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease),
    background 0.22s, border-color 0.22s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--rim-2); }
.btn:active { transform: scale(0.975); }

.btn-primary {
  color: #05070a;
  border-color: transparent;
  background: linear-gradient(135deg, #ffffff, #d9e6f5);
  box-shadow: 0 10px 34px -12px rgba(88, 196, 246, 0.75);
}
.btn-primary:hover {
  box-shadow: 0 18px 46px -14px rgba(255, 79, 129, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

/* ---------- typografie ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: min(52ch, 100%);
}
.fineprint {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}
.fineprint a { border-bottom: 1px solid var(--rim-2); padding-bottom: 1px; }
.fineprint a:hover { color: var(--ink); }
.grad {
  background: linear-gradient(105deg, var(--cyan), var(--purple) 46%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8rem, 17vh, 12rem) var(--gutter) clamp(4rem, 9vw, 7rem);
  text-align: center;
}
.hero h1 {
  margin: 1.1rem 0 1.3rem;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.99;
}
.hero .lede { margin: 0 auto; }
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 2.1rem 0 0.9rem;
}

/* app-venster met perspectief */
.stage {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  perspective: 1800px;
}
.stage-glow {
  position: absolute;
  inset: 12% -6% -18%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(88, 196, 246, 0.28), transparent 70%),
    radial-gradient(50% 50% at 70% 70%, rgba(255, 79, 129, 0.22), transparent 72%);
  filter: blur(60px);
  z-index: -1;
}
.window {
  border-radius: 18px;
  overflow: hidden;
  transform: rotateX(11deg) scale(0.985);
  transform-origin: 50% 0;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 8px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 1.1s var(--ease);
}
.stage:hover .window { transform: rotateX(3deg) scale(1); }

/* ---------- secties ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 {
  margin: 0.9rem 0 0.9rem;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}
.section-head .lede { margin: 0; }

/* ---------- video ---------- */

.player {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 50px 110px -45px rgba(0, 0, 0, 0.9);
}
.player video { width: 100%; height: 100%; object-fit: cover; }
/* De knop beslaat het hele beeld, maar toont zich alleen als een pill
   linksonder, zodat het woordmerk in de poster vrij blijft. */
.play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1rem, 2.4vw, 1.7rem);
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 8, 11, 0.55), transparent 42%);
  transition: opacity 0.4s var(--ease);
}
.play-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 1.1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.8);
  transition: transform 0.28s var(--ease), background 0.28s, border-color 0.28s;
}
.play-disc {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding-left: 3px;
  border-radius: 50%;
  background: #fff;
  color: #06080b;
  box-shadow: 0 0 22px -6px rgba(255, 255, 255, 0.65);
}
.play-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.play:hover .play-pill {
  transform: translateY(-2px);
  background: rgba(8, 10, 14, 0.58);
  border-color: rgba(255, 255, 255, 0.4);
}
.play:active .play-pill { transform: scale(0.985); }
.play.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.2vw, 1rem);
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 232px;
  border-radius: 20px;
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
/* icoon bovenaan, tekst onderaan: kaarten van verschillende hoogte blijven
   zo toch op één lijn lezen */
.card h3 { margin-top: auto; }
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--rim));
  background: rgba(255, 255, 255, 0.06);
}
.card.wide { grid-column: span 2; }
.card .dot {
  display: block;
  width: 26px; height: 26px;
  border-radius: 9px;
  margin-bottom: 1.1rem;
  background: var(--accent);
  box-shadow: 0 0 30px -4px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.card h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 0.55rem;
}
.card p { color: var(--ink-2); font-size: 0.96rem; }

.badges { display: flex; gap: 0.4rem; margin-top: 1.1rem; }
.badges b {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  color: #fff;
  background: var(--b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.swatches { display: flex; gap: 0.45rem; margin-top: 1.2rem; }
.swatches i {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.keys { display: flex; gap: 0.35rem; margin-top: 1.1rem; }
kbd {
  font-family: var(--mono);
  font-size: 0.8rem;
  min-width: 28px;
  text-align: center;
  padding: 0.28rem 0.5rem;
  border-radius: 7px;
  border: 1px solid var(--rim-2);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- download ---------- */

.download {
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 4rem);
  text-align: center;
}
.download h2 {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}
.download .lede { margin: 0 auto 2rem; }
.specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2.6rem;
  margin: 2.4rem 0 1.6rem;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.specs span {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.note {
  max-width: 46ch;
  margin: 0 auto 1.4rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--rim);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  color: var(--ink-2);
}
.note b { color: var(--ink); font-weight: 600; }

/* ---------- voettekst ---------- */

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .nav-links { display: none; }
  .window { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
  .card { min-height: 0; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  /* de regelafbreking in de kop past hier niet: laat de tekst zelf lopen */
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); }
  .specs { gap: 1.1rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .window { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
