:root {
  --bg: #060706;
  --panel: rgba(14, 15, 14, 0.78);
  --panel-strong: rgba(20, 20, 18, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.58);
  --accent: #ff693f;
  --accent-hot: #ff3f81;
  --good: #54d18d;
  --warn: #ffb347;
  --danger: #ff7b5b;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --font-ui: "Inter", "SF Pro Display", "SF Pro Text", "Avenir Next", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 105, 63, 0.12) 0, rgba(6, 7, 6, 0) 420px),
    linear-gradient(180deg, #060706 0, #0b0a0b 48%, #050605 100%);
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.86);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 84px 18px 132px;
  isolation: isolate;
}

.hero-image,
.hero-placeholder,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-placeholder {
  z-index: -4;
  background:
    linear-gradient(145deg, rgba(244, 109, 82, 0.72) 0%, rgba(133, 44, 106, 0.82) 38%, rgba(11, 12, 10, 0.98) 100%),
    linear-gradient(180deg, #151410 0%, #060706 100%);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
}

.hero-content {
  width: min(100%, 860px);
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.hero-brand {
  width: min(250px, 64vw);
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.45));
}

.hero-copy {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.8rem;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.24rem;
  line-height: 1.42;
}

.download-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.download-actions[hidden] {
  display: none;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: var(--radius-pill);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
}

.store-button[hidden],
.store-button.is-disabled {
  display: none;
}

.store-button-badge {
  padding: 0;
  background: transparent;
  border: 0;
}

.store-button-badge img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.34));
}

.store-button-google {
  min-width: 182px;
  padding: 8px 22px;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.store-button-google span {
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
}

.store-button-google strong {
  font-size: 1.06rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-event-rail {
  position: absolute;
  left: 50%;
  bottom: -108px;
  z-index: 2;
  width: min(1060px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

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

.event-peek-grid .event-card,
.event-peek-grid .card-skeleton {
  min-height: 250px;
  max-height: 310px;
  pointer-events: auto;
}

.landing-section {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.upcoming-section {
  padding-top: 150px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2,
.host-panel h2,
.final-cta-panel h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.section-heading p:not(.section-kicker),
.host-panel p,
.final-cta-panel p {
  max-width: 630px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.events-feedback {
  min-height: 28px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.events-retry-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-left: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  min-width: 0;
}

.past-events-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  min-height: 390px;
  aspect-ratio: 0.78 / 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: rgba(12, 12, 12, 0.82);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 66px rgba(0, 0, 0, 0.42);
}

.event-card-image,
.event-card-fallback,
.event-card-overlay {
  position: absolute;
  inset: 0;
}

.event-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.08), rgba(14, 14, 14, 0.76)),
    linear-gradient(145deg, rgba(255, 105, 63, 0.46), rgba(255, 63, 129, 0.34), rgba(32, 16, 36, 0.9));
}

.event-card-fallback span {
  color: rgba(255, 255, 255, 0.96);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-card-overlay {
  z-index: 1;
  display: grid;
  align-content: space-between;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.05) 34%, rgba(0, 0, 0, 0.92) 100%);
}

.event-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.event-status,
.event-action {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 8, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.event-status {
  gap: 8px;
  padding: 0 12px;
}

.event-status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.56);
}

.event-status[data-tone="danger"]::before {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255, 123, 91, 0.44);
}

.event-status[data-tone="warn"]::before {
  background: var(--warn);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.4);
}

.event-status[data-tone="good"]::before {
  background: var(--good);
  box-shadow: 0 0 16px rgba(84, 209, 141, 0.4);
}

.event-status[data-tone="muted"]::before {
  background: rgba(255, 255, 255, 0.48);
}

.event-action {
  padding: 0 13px;
  background: rgba(255, 105, 63, 0.94);
  color: #120704;
  border-color: rgba(255, 255, 255, 0.18);
}

.event-action[data-tone="past"] {
  background: rgba(33, 33, 33, 0.82);
  color: rgba(255, 255, 255, 0.76);
}

.event-card-body {
  align-self: end;
  display: grid;
  gap: 7px;
}

.event-card-title {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
  text-wrap: balance;
}

.event-card-date {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 800;
}

.event-card-location {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.28;
  font-weight: 600;
}

.event-card.is-past {
  opacity: 0.88;
}

.card-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  aspect-ratio: 0.78 / 1;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

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

.feature-block {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(13, 14, 13, 0.74);
}

.feature-number {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.feature-block h3 {
  margin: 0 0 10px;
  font-size: 1.36rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-block p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.host-panel,
.final-cta-panel {
  display: grid;
  gap: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 105, 63, 0.22), rgba(255, 63, 129, 0.08) 48%, rgba(255, 255, 255, 0.04)),
    var(--panel);
  box-shadow: var(--shadow);
}

.host-panel {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #090909;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

.final-cta-panel {
  justify-items: center;
  text-align: center;
}

.final-cta-logo {
  width: 168px;
  height: auto;
}

.site-footer {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 38px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.footer-brand img {
  width: 78px;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

.mobile-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 20;
  width: min(calc(100vw - 24px), 420px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 7, 6, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
  transform: translateX(-50%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.mobile-sticky-cta[hidden] {
  display: none;
}

.mobile-sticky-cta .download-actions {
  gap: 8px;
}

.mobile-sticky-cta .store-button-badge img {
  height: 46px;
}

.mobile-sticky-cta .store-button-google {
  min-height: 46px;
  min-width: 152px;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -20% 0; }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: 92svh;
    padding: 70px 18px 110px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-copy p {
    font-size: 1.12rem;
  }

  .hero-event-rail {
    bottom: -82px;
  }

  .event-peek-grid {
    display: flex;
    gap: 12px;
    overflow: hidden;
  }

  .event-peek-grid .event-card,
  .event-peek-grid .card-skeleton {
    flex: 0 0 220px;
    min-height: 270px;
  }

  .landing-section {
    padding: 68px 0;
  }

  .upcoming-section {
    padding-top: 120px;
  }

  .events-grid,
  .past-events-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .host-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 82px;
  }

  .hero-section {
    min-height: 94svh;
    padding: 54px 16px 96px;
  }

  .hero-brand {
    width: min(210px, 70vw);
  }

  .hero-copy h1 {
    font-size: 2.28rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .download-actions {
    gap: 10px;
  }

  .store-button-badge img {
    height: 50px;
  }

  .store-button-google {
    min-height: 50px;
    min-width: 168px;
  }

  .hero-event-rail {
    bottom: -72px;
  }

  .event-peek-grid .event-card,
  .event-peek-grid .card-skeleton {
    flex-basis: 190px;
    min-height: 246px;
  }

  .landing-section {
    width: min(100% - 24px, 480px);
    padding: 54px 0;
  }

  .upcoming-section {
    padding-top: 104px;
  }

  .section-heading h2,
  .host-panel h2,
  .final-cta-panel h2 {
    font-size: 2rem;
  }

  .events-grid,
  .past-events-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .event-card,
  .card-skeleton {
    min-height: 360px;
  }

  .feature-block {
    min-height: 190px;
  }

  .host-panel,
  .final-cta-panel {
    padding: 26px;
    border-radius: 24px;
  }

  .site-footer {
    width: min(100% - 24px, 480px);
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 100px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 2rem;
  }

  .store-button-badge img {
    height: 46px;
  }

  .store-button-google {
    min-width: 156px;
  }

  .event-card,
  .card-skeleton {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
