/* ============================================================
   Proyecto Lucas — Landing Page
   Construction zone theme · Soft pastel palette
   ============================================================ */

:root {
  --cream:       #F4F1EE;
  --cream-dark:  #EDE9E4;
  --blue:        #BADDFF;
  --blue-mid:    #8EC5F8;
  --blue-deep:   #5BA8EE;
  --yellow:      #FFE9A1;
  --yellow-warm: #F5CC4A;
  --dark:        #2D2926;
  --muted:       #8A847E;
  --line:        rgba(45, 41, 38, 0.09);
  --white:       #FFFFFF;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   GRAIN TEXTURE
   ============================================================ */

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

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50%       { transform: translateY(-16px) rotate(0.6deg); }
}
@keyframes growDown {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  55%       { transform: translateY(10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 204, 74, 0.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 7px rgba(245, 204, 74, 0); }
}
@keyframes dust {
  0%   { opacity: 0.7; transform: scale(1) translate(0, 0); }
  100% { opacity: 0;   transform: scale(3) translate(12px, -28px); }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 0.8s ease both;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 241, 238, 0.80);
  border-bottom: 1px solid rgba(186, 221, 255, 0.35);
}

.site-header__brand {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none;
  opacity: 0.55;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.site-header__brand:hover { opacity: 1; }

.site-header__access {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  background: var(--blue);
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(186, 221, 255, 0.5);
}
.site-header__access:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(142, 197, 248, 0.55);
}
.site-header__access:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

/* Blueprint dot grid — full hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(186, 221, 255, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Stripe columns — right half */
.hero__stripes {
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  display: flex;
  pointer-events: none;
  z-index: 0;
}

.hero__stripe-col {
  flex: 1;
  height: 100%;
  background: var(--blue);
  opacity: 0.38;
}
.hero__stripe-col:nth-child(even) {
  background: transparent;
  opacity: 1;
}

/* Fade stripes out on left edge */
.hero__stripes::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, var(--cream), transparent);
  z-index: 1;
}

/* Fade stripes at top and bottom */
.hero__stripes::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--cream) 0%, transparent 12%, transparent 88%, var(--cream) 100%);
  z-index: 1;
}

/* Inner layout */
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 3rem 5rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 100svh;
}

/* ── Left: text content ── */
.hero__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
  animation: fadeUp 0.9s 0.15s ease both;
}

/* CAUTION badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--yellow);
  padding: 0.5rem 0.95rem;
  border-radius: 5px;
  border: 1.5px solid rgba(45, 41, 38, 0.12);
  box-shadow: 3px 3px 0 rgba(45, 41, 38, 0.08);
}
.badge__icon {
  flex-shrink: 0;
  opacity: 0.75;
}

/* Title block */
.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  color: var(--dark);
  opacity: 0.38;
  margin-bottom: 0.1rem;
  letter-spacing: 0.02em;
}

.hero__name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--dark);
  text-shadow:
    5px 6px 0 rgba(255, 233, 161, 0.75),
    0  24px 60px rgba(45, 41, 38, 0.05);
}

.hero__tagline {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 320px;
}

/* Status line */
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta em {
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--dark);
}
.hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-warm);
  flex-shrink: 0;
  animation: pulse 2.8s ease-in-out infinite;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1.5px solid rgba(186, 221, 255, 0.6);
  border-radius: 12px;
  padding: 0.65rem 1.1rem;
  min-width: 68px;
  box-shadow:
    0 2px 0 rgba(186, 221, 255, 0.5),
    0 4px 16px rgba(186, 221, 255, 0.2);
}
.countdown__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.countdown__label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.countdown__sep {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--muted);
  opacity: 0.25;
  line-height: 1;
  padding-bottom: 0.9rem;
}

/* ── Right: excavator ── */
.hero__visual {
  flex: 1 1 46%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2rem;
  animation: fadeIn 0.8s 0.45s ease both;
}
.hero__excavator-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero__excavator {
  width: 100%;
  height: auto;
  display: block;
  animation: float 4.2s ease-in-out infinite;
  /*
   * Shape-following glow: drop-shadow traces the PNG alpha channel,
   * so the glow hugs the excavator outline and moves with the float animation.
   * Three cream passes at increasing blur = tight halo → soft ambient glow.
   */
  filter:
    saturate(1.18)
    /*drop-shadow(0  0  16px rgba(255, 255, 255, 1.00))*/
    drop-shadow(0  0  38px rgba(244, 241, 238, 0.92))
    drop-shadow(0  0  72px rgba(244, 241, 238, 0.62))
    drop-shadow(0 22px 30px rgba(45, 41, 38, 0.17))
    drop-shadow(0  5px  8px rgba(45, 41, 38, 0.10));
}
.hero__dust {
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: rgba(186, 221, 255, 0.55);
  animation: dust ease-out infinite;
}
.hero__dust.dust--1 { width: 22px; height: 22px; left: 14%; animation-duration: 2.3s; animation-delay: 0.1s; }
.hero__dust.dust--2 { width: 15px; height: 15px; left: 22%; animation-duration: 1.9s; animation-delay: 0.8s; }
.hero__dust.dust--3 { width: 18px; height: 18px; left: 9%;  animation-duration: 2.7s; animation-delay: 1.5s; }

.hero__ground {
  width: 75%;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(186, 221, 255, 0.6), transparent);
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.15;
  animation: fadeIn 1s 2s ease both;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: var(--dark);
  transform-origin: top center;
  animation: growDown 0.8s 2s ease both, nudge 3s 3.2s ease-in-out infinite;
}

/* ============================================================
   CONSTRUCTION TAPE DIVIDER
   ============================================================ */

.caution-tape {
  width: 100%;
  height: 7px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow)     0px, var(--yellow)     10px,
    rgba(45,41,38,.9) 10px, rgba(45,41,38,.9) 14px
  );
  opacity: 0.55;
}

/* ============================================================
   REGISTRY
   ============================================================ */

.registry {
  position: relative;
  padding: 7rem 1.5rem 8rem;
  background: var(--cream-dark);
  overflow: hidden;
}

/* Subtle dot grid */
.registry::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(186, 221, 255, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header__eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.section-header__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 1.1rem;
  color: var(--dark);
}
.section-header__body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

/* Registry cards */
.registry__grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rcard {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border-radius: 18px;
  border: 1.5px solid rgba(186, 221, 255, 0.45);
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(186, 221, 255, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(186, 221, 255, 0.4), 0 2px 0 rgba(186, 221, 255, 0.4);
  border-color: var(--blue-mid);
}
.rcard:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
  border-radius: 18px;
}

.rcard__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(186, 221, 255, 0.25);
  border-radius: 14px;
  color: var(--blue-deep);
  flex-shrink: 0;
}
.rcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.rcard__store {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
}
.rcard__desc {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.rcard__action {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.rcard:hover .rcard__action {
  color: var(--dark);
  transform: translateX(4px);
}

/* Scroll reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

/* Water-bottle-strip-style band */
.footer__strip {
  height: 22px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue)  0px, var(--blue)  44px,
    var(--cream) 44px, var(--cream) 88px
  );
  opacity: 0.55;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem 1.5rem;
}

.footer__excav {
  opacity: 0.65;
  filter:
    saturate(1.18)
    drop-shadow(0 6px 12px rgba(186, 221, 255, 0.35));
}
.footer__excav--flip {
  transform: scaleX(-1);
}

.footer__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer__tagline {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--dark);
  opacity: 0.5;
  line-height: 1.4;
}
.footer__project {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.footer__access {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0 2rem 3.5rem;
  transition: color 0.2s;
}
.footer__access:hover { color: var(--dark); }
.footer__access:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .hero__inner {
    flex-direction: column-reverse;
    padding: 7rem 1.5rem 4rem;
    gap: 1rem;
    min-height: 100svh;
    justify-content: center;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }
  .hero__tagline { max-width: 100%; }

  .hero__visual {
    align-items: center;
    padding-bottom: 0;
  }
  .hero__excavator-wrap { max-width: 260px; }

  .hero__stripes {
    width: 100%;
    height: 40%;
    top: 0;
  }
  .hero__stripes::before {
    width: 100%;
    background: linear-gradient(to bottom, transparent, var(--cream));
  }

  .countdown { gap: 0.4rem; }
  .countdown__item { min-width: 56px; padding: 0.5rem 0.75rem; }
  .countdown__num { font-size: 1.7rem; }

  .footer__inner { gap: 1.25rem; }
  .footer__excav { width: 64px; }
}

@media (min-width: 1200px) {
  .hero__inner { padding: 8rem 4rem 5rem; gap: 6rem; }
  .registry { padding: 9rem 2rem 10rem; }
}
