@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Playfair+Display:ital,wght@1,700&family=Unbounded:wght@700;800&display=swap");

:root {
  --color-primary: #f86d12;
  --color-primary-light: #fee3d0;
  --gold: #ffb900;
  --orange-dark: #ff7730;
  --blue: #2998ff;
  --purple: #5643fa;
  --ink: #2f323a;
  --grey: #6b6f76;
  --bg: #f6f6f9;
  --white: #fff;
  --panel: #fff;

  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.65);
  --surface-opaque: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(243, 243, 247, 0.85);
  --surface-border: rgba(255, 255, 255, 0.7);
  --line: rgba(47, 50, 58, 0.08);
  --line-strong: rgba(47, 50, 58, 0.12);
  --shadow: rgba(47, 50, 58, 0.14);
  --shadow-soft: rgba(47, 50, 58, 0.1);
  --shadow-softer: rgba(47, 50, 58, 0.02);
  --shadow-hover: rgba(47, 50, 58, 0.16);
  --grid-line: rgba(47, 50, 58, 0.06);
  --logo-filter: none;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f0f1f4;
  --grey: #9aa0ab;
  --bg: #101216;
  --panel: #1c1f26;

  --surface: rgba(28, 31, 38, 0.72);
  --surface-strong: rgba(28, 31, 38, 0.65);
  --surface-opaque: rgba(28, 31, 38, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.5);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --shadow-softer: rgba(255, 255, 255, 0.04);
  --shadow-hover: rgba(0, 0, 0, 0.6);
  --grid-line: rgba(255, 255, 255, 0.06);
  --logo-filter: invert(1);

  color-scheme: dark;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* ===== Ambient background scene ===== */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg);
}

.scene__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.scene__blob--1 {
  width: 48vw;
  height: 48vw;
  top: -14vw;
  left: -14vw;
  background: radial-gradient(
    circle at 30% 30%,
    var(--gold),
    var(--color-primary) 70%
  );
  animation: drift-1 20s ease-in-out infinite;
  will-change: transform;
}

.scene__blob--2 {
  width: 52vw;
  height: 52vw;
  bottom: -20vw;
  right: -16vw;
  background: radial-gradient(
    circle at 70% 70%,
    var(--blue),
    var(--purple) 70%
  );
  animation: drift-2 24s ease-in-out infinite;
  will-change: transform;
}

.scene__blob--3 {
  width: 26vw;
  height: 26vw;
  top: 30vh;
  right: 8vw;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: 0.35;
  animation: drift-1 16s ease-in-out infinite reverse;
  will-change: transform;
}

.scene__grid {
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(
    ellipse 60% 55% at 50% 35%,
    black 0%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 55% at 50% 35%,
    black 0%,
    transparent 75%
  );
}

.scene__grid-line {
  stroke: var(--grid-line);
}

@keyframes drift-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(4%, 5%) scale(1.08);
  }
}

@keyframes drift-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-4%, -4%) scale(1.06);
  }
}

/* ===== Page shell ===== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  padding: 3.6rem clamp(2.4rem, 6vw, 6.4rem) 0;
  display: flex;
  justify-content: flex-end;
}

.top__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0.8rem 2rem var(--shadow-soft);
  transition: box-shadow 0.25s, transform 0.25s;
}

.theme-toggle:hover {
  box-shadow: 0 1rem 2.4rem var(--shadow-hover);
  transform: translateY(-2px);
}

.theme-toggle__icon {
  position: absolute;
}

.theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.6) rotate(-40deg);
  transition: opacity 0.25s, transform 0.25s;
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.25s, transform 0.25s;
}

:root[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.6) rotate(40deg);
}

.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.4rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0.8rem 2rem var(--shadow-soft);
  transition: box-shadow 0.25s;
}

.lang-toggle:hover {
  box-shadow: 0 1rem 2.4rem var(--shadow-hover);
}

.lang-toggle__thumb {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  width: 3.6rem;
  height: calc(100% - 0.8rem);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--color-primary), var(--gold));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lang-toggle[data-lang="en"] .lang-toggle__thumb {
  transform: translateX(3.6rem);
}

.lang-toggle__option {
  position: relative;
  z-index: 1;
  width: 3.6rem;
  text-align: center;
  padding: 0.7rem 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--grey);
  transition: color 0.25s;
}

.lang-toggle[data-lang="nl"] .lang-toggle__option[data-lang-option="nl"],
.lang-toggle[data-lang="en"] .lang-toggle__option[data-lang-option="en"] {
  color: var(--white);
}

/* ===== Hero / contact layout ===== */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  align-content: center;
  row-gap: 8.6rem;
  column-gap: 6rem;
  max-width: 122rem;
  margin: 0 auto;
  width: 100%;
  padding: 6rem clamp(2.4rem, 6vw, 6.4rem) 8rem;
}

.hero__logo {
  grid-column: 1 / -1;
  justify-self: center;
  height: 6.6rem;
  width: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.3s;
}

.hero__intro {
  min-width: 0;
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.eyebrow::before {
  content: "";
  width: 2.8rem;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--gold));
}

.heading {
  font-size: clamp(3.6rem, 4.4vw + 1rem, 6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.heading__highlight {
  display: inline-block;
  color: var(--color-primary);
}

.heading__highlight--shimmer {
  background: linear-gradient(
    100deg,
    var(--color-primary) 20%,
    var(--gold) 40%,
    #fff4de 50%,
    var(--gold) 60%,
    var(--color-primary) 80%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    pop-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    shimmer 1.6s ease-in-out 1;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.85);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.type__cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 0.4rem;
  background: var(--color-primary);
  vertical-align: -0.1em;
  animation: blink 1s step-start infinite;
}

.type__mono {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
  font-size: 0.8em;
  color: #4ade80;
  background: #0b0f0d;
  padding: 0.15em 0.6em;
  border-radius: 0.5em;
  box-shadow:
    inset 0 0 0 1px rgba(74, 222, 128, 0.25),
    0 0 1.2rem rgba(74, 222, 128, 0.18);
}

.type__mono::before {
  content: "$ ";
  color: rgba(74, 222, 128, 0.55);
}

.type__word {
  animation: word-in 0.28s ease-out;
}

.type__word--0 {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  color: var(--color-primary);
}

.type__word--1 {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--blue);
}

.type__word--2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  color: #feb000;
}

.type__word--stacked {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0.3em 0;
}

.type__word--stacked .type__cursor {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 0.4rem;
  transform: translateY(-50%);
}

@keyframes word-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Contact card ===== */

.card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  border-radius: 2.4rem;
  padding: clamp(2.8rem, 3vw, 4rem);
  box-shadow:
    0 2rem 6rem var(--shadow),
    0 0 0 1px var(--shadow-softer);
  overflow: hidden;
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--gold),
    var(--blue),
    var(--purple)
  );
}

.card__title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2.8rem;
  color: var(--ink);
}

.prompt {
  position: relative;
}

.prompt__input {
  width: 100%;
  display: block;
  resize: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  max-height: 40vh;
  min-height: 13.5rem;
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface-soft);
  border: 2px solid transparent;
  border-radius: 1.6rem;
  padding: 1.8rem 6.6rem 1.8rem 1.8rem;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background-color 0.25s;
}

.prompt__input::placeholder {
  color: var(--grey);
}

.prompt__input:focus {
  outline: none;
  background-color: var(--panel);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(248, 109, 18, 0.12);
}

.prompt__send {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(100deg, var(--color-primary), var(--orange-dark));
  box-shadow: 0 0.8rem 1.6rem rgba(248, 109, 18, 0.32);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.prompt__send svg {
  width: 2rem;
  height: 2rem;
}

.prompt__send:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2rem rgba(248, 109, 18, 0.4);
}

.prompt__send:active:not(:disabled) {
  transform: translateY(0);
}

.prompt__send:disabled {
  cursor: not-allowed;
  box-shadow: none;
  color: var(--grey);
  background: var(--panel);
  border: 2px solid var(--line-strong);
}

.prompt__hint {
  margin-top: 1.2rem;
  min-height: 1.8rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}

.prompt__hint[data-state="valid"] {
  color: #1a9a63;
  font-weight: 700;
}

.prompt__hint[data-state="error"] {
  color: var(--orange-dark);
  font-weight: 700;
}

.prompt-success[hidden] {
  display: none;
}

.prompt-success {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 0;
  color: #1a9a63;
}

.prompt-success p {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Footer ===== */

.foot {
  text-align: center;
  padding: 3rem;
  font-size: 1.3rem;
  color: var(--grey);
}

/* ===== Cookie notice ===== */

.notice[hidden] {
  display: none;
}

.notice {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  z-index: 20;
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: 1.2rem;
  min-width: 38rem;
  max-width: calc(100vw - 3.2rem);
  padding: 1.4rem 1.6rem;
  border-radius: 999px;
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 1.2rem 3.2rem var(--shadow);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 500;
  transform: translate(-50%, 1.6rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.notice__text {
  grid-column: 2;
  text-align: center;
}

.notice__close {
  grid-column: 3;
}

.notice[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.notice__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.notice__close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

@media only screen and (max-width: 30em) {
  .notice {
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.6rem;
    min-width: 0;
    transform: translateY(1.6rem);
    max-width: none;
  }

  .notice[data-visible="true"] {
    transform: translateY(0);
  }
}

/* ===== Motion ===== */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__blob {
    animation: none;
    will-change: auto;
  }
  .hero__intro,
  .card {
    animation: none;
    opacity: 1;
  }
  .type__cursor {
    animation: none;
  }
  .heading__highlight--shimmer {
    animation: none;
  }
  .type__word {
    animation: none;
  }
}

/* ===== Mobile performance ===== */

@media only screen and (max-width: 48em) {
  .scene__blob {
    filter: blur(36px);
    animation: none;
    will-change: auto;
  }

  .theme-toggle,
  .lang-toggle,
  .card,
  .notice {
    background: var(--surface-opaque);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ===== Responsive ===== */

@media only screen and (max-width: 62.5em) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
    gap: 4rem;
    padding-top: 3rem;
  }

  .eyebrow,
  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .eyebrow {
    justify-content: center;
  }

  .type__word--stacked {
    margin-left: auto;
    margin-right: auto;
  }

  .card {
    text-align: left;
  }
}

@media only screen and (max-width: 30em) {
  .card {
    padding: 2.4rem;
    border-radius: 1.8rem;
  }

  .top {
    padding-top: 2.4rem;
  }
}
