@font-face {
  font-family: "Frogie";
  src: url("./assets/fonts/Frogie-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --forest-ink: #0c110a;
  --forest-deep: #1c261a;
  --forest-muted: #6b7c66;
  --forest-surface: #ffffff;
  --peru-rojo: #e63946;
  --peru-crema: #f0e5d9;
  --peru-terracota: #d64550;
  --peru-sangre: #b8383f;
  --peru-melocoton: #fcd5ce;
  --page-bg: #fffbf5;
  --page-line: rgba(12, 17, 10, 0.08);
  --page-shadow: 6px 6px 0 var(--forest-ink);
  --card-radius: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  color: var(--forest-ink);
  background:
    radial-gradient(circle at top left, rgba(230, 57, 70, 0.14), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(214, 69, 80, 0.16), transparent 22%),
    linear-gradient(180deg, #fff9f2 0%, var(--peru-crema) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--page-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.34));
}

.topbar,
.hero,
.footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 2px solid var(--forest-ink);
  border-radius: 22px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 4px 4px 0 var(--forest-ink);
  backdrop-filter: blur(14px);
}

.brand-text {
  font-family: "Frogie", "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 1;
}

.brand-dot {
  margin-left: 2px;
  font-family: "Frogie", "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1;
  color: var(--peru-rojo);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  border: 2px solid var(--forest-ink);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 4px 4px 0 var(--forest-ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-led {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--peru-rojo);
  box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.14);
}

.hero {
  display: flex;
  align-items: stretch;
  min-height: auto;
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 3px solid var(--forest-ink);
  border-radius: 42px;
  min-height: clamp(420px, 68dvh, 680px);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at top right, rgba(230, 57, 70, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  overflow: hidden;
  backdrop-filter: blur(18px);
  box-shadow: var(--page-shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(12, 17, 10, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(252, 213, 206, 0.9), rgba(252, 213, 206, 0));
  pointer-events: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(252, 213, 206, 0.7);
  border: 2px solid rgba(12, 17, 10, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-family: "Frogie", "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(3.35rem, 7.2vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-title-accent {
  display: block;
  margin-top: 12px;
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--peru-rojo) 0%,
    var(--peru-terracota) 45%,
    #ff6b6b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 38rem;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(12, 17, 10, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--forest-ink);
  border-radius: 18px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--forest-ink);
}

.button-primary {
  background: var(--peru-rojo);
  color: #fff;
  box-shadow: 4px 4px 0 var(--forest-ink);
}

.button-secondary {
  background: #fff;
  box-shadow: 4px 4px 0 var(--forest-ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 2px solid rgba(12, 17, 10, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 2px 2px 0 rgba(12, 17, 10, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 12px));
  margin: 28px auto 0;
  overflow: hidden;
  border-top: 4px solid var(--peru-sangre);
  border-bottom: 4px solid var(--peru-sangre);
  background: var(--peru-rojo);
  box-shadow: 0 14px 32px rgba(184, 56, 63, 0.2);
  transform: rotate(-1deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 28px;
  padding: 18px 0;
  animation: ticker-scroll 24s linear infinite;
}

.ticker-track span {
  color: var(--peru-crema);
  font-family: "Frogie", "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 4px 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(12, 17, 10, 0.68);
}

.footer p {
  margin: 0;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero-panel {
    min-height: clamp(400px, 60dvh, 600px);
    padding: 32px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(3rem, 7.6vw, 5.8rem);
  }

  .hero-lead {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .page-shell {
    padding: 16px;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: auto;
    padding: 24px 22px;
    border-radius: 30px;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2.8rem, 9vw, 4.9rem);
    line-height: 0.98;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .brand,
  .status-pill,
  .hero-panel {
    box-shadow: 3px 3px 0 var(--forest-ink);
  }

  .hero-panel {
    border-radius: 26px;
    padding: 20px 18px;
    min-height: auto;
  }

  .eyebrow {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.3rem, 11vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .chips {
    gap: 10px;
    margin-top: 22px;
  }

  .chips li {
    width: 100%;
    text-align: center;
  }

  .ticker-track {
    padding: 14px 0;
    gap: 20px;
  }

  .ticker-track span {
    font-size: clamp(1.05rem, 7vw, 1.6rem);
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 12px;
    margin-bottom: 18px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }

  .brand-text,
  .brand-dot {
    font-size: 1.7rem;
  }

  .status-pill {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .hero-panel {
    padding: 18px 16px;
    border-width: 2px;
  }

  .hero-panel::before {
    inset: 10px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 11.5vw, 3rem);
    line-height: 1.02;
  }

  .button {
    min-height: 52px;
    padding: 0 16px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .chips {
    margin-top: 20px;
  }

  .chips li,
  .button {
    width: 100%;
  }

  .footer {
    align-items: center;
    text-align: center;
    padding-top: 22px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero {
    min-height: auto;
  }

  .hero-panel {
    padding-block: 30px;
  }
}

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

  .button,
  .ticker-track {
    transition: none;
    animation: none;
  }
}
