/*
  FaroWatch minimal CLI landing page
  - Cambia textos y colores principales en config.js
  - Este archivo controla layout/estilo base
*/

:root {
  --bg: #050807;
  --panel: rgba(0, 0, 0, 0.72);
  --panel-soft: rgba(12, 18, 16, 0.72);
  --border: rgba(52, 211, 153, 0.26);
  --text: #d4d4d8;
  --muted: #71717a;
  --green: #34d399;
  --cyan: #67e8f9;
  --blue: #93c5fd;
  --red: #fb7185;
  --yellow: #facc15;

  /* Fuente principal tipo terminal. El navegador usa la primera disponible. */
  --font: "Courier New", Consolas, "Liberation Mono", monospace;

  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(52, 211, 153, 0.18), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(103, 232, 249, 0.10), transparent 26%),
    var(--bg);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.48) 50%);
  background-size: 100% 4px;
  z-index: -1;
}

.screen {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.shell {
  width: min(var(--max-width), 100%);
  display: grid;
  gap: 18px;
  padding-block: 24px;
}

/* Título superior */
.hero-title {
  text-align: center;
  animation: fadeIn 0.7s ease both;
}

.hero-title__kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: clamp(11px, 2vw, 13px);
  letter-spacing: 0.08em;
}

.hero-title__row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.hero-title__logo {
  width: clamp(42px, 8vw, 78px);
  height: clamp(42px, 8vw, 78px);
  object-fit: contain;
  vertical-align: baseline;
  transform: translateY(10px);
  filter:
    drop-shadow(0 0 18px rgba(52, 211, 153, 0.55))
    drop-shadow(0 0 42px rgba(103, 232, 249, 0.22));
}

.hero-title__main {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.hero-title__subtitle {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(12px, 2vw, 15px);
  line-height: 1.6;
}

/* Ventana principal tipo consola */
.console {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.48),
    0 0 80px rgba(52, 211, 153, 0.13);
  overflow: visible;
}

.console__header {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.7);
}

.console__dots {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--red { background: var(--red); }
.dot--yellow { background: var(--yellow); }
.dot--green { background: var(--green); }

.console__path {
  color: var(--muted);
  font-size: clamp(11px, 2vw, 13px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console__body {
  padding: clamp(12px, 3vh, 26px) clamp(14px, 4vw, 30px);
}

.terminal-lines {
  display: grid;
  gap: 11px;
}

.prompt {
  color: var(--green);
  font-size: clamp(12px, 2.2vw, 15px);
  line-height: 1.5;
  word-break: break-word;
}

.prompt--idle {
  margin-top: 11px;
}

.prompt__user {
  color: var(--cyan);
}

.prompt__separator,
.prompt__dollar {
  color: var(--muted);
}

.prompt__path {
  color: var(--blue);
}

.prompt__text {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 4px;
  background: var(--green);
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

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

/* Mission log */
.mission {
  margin: 0 clamp(14px, 4vw, 30px) clamp(10px, 2vh, 18px);
  padding: clamp(12px, 2.5vh, 18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(52, 211, 153, 0.04);
}

.mission__title,
.commands__label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: clamp(12px, 2vw, 14px);
}

.mission__text {
  margin: 0;
  color: var(--text);
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.7;
}

/* Location */
.location {
  margin: 0 clamp(14px, 4vw, 30px) clamp(10px, 2vh, 18px);
  padding: clamp(12px, 2.5vh, 18px);
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 18px;
  background: rgba(103, 232, 249, 0.035);
}

.location__title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: clamp(12px, 2vw, 14px);
}

.location__text {
  margin: 0;
  color: var(--text);
  font-size: clamp(12px, 2vw, 14px);
  line-height: 1.6;
}

.location__separator {
  color: var(--muted);
}

/* Comandos / servicios */
.commands {
  margin: clamp(18px, 3vh, 28px) clamp(14px, 4vw, 30px) clamp(22px, 4vh, 36px);
  text-align: center;
  font-weight: bold;
}

.commands__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}



.command-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(360px, 100%);
  min-height: 34px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid rgba(103, 171, 249, 0.28);
  border-radius: 999px;
  background: rgba(103, 244, 249, 0.06);
  font-family: "Courier New", monospace;
  font-size: clamp(11px, 2vw, 14px);
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: bold;
}
@media (max-width: 620px) {
  .command-pill {
    width: min(360px, 100%);
    justify-content: center;
    text-align: center;
  }
}
/* Pantallas angostas */
@media (max-width: 620px) {
  .screen {
    padding: 14px;
    place-items: start center;
  }

  .shell {
    gap: 14px;
    padding-block: 12px;
  }

  .console {
    border-radius: 18px;
  }

  .commands__list {
    display: grid;
  }

  .command-pill {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-title__row {
    gap: 6px;
  }

  .hero-title__logo {
    width: 44px;
    height: 44px;
    transform: translateY(7px);
  }

  .hero-title__subtitle {
    margin-top: 10px;
  }
}

/* Pantallas bajas: compacta el contenido y permite ver todo con scroll normal */
@media (max-height: 720px) {
  .screen {
    place-items: start center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .shell {
    gap: 12px;
    padding-block: 0;
  }

  .console__header {
    height: 40px;
  }

  .console__body {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .terminal-lines {
    gap: 6px;
  }

  .prompt {
    font-size: 12px;
    line-height: 1.35;
  }

  .prompt--idle {
    margin-top: 6px;
  }

  .hero-title__kicker {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .hero-title__main {
    font-size: clamp(28px, 6vh, 46px);
  }

  .hero-title__subtitle {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-title__logo {
    width: 42px;
    height: 42px;
    transform: translateY(6px);
  }

  .mission,
  .location {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .mission__title,
  .commands__label,
  .location__title {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .mission__text,
  .location__text {
    font-size: 12px;
    line-height: 1.45;
  }

  .commands {
    margin-bottom: 14px;
  }

  .command-pill {
    min-height: 28px;
    font-size: 11px;
    padding: 0 9px;
  }
}

@media (max-height: 600px) {
  .hero-title__subtitle {
    display: none;
  }

  .hero-title__kicker {
    display: none;
  }

  .hero-title__logo {
    width: 34px;
    height: 34px;
    transform: translateY(5px);
  }

  .console__header {
    height: 36px;
  }

  .console__body {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .prompt {
    font-size: 11px;
    line-height: 1.25;
  }

  .terminal-lines {
    gap: 4px;
  }
}
