/* ==========================================================================
   Lideratech — página de espera
   Static build, no bundler. Tokens first, then components.
   ========================================================================== */

:root {
  /* Color */
  --color-ink: #07070c;
  --color-ink-soft: #10101c;
  --color-cream: #f4efe6;
  --color-cream-dim: rgba(244, 239, 230, 0.62);
  --color-amber: #e8b04b;
  --color-amber-soft: rgba(232, 176, 75, 0.16);
  --color-line: rgba(244, 239, 230, 0.14);
  --color-constellation: rgba(244, 239, 230, 0.10);
  --color-constellation-dot: rgba(232, 176, 75, 0.55);

  /* Type */
  --font-display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --text-display: clamp(38px, 5.4vw, 82px);
  --text-lead: 17px;
  --text-meta: 12px;

  /* Space */
  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 40px;
  --space-lg: 56px;
  --space-lead: 34px;

  /* Shape */
  --radius-pill: 999px;
  --duration-quick: 0.2s;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Stage: the whole viewport is the poster
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-md) var(--space-lg);
  isolation: isolate;
}

/* The warm light opening in the dark */
.stage__aura {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 120vh;
  z-index: -2;
  background:
    radial-gradient(48% 42% at 62% 38%, rgba(232, 176, 75, 0.20), transparent 70%),
    radial-gradient(60% 50% at 22% 68%, rgba(96, 86, 190, 0.22), transparent 72%);
  filter: blur(10px);
  animation: aura-breathe 18s ease-in-out infinite alternate;
}

@keyframes aura-breathe {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate3d(-2%, 2%, 0) scale(1.06);
    opacity: 1;
  }
}

/* Film grain: the texture of what is not visible yet */
.stage__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.42'/></svg>");
}

/* Constellation: a network that does not have a name yet */
.stage__constellation {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 0 4px var(--color-amber-soft), 0 0 18px rgba(232, 176, 75, 0.7);
}

.site-header__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cream-dim);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  align-content: center;
  max-width: 1080px;
  padding: 4vh 0;
  animation: hero-enter 900ms var(--ease-standard) both;
}

/* La frase entra despacio, como una luz que se enciende */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow {
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.hero__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__title-line {
  display: block;
}

.hero__title-part--quiet {
  color: var(--color-cream-dim);
}

.hero__title-part--bright {
  position: relative;
  display: inline-block;
  color: var(--color-cream);
}

.hero__title-part--bright::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 2px;
  background: linear-gradient(90deg, var(--color-amber), rgba(232, 176, 75, 0));
}

.hero__lead {
  margin: var(--space-lead) 0 0;
  max-width: 46ch;
  font-size: var(--text-lead);
  line-height: 1.65;
  color: var(--color-cream-dim);
}

.hero__lead strong {
  color: var(--color-cream);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  border-top: 1px solid var(--color-line);
  padding-top: 22px;
}

.site-footer__signature {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  color: var(--color-cream-dim);
}

.domain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  letter-spacing: 0.14em;
  color: var(--color-cream);
  text-decoration: none;
  transition: border-color var(--duration-quick) ease, background-color var(--duration-quick) ease;
}

.domain-link:hover {
  border-color: var(--color-amber);
  background: var(--color-amber-soft);
}

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

/* --------------------------------------------------------------------------
   Narrow screens
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .stage {
    padding: 28px 22px;
  }

  .site-header__status {
    display: none;
  }

  .hero__title {
    max-width: 100%;
  }

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

/* --------------------------------------------------------------------------
   Reduced motion: keep the page fully readable without animation
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .stage__aura {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
