:root {
  --lime: #b0f900;
  --lime-soft: rgba(176, 249, 0, 0.14);
  --ink: #060706;
  --panel: #0f100f;
  --panel-strong: #050605;
  --line: rgba(255, 255, 255, 0.15);
  --text: #f5f5f0;
  --muted: #b9bcb4;
  --muted-2: #767b72;
  --danger: #ff6969;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 6, 0.72), rgba(6, 7, 6, 0.94) 56%, #060706),
    url("assets/campinas-hero-bg.jpg") center top / cover fixed no-repeat,
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: rgba(7, 8, 7, 0.2);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.9), rgba(5, 6, 5, 0.62) 44%, rgba(5, 6, 5, 0.88)),
    linear-gradient(180deg, rgba(5, 6, 5, 0.2), rgba(5, 6, 5, 0.96)),
    url("assets/campinas-hero-bg.jpg") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(6, 7, 6, 0), #060706);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: min(220px, 44vw);
  height: auto;
  filter: invert(1) brightness(1.18);
}

.topbar__date,
.hero__facts span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid rgba(176, 249, 0, 0.55);
  border-radius: 8px;
  background: rgba(10, 12, 9, 0.65);
  color: var(--lime);
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar__date {
  padding: 0 18px;
}

.topbar__date svg,
.hero__facts svg {
  width: 21px;
  height: 21px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 0;
  padding-bottom: 88px;
}

.hero__copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 610px;
  color: #fff;
  font-size: 58px;
  line-height: 1.04;
  font-weight: 950;
  text-transform: uppercase;
}

h1 span {
  color: var(--lime);
}

.hero__text {
  max-width: 520px;
  margin-bottom: 38px;
  color: #f0f0ea;
  font-size: 17px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts span {
  padding: 0 15px;
  color: #fff;
}

.hero__facts span:first-child,
.hero__facts svg {
  color: var(--lime);
}

.signup {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 390px);
}

.phone__bezel {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 46px;
  background:
    linear-gradient(145deg, #20251e, #020302 34%, #111611 68%, #050605),
    #050605;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: phoneBuzz 6.5s ease-in-out 1.4s infinite;
}

.phone__notch {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 104px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  background: #030403;
  transform: translateX(-50%);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(176, 249, 0, 0.16);
  border-radius: 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(176, 249, 0, 0.14), transparent 28%),
    linear-gradient(180deg, #091008, #050705 48%, #071006);
}

.phone__status {
  display: flex;
  justify-content: space-between;
  padding: 18px 26px 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 850;
}

.phone__contact {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 5, 4, 0.78);
}

.phone__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--lime);
  color: #050605;
  font-size: 21px;
  font-weight: 950;
}

.phone__contact strong,
.phone__contact span {
  display: block;
}

.phone__contact strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.05;
}

.phone__contact span {
  margin-top: 3px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.chat__messages {
  flex: 1;
  min-height: 420px;
  padding: 16px 14px 18px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 9px 0;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  white-space: pre-line;
}

.bubble--bot {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 6px;
  background: #f2f5ed;
  color: #11150f;
}

.bubble--user {
  margin-left: auto;
  border-bottom-right-radius: 6px;
  background: var(--lime);
  color: #101207;
  font-weight: 800;
}

.bubble--error {
  border-color: rgba(255, 105, 105, 0.35);
  color: #ffc1c1;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 56px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes phoneBuzz {
  0%, 6%, 100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  1% {
    transform: translate3d(-1px, 0, 0) rotate(-0.25deg);
  }
  2% {
    transform: translate3d(1px, 0, 0) rotate(0.25deg);
  }
  3% {
    transform: translate3d(-1px, 1px, 0) rotate(-0.2deg);
  }
  4% {
    transform: translate3d(1px, -1px, 0) rotate(0.2deg);
  }
  5% {
    transform: translate3d(0, 0, 0) rotate(0);
  }
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.choice-grid button {
  min-height: 42px;
  border: 1px solid rgba(176, 249, 0, 0.42);
  border-radius: 13px;
  background: #fff;
  color: #0a0c07;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.choice-grid button:hover,
.choice-grid button:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: #0a0c07;
  outline: none;
}

.chat__composer {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 9px;
  padding: 12px 13px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 5, 4, 0.84);
}

.chat__composer input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #f7f8f3;
  color: #11150f;
  font: inherit;
  font-size: 13px;
  padding: 0 15px;
  outline: none;
}

.chat__composer input::placeholder {
  color: #73776f;
}

.chat__composer input:focus {
  border-color: var(--lime);
}

.chat__composer button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #090a08;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.chat__composer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat__privacy {
  margin: 12px 0 0;
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
}

.program,
.venue {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.program {
  padding: 40px 0 28px;
}

.section-title h2,
.venue h2 {
  margin-bottom: 22px;
  color: #fff;
  font-size: 34px;
  line-height: 1.12;
  text-transform: uppercase;
}

.section-title h2 span,
.venue .eyebrow {
  color: var(--lime);
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  --program-image: url("assets/campinas-hero-bg.jpg");
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(17, 18, 16, 0.58), rgba(7, 8, 6, 0.96)),
    var(--program-image) center / cover no-repeat;
  padding: 22px;
  overflow: hidden;
}

.program-card--campeonato {
  --program-image: url("assets/card-campeonato.png");
}

.program-card--samba {
  --program-image: url("assets/card-samba.png");
}

.program-card--telao {
  --program-image: url("assets/card-telao.jpg");
}

.program-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(176, 249, 0, 0.35);
  border-radius: 8px;
  color: var(--lime);
}

.program-card__icon svg {
  width: 25px;
  height: 25px;
}

.program-card h3 {
  margin-bottom: 8px;
  font-size: 15px;
  text-transform: uppercase;
}

.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.venue {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 0 70px;
}

.venue__copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111311;
  padding: 28px;
}

.venue__copy ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.venue__copy li {
  position: relative;
  padding-left: 26px;
}

.venue__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--lime);
  border-radius: 999px;
}

.venue__image {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.08), rgba(5, 6, 5, 0.38)),
    url("assets/campinas-hero-bg.jpg") right bottom / cover no-repeat;
}

@media (max-width: 980px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(5, 6, 5, 0.76), rgba(5, 6, 5, 0.97)),
      url("assets/campinas-hero-bg.jpg") 64% top / cover no-repeat;
  }

  .topbar,
  .hero__inner,
  .program,
  .venue {
    width: min(100% - 28px, 640px);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 10px;
  }

  h1 {
    font-size: 40px;
  }

  .hero__text {
    font-size: 15px;
  }

  .chat__messages {
    min-height: 360px;
  }

  .program__grid,
  .venue {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: 22px;
  }

  .brand__logo {
    width: min(182px, 52vw);
  }

  .topbar__date {
    min-height: 38px;
    padding: 0 12px;
  }

  .hero__inner {
    padding-bottom: 54px;
  }

  h1 {
    font-size: 34px;
  }

  .hero__facts span {
    width: 100%;
  }

  .chat__messages {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat__composer {
    grid-template-columns: 1fr 68px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .phone__screen {
    min-height: 640px;
  }

  .section-title h2,
  .venue h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone__bezel,
  .typing span {
    animation: none;
  }
}
