@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --bg: #050505;
  --orange: #ff6a00;
  --orange-soft: #ff8a2a;
  --text: #f2f2f2;
  --header-h: 110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: "Share Tech Mono", "Courier New", monospace;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    url("../images/pecue-bg.png")
    center center / cover no-repeat;
}

/*
  La imagen actual ya contiene algunos textos del mockup.
  Estas capas oscuras los reducen visualmente para que la navegación
  y el texto HTML sean los elementos principales.
*/
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.84) 0 116px, rgba(0,0,0,.18) 220px),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 38%, rgba(0,0,0,.12) 67%, rgba(0,0,0,.08) 100%);
}

.site-header {
  height: var(--header-h);
  padding: 0 clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255,106,0,.14);
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: .08em;
  font-size: clamp(28px, 3vw, 48px);
  white-space: nowrap;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 42px;
  border: 2px solid var(--orange);
  border-radius: 4px;
  font-size: 20px;
  box-shadow: 0 0 18px rgba(255,106,0,.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  padding: 16px 2px 14px;
  color: #e8e8e8;
  text-decoration: none;
  font-size: clamp(15px, 1.35vw, 21px);
  letter-spacing: .04em;
  transition: color .2s ease, text-shadow .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--orange);
  text-shadow: 0 0 12px rgba(255,106,0,.4);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--orange);
}

.hero__content {
  position: absolute;
  left: clamp(32px, 4.7vw, 78px);
  top: 50%;
  transform: translateY(-35%);
  max-width: min(720px, 58vw);
  padding: 20px 26px 24px 0;
}

.terminal-prefix {
  margin: 0 0 10px;
  color: var(--orange-soft);
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: .08em;
  opacity: .9;
}

.hero h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(46px, 5.2vw, 84px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: .01em;
  text-shadow:
    0 0 12px rgba(255,106,0,.16),
    0 2px 0 rgba(0,0,0,.8);
}

.tagline {
  margin: 28px 0 0;
  color: var(--orange-soft);
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 1.5;
}

.cursor {
  display: inline-block;
  width: .55em;
  height: 1em;
  margin-left: .24em;
  vertical-align: -.12em;
  background: var(--orange);
  animation: blink 1s steps(1) infinite;
}

.status-badge {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,106,0,.38);
  background: rgba(0,0,0,.55);
  color: var(--orange-soft);
  font-size: 13px;
  letter-spacing: .08em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,106,0,.45);
  background: rgba(0,0,0,.5);
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--orange);
}

.anchor-target {
  position: absolute;
  bottom: 0;
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (max-width: 980px) {
  :root {
    --header-h: 82px;
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand {
    font-size: 30px;
  }

  .brand__icon {
    width: 42px;
    height: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    z-index: 10;
    top: var(--header-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: rgba(0,0,0,.96);
    border-bottom: 1px solid rgba(255,106,0,.28);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 8px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .hero__content {
    left: 24px;
    right: 24px;
    top: 48%;
    max-width: 760px;
    transform: translateY(-24%);
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 66px);
  }

  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.88) 0 90px, rgba(0,0,0,.34) 210px),
      linear-gradient(90deg, rgba(0,0,0,.83), rgba(0,0,0,.4));
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: 63% center;
  }

  .hero__content {
    top: 44%;
  }

  .terminal-prefix {
    display: none;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .tagline {
    font-size: 16px;
  }

  .status-badge {
    left: 24px;
    right: auto;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor {
    animation: none;
  }
}
