/*
 * NEO ENERGY — standalone "Under Construction" page.
 *
 * A dependency-free port of the /under-construction route from the main
 * Next.js site: same design tokens, type scale, artwork treatment and
 * layout, written as plain CSS so it can be dropped on any host.
 */

/* ---------- Design tokens (mirrors the app's globals.css) ---------- */
:root {
  --ink: #0a0e14;
  --ion: #2e8fff;
  --white: #ffffff;
  --muted: #5b6472;
  --border: rgba(10, 14, 20, 0.1);

  --font-display: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-engineered: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.stage__inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  text-align: center;
}

.top {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---------- Logo ---------- */
.logo {
  height: 3rem;
  width: auto;
}

/* ---------- Headline ---------- */
.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headline h1,
.headline__accent {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}

.headline h1 {
  letter-spacing: 0.14em;
  color: var(--ink);
}

/* Slightly tighter tracking so the longer word optically matches the
   width of the one above it. */
.headline__accent {
  letter-spacing: 0.03em;
  color: var(--ion);
}

/* ---------- Intro copy ---------- */
.intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(10, 14, 20, 0.8);
  text-wrap: balance;
}

/* ---------- Capability strip ---------- */
.features {
  display: grid;
  width: 100%;
  max-width: 42rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.25rem;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.feature__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ion);
}

.feature__label {
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(10, 14, 20, 0.85);
}

/* ---------- Artwork ---------- */
.artwork {
  position: relative;
  flex-shrink: 0;
  width: calc(100% + 3rem);
  margin-inline: -1.5rem;
  height: 13rem;
  pointer-events: none;
}

.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artwork__fade {
  position: absolute;
  left: 0;
  right: 0;
}

/* Dissolves the render's top edge into the white page. */
.artwork__fade--top {
  top: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.85) 35%,
    rgba(255, 255, 255, 0.35) 70%,
    transparent 100%
  );
}

/* …and the same in reverse at the foot, so the floor melts away instead of
   stopping on a hard line above the closing copy. */
.artwork__fade--bottom {
  bottom: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 30%,
    rgba(255, 255, 255, 0.6) 60%,
    transparent 100%
  );
}

/* ---------- Closing block ---------- */
/* Lifted up into the render's faded band so the two read as one scene. */
.closing {
  position: relative;
  z-index: 10;
  margin-top: -2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.closing__text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(10, 14, 20, 0.8);
  text-wrap: balance;
}

/* ---------- Button (matches the site's primary button) ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 0.125rem;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s var(--ease-engineered),
    border-color 0.3s var(--ease-engineered),
    box-shadow 0.3s var(--ease-engineered);
}

.button:hover {
  border-color: var(--ion);
  color: var(--ion);
  box-shadow: 0 0 28px rgba(46, 143, 255, 0.26);
}

.button:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 2px;
}

/* ---------- Contact bar ---------- */
.contact {
  background: var(--ink);
  color: var(--white);
}

.contact__inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.contact__row {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8rem;
  color: var(--white);
  text-decoration: none;
}

.contact__item--link {
  transition: color 0.3s var(--ease-engineered);
}

.contact__item--link:hover {
  color: var(--ion);
}

.contact__item--link:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 2px;
}

.contact__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--ion);
}

.contact__rule {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.contact__legal {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.3s var(--ease-engineered);
}

.whatsapp:hover {
  transform: scale(1.1);
}

.whatsapp:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 4px;
}

.whatsapp__halo {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25d366;
  opacity: 0.6;
  animation: halo 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.whatsapp__icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
}

@keyframes halo {
  75%,
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* ---------- Entrance ---------- */
.reveal {
  opacity: 0;
  animation: reveal 1s var(--ease-engineered) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
  }

  /* Hairline dividers between the four items, wider layouts only. */
  .feature + .feature {
    border-left: 1px solid rgba(10, 14, 20, 0.15);
  }

  .artwork {
    height: 16rem;
  }

  .contact__row {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .stage__inner {
    gap: 1.5rem;
    padding: 2rem 2.5rem;
  }

  .top {
    gap: 1.25rem;
  }

  .logo {
    height: 3.5rem;
  }

  .intro {
    font-size: 1.125rem;
  }

  .feature__label {
    font-size: 0.72rem;
  }

  .artwork {
    width: calc(100% + 5rem);
    margin-inline: -2.5rem;
    height: 17rem;
  }

  .closing {
    margin-top: -3.5rem;
  }

  .closing__text {
    font-size: 1rem;
  }

  .button {
    font-size: 0.95rem;
  }

  .contact__inner {
    padding: 1.5rem 2.5rem;
  }

  .whatsapp {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (min-width: 1280px) {
  .artwork {
    height: 19rem;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    animation: none;
  }

  .whatsapp__halo {
    animation: none;
  }

  .whatsapp,
  .button,
  .contact__item--link {
    transition: none;
  }
}
