/* Cleverland — landing „în construcție”
   Paletă brand: violet #534AB7 · amber #EF9F27 · teal #00C896 · cerneală #2B2560 */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/Outfit-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --violet: #534AB7;
  --violet-deep: #443C9C;
  --amber: #EF9F27;
  --teal: #00C896;
  --ink: #2B2560;
  --ink-soft: #4A4570;
  --bg: #F6F4FE;
  --card: #FFFFFF;
  --line: rgba(83, 74, 183, 0.16);
  --radius: 18px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

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

.top { padding-block: clamp(20px, 3.5vh, 34px) 0; }

.wordmark { display: block; width: clamp(168px, 18vw, 220px); height: auto; }

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding-block: clamp(30px, 6vh, 64px) clamp(44px, 8vh, 88px);
}

/* caroiaj „plan de arhitect”, abia vizibil */
.hero::before {
  content: "";
  position: absolute;
  inset: -30px -8vw 0;
  background-image:
    linear-gradient(rgba(83, 74, 183, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 74, 183, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 55% 38%, #000 45%, transparent 98%);
  mask-image: radial-gradient(ellipse 80% 75% at 55% 38%, #000 45%, transparent 98%);
  pointer-events: none;
}

.hero-copy { position: relative; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(239, 159, 39, 0.22);
}

h1 {
  font-size: clamp(42px, 6.2vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.marker {
  position: relative;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 38 3, 82 3, 117 8' fill='none' stroke='%23EF9F27' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.24em;
  padding-bottom: 0.08em;
}

.lead {
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 450;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 30px;
}

/* ---------- formular ---------- */

.form-label {
  display: block;
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 12px;
}

#waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }

#waitlist input[type="email"] {
  flex: 1 1 240px;
  height: 56px;
  padding-inline: 22px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#waitlist input[type="email"]::placeholder { color: #9A94C4; }

#waitlist input[type="email"]:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(83, 74, 183, 0.14);
}

.btn {
  height: 56px;
  padding-inline: 28px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 650;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 22px -10px rgba(83, 74, 183, 0.55);
}

.btn:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 52ch;
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--violet);
  cursor: pointer;
}

.consent a { color: var(--violet); font-weight: 600; text-decoration-thickness: 1.5px; }

.form-status { margin-top: 12px; font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.form-status.err { color: #C2410C; }

.success[hidden] { display: none; }

.success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(0, 200, 150, 0.10);
  border: 1.5px solid rgba(0, 200, 150, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  max-width: 460px;
}

.success svg { flex-shrink: 0; margin-top: 2px; }
.success strong { font-weight: 700; }
.success small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- scena: macara + Gicu ---------- */

.hero-scene {
  position: relative;
  height: clamp(430px, 60vh, 630px);
}

.crane-wrap {
  position: absolute;
  bottom: 0;
  right: -6%;
  width: 80%;
  aspect-ratio: 787 / 1180;
  z-index: 1;
}

.crane-base { display: block; width: 100%; height: 100%; }

.crane-book {
  position: absolute;
  left: 0;
  top: 16.02%;
  width: 45.24%;
  height: auto;
  transform-origin: 57% 0%;
  filter: drop-shadow(0 12px 14px rgba(43, 37, 96, 0.16));
}

.gicu {
  position: absolute;
  left: 11%;
  bottom: -2px;
  width: 45%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 22px 26px rgba(43, 37, 96, 0.20));
}

@media (prefers-reduced-motion: no-preference) {
  .crane-book { animation: sway 5.4s ease-in-out infinite alternate; }

  @keyframes sway {
    from { transform: rotate(-2.3deg); }
    to   { transform: rotate(2.3deg); }
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  html.js body.ready .reveal { opacity: 1; transform: none; }

  html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
  html.js .reveal:nth-child(4) { transition-delay: 0.24s; }
  html.js .hero-scene.reveal { transition-delay: 0.2s; transition-duration: 0.9s; }

  html.js .reveal-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js .reveal-scroll.shown { opacity: 1; transform: none; }
}

/* ---------- banda de șantier ---------- */

.tape {
  height: 16px;
  margin-block: 0 clamp(40px, 7vh, 72px);
  background: repeating-linear-gradient(-45deg, var(--amber) 0 26px, var(--ink) 26px 52px);
  transform: rotate(-1.1deg) scaleX(1.04);
  box-shadow: 0 6px 18px -8px rgba(43, 37, 96, 0.4);
}

/* ---------- teasere ---------- */

.teasers { padding-bottom: clamp(48px, 8vh, 84px); }

.teasers h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 14px 30px -20px rgba(43, 37, 96, 0.22);
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(83, 74, 183, 0.10);
  margin: 0 auto 16px;
}

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- gdpr ---------- */

.gdpr { padding-bottom: clamp(48px, 8vh, 80px); }

.gdpr details {
  background: rgba(83, 74, 183, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  max-width: 720px;
}

.gdpr summary {
  font-weight: 650;
  cursor: pointer;
  color: var(--violet);
}

.gdpr p { margin-top: 12px; font-size: 15px; color: var(--ink-soft); max-width: 65ch; }
.gdpr a { color: var(--violet); font-weight: 600; }

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

footer { background: var(--ink); color: #EDEBFA; }

.foot { padding-block: clamp(36px, 6vh, 52px); }

.foot-lead { font-weight: 650; margin-bottom: 14px; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 1.5px solid rgba(237, 235, 250, 0.35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}

.social a svg { width: 17px; height: 17px; flex-shrink: 0; }

.social a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(237, 235, 250, 0.7); }

.legal { font-size: 13.5px; color: rgba(237, 235, 250, 0.62); }

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

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-copy { order: 1; text-align: left; }
  .hero-scene { order: 2; height: clamp(370px, 52vh, 480px); max-width: 460px; margin-inline: auto; width: 100%; }
  .crane-wrap { width: 70%; right: -3%; }
  .cards { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; }
}
