/* Theme Name: MARKETINGAN
   Author: MARKETINGAN S.L.
   Support: https://marketingansl.com / info@marketingansl.com
   Description: Coming-soon stub for IT marketing — citrus signal light theme
*/

:root {
  --ink: #16140f;
  --forest: #0f3d2e;
  --citrus: #c6f000;
  --citrus-deep: #9bc400;
  --paper: #f4f2ec;
  --wash: #e4ebe4;
  --panel: #ffffff;
  --line: #cfd8cf;
  --muted: #5c655c;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--forest);
  text-decoration: none;
}

a:hover {
  color: #176348;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(198, 240, 0, 0.22), transparent 42%),
    linear-gradient(320deg, rgba(15, 61, 46, 0.08), transparent 50%);
}

.preloader__inner {
  position: relative;
  width: min(260px, 72vw);
  text-align: center;
}

.preloader__mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.preloader__track {
  height: 3px;
  background: var(--line);
  overflow: hidden;
  border-radius: 2px;
}

.preloader__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--forest), var(--citrus));
  animation: load 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 22%, rgba(198, 240, 0, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 88%, rgba(15, 61, 46, 0.1), transparent 46%),
    linear-gradient(165deg, var(--wash), var(--paper) 55%, #efece4);
}

.atmosphere__orb {
  position: absolute;
  top: 12%;
  right: 10%;
  width: min(42vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(198, 240, 0, 0.55), rgba(198, 240, 0, 0.08) 55%, transparent 70%);
  animation: float-orb 9s ease-in-out infinite;
}

.atmosphere__frame {
  position: absolute;
  top: 10%;
  right: 8%;
  width: min(46vw, 420px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(15, 61, 46, 0.22);
  animation: spin-frame 48s linear infinite;
}

.atmosphere__bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  display: flex;
  align-items: flex-end;
  gap: 0.55vw;
  padding: 0 4vw 0;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, black 40%);
}

.atmosphere__bars span {
  flex: 1;
  min-width: 0;
  height: 18%;
  background: linear-gradient(180deg, var(--citrus), rgba(15, 61, 46, 0.35));
  transform-origin: bottom center;
  animation: rise-bar 2.8s ease-in-out infinite;
}

.atmosphere__bars span:nth-child(odd) {
  animation-duration: 3.4s;
}

.atmosphere__bars span:nth-child(3n) {
  animation-duration: 2.2s;
  background: linear-gradient(180deg, rgba(15, 61, 46, 0.55), rgba(15, 61, 46, 0.12));
}

.atmosphere__bars span:nth-child(1) { animation-delay: 0s; }
.atmosphere__bars span:nth-child(2) { animation-delay: 0.12s; }
.atmosphere__bars span:nth-child(3) { animation-delay: 0.24s; }
.atmosphere__bars span:nth-child(4) { animation-delay: 0.08s; }
.atmosphere__bars span:nth-child(5) { animation-delay: 0.36s; }
.atmosphere__bars span:nth-child(6) { animation-delay: 0.18s; }
.atmosphere__bars span:nth-child(7) { animation-delay: 0.42s; }
.atmosphere__bars span:nth-child(8) { animation-delay: 0.05s; }
.atmosphere__bars span:nth-child(9) { animation-delay: 0.3s; }
.atmosphere__bars span:nth-child(10) { animation-delay: 0.15s; }
.atmosphere__bars span:nth-child(11) { animation-delay: 0.48s; }
.atmosphere__bars span:nth-child(12) { animation-delay: 0.22s; }
.atmosphere__bars span:nth-child(13) { animation-delay: 0.1s; }
.atmosphere__bars span:nth-child(14) { animation-delay: 0.38s; }
.atmosphere__bars span:nth-child(15) { animation-delay: 0.28s; }

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-18px, 22px) scale(1.06);
  }
}

@keyframes spin-frame {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise-bar {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.top,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 6vw 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.brand img {
  display: block;
}

.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status__tick {
  width: 10px;
  height: 10px;
  background: var(--citrus);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: diamond-spin 2.4s linear infinite;
}

@keyframes diamond-spin {
  to {
    transform: rotate(360deg);
  }
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8vh 6vw 6vh;
  max-width: 56rem;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--forest);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.reveal__word {
  display: inline-block;
  background: linear-gradient(105deg, var(--ink) 40%, var(--forest) 70%, var(--citrus-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 32rem;
}

.cta {
  display: inline-flex;
  padding: 0.9rem 1.4rem;
  background: var(--ink);
  color: var(--citrus);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--forest);
  color: var(--citrus);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.reveal--late {
  animation-delay: 0.55s;
}

.reveal--later {
  animation-delay: 0.75s;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: end;
  padding: 0 6vw 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__legal {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.foot p {
  margin: 0.15rem 0;
}

.foot__nav {
  display: flex;
  gap: 1.25rem;
}

.cookie {
  position: fixed;
  z-index: 30;
  left: 1.25rem;
  bottom: 1.25rem;
  width: min(24rem, calc(100vw - 2.5rem));
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  box-shadow: 0 12px 40px rgba(22, 20, 15, 0.08);
}

.cookie p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  background: var(--ink);
  color: var(--citrus);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 999px;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.legal {
  max-width: 42rem;
  padding: 6vh 6vw 8vh;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: none;
  color: var(--ink);
  -webkit-text-fill-color: initial;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--forest);
}

@media (max-width: 720px) {
  .top {
    padding-top: 1rem;
  }

  .status {
    font-size: 0.58rem;
  }

  .atmosphere__frame {
    opacity: 0.5;
  }

  .foot {
    align-items: start;
    flex-direction: column;
  }

  .cookie {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__bar,
  .atmosphere__orb,
  .atmosphere__frame,
  .atmosphere__bars span,
  .status__tick,
  .reveal {
    animation: none;
  }

  .preloader__bar {
    width: 100%;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
