
@font-face {
  font-family: 'Agrandir';
  src: url('assets/type/Agrandir-Variable.ttf') format('truetype');
  font-display: swap;
}

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

:root {
  --n1: #F9F4F0;
  --n2: #F0E6DB;
  --n3: #CEC3B7;
  --n4: #C0AE9B;
  --n5: #685E52;
  --n6: #443C33;
  --n7: #2C2721;
}

::selection {
  background-color: var(--n7);
  color: var(--n1);
}

html { font-size: 16px; }

body {
  background-color: var(--n1);
  color: var(--n7);
  font-family: 'Work Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px 0;
  position: relative;
}

.dark-section {
  background-color: var(--n3);
  width: 100%;
  margin-top: 100px;
}

.dark-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* ── HERO ── */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 20px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-title {
  font-family: 'Agrandir', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--n7);
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-title span {
  font-style: normal;
}

.hero-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--n6);
  max-width: 540px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* ── FLOATING ANIMATIONS ── */
@keyframes float-a {
  0%, 100% { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px))) rotate(0deg); }
  25%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 22px)) rotate(2deg); }
  55%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 10px)) rotate(-1.5deg); }
  80%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 18px)) rotate(1deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px))) rotate(0deg); }
  35%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 26px)) rotate(-2.5deg); }
  65%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 8px)) rotate(1.5deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px))) rotate(0deg); }
  30%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 16px)) rotate(1.8deg); }
  60%       { transform: translate(var(--mx,0px), calc(var(--my,0px) + var(--scroll-y,0px) - 28px)) rotate(-2deg); }
}
@keyframes float-lego {
  0%, 100% { transform: translateX(calc(-50% + var(--mx,0px))) translateY(calc(var(--my,0px) + var(--scroll-y,0px))); }
  50%       { transform: translateX(calc(-50% + var(--mx,0px))) translateY(calc(var(--my,0px) + var(--scroll-y,0px) - 24px)); }
}

/* ── IMAGES ── */
.img-blinders {
  position: absolute;
  top: 40px;
  left: -20px;
  width: 185px;
  opacity: 0.85;
  z-index: 1;
  animation: float-b 6.5s ease-in-out infinite;
  will-change: transform;
  transition: --mx 0.8s ease, --my 0.8s ease;
}
.img-gyroscope {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 215px;
  opacity: 0.85;
  z-index: 1;
  animation: float-a 7s ease-in-out infinite;
  will-change: transform;
}
.img-freq {
  position: absolute;
  bottom: -40px;
  left: 10px;
  width: 195px;
  opacity: 0.85;
  z-index: 1;
  animation: float-c 8s ease-in-out infinite;
  will-change: transform;
}
.img-lego {
  position: absolute;
  bottom: -80px;
  left: 50%;
  width: 205px;
  opacity: 0.85;
  z-index: 1;
  animation: float-lego 7.5s ease-in-out infinite;
  will-change: transform;
}
.img-magnifier {
  position: absolute;
  bottom: -20px;
  right: 10px;
  width: 178px;
  opacity: 0.85;
  z-index: 1;
  animation: float-b 6s ease-in-out infinite;
  will-change: transform;
}

.hero img {
  pointer-events: none;
  user-select: none;
}

/* ── CONTENT SECTION ── */
.content-section {
  margin-top: 120px;
  padding-top: 20px;
}

.content-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 100px;
}

.content-left {
  flex: 0 0 38%;
}

.content-intro {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
  color: var(--n6);
  margin-bottom: 20px;
}

.content-takeaways {
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
}

.content-takeaways-title {
  font-family: 'Agrandir', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  color: var(--n7);
  margin-bottom: 40px;
}

.takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.takeaway-arrow {
  flex-shrink: 0;
  width: 32px;
  margin-top: 2px;
  opacity: 0.75;
}

.takeaway-text {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--n6);
}

/* ── TEASER SECTION ── */
.teaser-section {
  margin-top: 80px;
}

.teaser-card {
  background-color: var(--n7);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.teaser-gif {
  width: 102%;
  display: block;
  object-fit: cover;
}

/* ── FORM SECTION ── */
.form-section {
  margin-top: 80px;
}

.form-card {
  background-color: var(--n1);
  padding: 40px;
}

.form-headline {
  font-family: 'Agrandir', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.1;
  color: var(--n7);
  margin-bottom: 40px;
}

.form-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.form-fields-col {
  padding-right: 48px;
  border-right: 1px solid var(--n7);
}

.form-meta-col {
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── FORM FIELDS ── */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n7);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-label .optional {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--n4);
}

.field input {
  font-family: 'Agrandir', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--n7);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--n3);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input::placeholder {
  color: var(--n4);
}

.field input:focus {
  border-bottom-color: var(--n7);
}

/* ── META ITEMS ── */
.meta-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--n5);
}

.meta-value {
  font-family: 'Agrandir', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: var(--n7);
}

/* ── VALIDATION ── */
@keyframes shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-7px); }
  30%  { transform: translateX(6px); }
  45%  { transform: translateX(-5px); }
  60%  { transform: translateX(4px); }
  75%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.field-error {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #D98864;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-bottom 0.2s ease;
  pointer-events: none;
}

.field.has-error .field-error {
  max-height: 20px;
  opacity: 1;
  margin-bottom: 4px;
}

.field.has-error input {
  border-bottom-color: #D98864;
}

/* ── BUTTON ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background-color: #1D5C48;
  border: none;
  border-radius: 40px;
  padding: 18px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #174f3e;
}

.btn-primary:active {
  background-color: #134438;
}

.btn-primary:disabled {
  cursor: wait;
}

/* ── SIDE LOGOS ── */
.side-left {
  position: fixed;
  left: 28px;
  top: 40px;
  z-index: 20;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.side-left:hover {
  opacity: 1;
}

.side-right {
  position: fixed;
  right: 28px;
  top: 40px;
  z-index: 20;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .page { padding: 0 72px 0; }
  .dark-section-inner { padding: 40px 72px 80px; }
  .side-left {
    left: 14px;
    transform: scale(0.8);
    transform-origin: top left;
  }
  .side-right {
    right: 14px;
    transform: scale(0.8);
    transform-origin: top right;
  }
}

@media (max-width: 640px) {
  .page { padding: 0 60px 0; }
  .dark-section-inner { padding: 40px 60px 60px; }
  .hero { min-height: 380px; padding-top: 100px; }
  .img-blinders { width: 100px; top: 20px; left: -10px; }
  .img-gyroscope { width: 110px; top: 10px; right: -10px; }
  .img-freq { width: 100px; bottom: 0; left: 0; }
  .img-lego { width: 110px; }
  .img-magnifier { width: 90px; bottom: 0; right: 0; }
  .content-section { margin-top: 160px; }
  .content-columns { flex-direction: column; }
  .content-left { flex: none; }
  .content-takeaways { flex: none; margin-top: 40px; }
  .form-section { margin-top: 60px; }
  .form-card { padding: 24px; }
  .form-card-body { grid-template-columns: 1fr; }
  .form-fields-col { padding-right: 0; border-right: none; border-bottom: 0px solid var(--n3); padding-bottom: 32px; margin-bottom: 32px; }
  .form-meta-col { padding-left: 0; gap: 32px; }
  .side-left {
    left: 15px;
    top: 28px;
    transform: scale(0.65);
    transform-origin: top left;
  }
  .side-right {
    right: 15px;
    top: 28px;
    transform: scale(0.65);
    transform-origin: top right;
  }
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--n5);
  font-size: 13px;
}
