/* ==========================================================================
   MadenLabs Landing
   Migrated from the Claude Design component "MadenLabs Landing v2.dc.html".
   The source used inline styles on every element plus style-hover attributes;
   both were lifted into real classes here so the layout can respond.
   ========================================================================== */

:root {
  --blue:        #3749EF;
  --blue-dark:   #2032C4;
  --ink:         #333333;
  --ink-2:       #3E3E45;
  --ink-3:       #52525A;
  --muted:       #8A8A90;
  --muted-2:     #6B6B72;
  --line:        #EDEDEF;
  --line-2:      #E4E4E7;
  --surface:     #F7F7F8;
  --bg:          #FFFFFF;

  /* Product accents, fixed from the design's editable props:
     DobleNueve #F0C060 · LinguaQuest #2FA3A3 · Baby Duo #D8A878.
     The values below are the output of the design's own mix()/readable()
     helpers; readable() darkens the accent until it clears 4.5:1 against the
     12%-tint pill. Recompute with Landing/README.md's snippet if an accent
     ever changes. */
  --card1-bg:   #FBEFD6;  --card1-edge: #F7DCA8;
  --card2-bg:   #324343;  --card2-edge: #316262;
  --card3-bg:   #F5E8DC;  --card3-edge: #EACFB5;
  --a1-soft:    #F0C0601F; --a1-text: #786030;  /* 4.99:1 */
  --a2-soft:    #2FA3A333;
  --a3-soft:    #D8A8781F; --a3-text: #775C42;  /* 4.82:1 */

  --pad-x: 48px;
  --k: 1;  /* desk stage scale, set by app.js */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden here would turn body into a scroll container
     and break position:sticky on the header */
  overflow-x: clip;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@keyframes ml-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ml-pulse   { 0%,55% { opacity: 1; } 56%,100% { opacity: 0.2; } }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad-x);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 24px; height: 24px; fill: var(--blue); display: block; }
.brand span { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }

.site-nav { display: flex; gap: 30px; font-size: 13px; }
.site-nav a { color: var(--ink-3); }
.site-nav a:hover { color: var(--blue); }

.header-end { display: flex; align-items: center; gap: 14px; }

.lang {
  display: flex; gap: 2px;
  background: var(--surface); border-radius: 8px; padding: 3px;
}
.lang button {
  border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  background: transparent; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: #FFFFFF; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 500;
  border-radius: 9px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--blue); color: #FFFFFF; border: 1px solid var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #FFFFFF; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { font-size: 13px; padding: 11px 20px; border-radius: 8px; }
.btn--md { font-size: 14px; padding: 15px 28px; }

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

.hero {
  padding: 120px var(--pad-x) 72px;
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; text-align: center;
}
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
}
.hero h1 {
  margin: 0; max-width: 1060px;
  font-weight: 700; font-size: clamp(38px, 8.2vw, 84px);
  line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance;
}
.hero h1 .light { font-weight: 300; }
.hero p {
  margin: 0; max-width: 560px;
  font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--ink-3);
}
.hero-actions { display: flex; gap: 12px; padding-top: 10px; flex-wrap: wrap; justify-content: center; }

/* ----------------------------------------------------------------- desk -- */

.desk-section { padding: 0 40px 48px; }

.desk {
  position: relative;
  border-radius: 20px; overflow: hidden;
  background: var(--blue);
  height: calc(660px * var(--k));
}

.desk-stage {
  position: absolute; top: 0; left: 0;
  width: 1360px; height: 660px;
  transform-origin: top left;
  transform: scale(var(--k));
}

.desk-tiles {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(14, 1fr);
  gap: 30px; padding: 30px;
  opacity: 0.13; pointer-events: none;
}
.desk-tiles svg { width: 100%; height: auto; fill: #FFFFFF; }

.desk-label {
  position: absolute; top: 26px; left: 32px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.desk-label .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF;
  animation: ml-pulse 1.8s steps(1, end) infinite;
}

/* product cards ------------------------------------------------------------ */

.pcard {
  position: absolute; width: 352px;
  border-radius: 16px; padding: 26px;
  border: 1px solid transparent;
  box-shadow: 0 22px 48px -18px rgba(10,20,80,0.45);
}
.pcard--draggable { cursor: grab; touch-action: none; }
.pcard--dragging { cursor: grabbing; }

.pcard--1 { left: 78px;  top: 96px;  background: var(--card1-bg); border-color: var(--card1-edge); }
.pcard--2 { left: 520px; top: 250px; background: var(--card2-bg); border-color: var(--card2-edge);
            color: #FFFFFF; box-shadow: 0 22px 48px -18px rgba(0,0,0,0.55); }
.pcard--3 { left: 955px; top: 88px;  background: var(--card3-bg); border-color: var(--card3-edge); }

.pcard-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.pcard-cat {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
}
.pcard--2 .pcard-cat { color: rgba(255,255,255,0.55); }

.pcard-status {
  font-size: 11px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.pcard--1 .pcard-status { background: var(--a1-soft); color: var(--a1-text); }
.pcard--2 .pcard-status { background: var(--a2-soft); color: #FFFFFF; }
.pcard--3 .pcard-status { background: var(--a3-soft); color: var(--a3-text); }

.pcard-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.pcard-head img {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: block;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.pcard--2 .pcard-head img { box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.pcard-head h3 {
  margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.025em;
}

.pcard p {
  margin: 0 0 22px;
  font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--ink-2);
}
.pcard--2 p { color: rgba(255,255,255,0.7); }

.pcard-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 400;
  border: 1px solid var(--line-2); border-radius: 7px;
  padding: 8px 13px; color: var(--ink-3);
  transition: border-color .15s ease, color .15s ease;
}
.pcard--2 .tag { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.8); }
a.tag:hover { border-color: var(--blue); color: var(--blue); }
.pcard--2 a.tag:hover { border-color: #FFFFFF; color: #FFFFFF; }

.tag--cta {
  font-weight: 500; background: var(--blue); color: #FFFFFF; border-color: var(--blue);
}
.tag--cta:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #FFFFFF; }
.pcard--2 .tag--cta { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.pcard--2 .tag--cta:hover { background: rgba(255,255,255,0.85); color: var(--ink); border-color: transparent; }

/* -------------------------------------------------------------- marquee -- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.marquee-track {
  display: flex; width: 200%; gap: 40px;
  animation: ml-marquee 30s linear infinite;
  font-weight: 500; font-size: clamp(22px, 5vw, 38px);
  letter-spacing: -0.02em; white-space: nowrap; color: var(--line);
}

/* ------------------------------------------------------------- services -- */

.services { padding: 88px var(--pad-x); }
.section-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 44px; flex-wrap: wrap;
}
.section-head h2 {
  margin: 0; font-weight: 700; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.025em;
}
.section-head p {
  margin: 0; max-width: 400px;
  font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--muted);
}

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  border: 1px solid var(--line); border-radius: 14px; padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s ease;
}
.service:hover { border-color: var(--blue); }
.service .n { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--blue); }
.service h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.service p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.65; color: var(--muted); }

/* -------------------------------------------------------------- contact -- */

.contact { padding: 0 var(--pad-x) 88px; }

.contact-card {
  border-radius: 18px; background: var(--blue); color: #FFFFFF;
  padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  /* the form column is much taller than the copy — centre so the left side
     doesn't sit alone at the top of a tall blue field */
  align-items: center;
}
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy .mark { width: 38px; height: 38px; fill: #FFFFFF; }
.contact-copy h2 {
  margin: 0; font-weight: 700; font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.08; letter-spacing: -0.025em;
}
.contact-copy p {
  margin: 0; font-size: 15px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.field input, .field textarea {
  font-family: inherit; font-size: 15px; font-weight: 300; color: #FFFFFF;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9px; padding: 13px 15px;
  transition: background-color .15s ease, border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.45); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.16);
  border-color: #FFFFFF;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #FFC9C9; }

/* honeypot — visually gone, never announced. Clipped rather than pushed to a
   large negative offset so it can't widen the document. */
.hp {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; opacity: 0; pointer-events: none;
}

.contact-form .btn--send {
  background: #FFFFFF; color: var(--blue); border: 1px solid #FFFFFF;
  font-size: 14px; padding: 16px 20px; border-radius: 9px; margin-top: 4px;
}
.contact-form .btn--send:hover:not(:disabled) { background: rgba(255,255,255,0.88); }
.contact-form .btn--send:disabled { opacity: 0.6; cursor: default; }

.form-status { font-size: 13px; font-weight: 400; line-height: 1.5; min-height: 20px; }
.form-status[data-state="ok"]  { color: #D6FFE9; }
.form-status[data-state="err"] { color: #FFD3D3; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  padding: 40px var(--pad-x);
  background: var(--ink); color: rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; font-weight: 300;
}
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand .mark { fill: #FFFFFF; width: 20px; height: 20px; }
.site-footer .brand span { font-size: 15px; }

/* ==================================================================== md == */

@media (max-width: 1100px) {
  :root { --pad-x: 28px; }
  .desk-section { padding: 0 24px 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 22px; }
}

/* ==================================================================== sm == */
/* Below 900px the fixed 1360px stage would scale to ~4px type, so the desk
   becomes a plain vertical stack and dragging is turned off in app.js. */

@media (max-width: 899px) {
  .site-nav { display: none; }
  .hero { padding: 72px var(--pad-x) 48px; gap: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }

  .desk { height: auto; }
  .desk-stage {
    position: relative;
    width: 100%; height: auto;
    transform: none;
    display: flex; flex-direction: column; gap: 16px;
    padding: 64px 16px 20px;
  }
  .desk-tiles { grid-template-columns: repeat(6, 1fr); gap: 18px; padding: 18px; }
  .desk-label { top: 22px; left: 20px; right: 20px; font-size: 11px; }

  .pcard {
    position: relative; left: auto; top: auto; width: 100%;
    transform: none !important; cursor: default;
  }
  .pcard-head h3 { font-size: 26px; }

  .services { padding: 64px var(--pad-x); }
  .services-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }

  .contact { padding: 0 var(--pad-x) 64px; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; align-items: start; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==================================================================== xs == */
/* Phone widths: logo + CTA + language toggle no longer fit on one row, and
   the header CTA only repeats the one in the hero a screen below. */

@media (max-width: 600px) {
  :root { --pad-x: 20px; }
  .site-header { padding: 14px var(--pad-x); }
  .site-header .btn--primary { display: none; }
  .hero-actions { flex-direction: column; }
  .desk-stage { padding: 60px 12px 16px; }
  .pcard { padding: 22px; }
  .pcard-head h3 { font-size: 24px; }
  .service { padding: 24px; }
  .contact-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; width: auto; }
  .desk-label .dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
