:root {
  color-scheme: dark;
  --brand-primary: #71103d;
  --brand-primary-light: #d64f8c;
  --brand-secondary: #a67f2d;
  --brand-secondary-light: #d1ae59;
  --background: #0a0a0a;
  --background-raised: #141414;
  --border-brand: rgba(166, 127, 45, 0.32);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.64);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.site-container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  border-radius: 6px;
}

.brand-logo {
  width: min(390px, 72vw);
  height: auto;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(580px, calc(100vh - 155px), 840px);
  flex: 1 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 80px 0 96px;
  background:
    radial-gradient(circle at 50% 0%, rgba(113, 16, 61, 0.5), transparent 52%),
    linear-gradient(135deg, rgba(113, 16, 61, 0.44), rgba(166, 127, 45, 0.28)),
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.78)),
    url("/assets/hero-background.webp") center / cover no-repeat;
}

.hero-pattern {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.42;
  background-image:
    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: 54px 54px;
  mask-image: radial-gradient(circle at center, black 12%, transparent 72%);
}

.hero::before {
  position: absolute;
  z-index: -2;
  width: min(76vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(166, 127, 45, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(166, 127, 45, 0.025),
    0 0 0 180px rgba(113, 16, 61, 0.025);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
}

.hero-glow-left {
  bottom: -150px;
  left: -120px;
  background: var(--brand-primary);
}

.hero-glow-right {
  top: -160px;
  right: -100px;
  background: var(--brand-secondary);
}

.hero-content {
  text-align: center;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 9px 17px;
  border: 1px solid rgba(166, 127, 45, 0.38);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(113, 16, 61, 0.28),
    rgba(166, 127, 45, 0.18)
  );
  color: var(--brand-secondary-light);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-icon {
  width: 17px;
  height: 17px;
}

h1 {
  max-width: 980px;
  margin: 0 auto 28px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 span {
  display: block;
  background: linear-gradient(
    100deg,
    var(--brand-secondary-light),
    var(--brand-primary-light) 72%
  );
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 38px;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.primary-cta {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  box-shadow: 0 14px 36px rgba(113, 16, 61, 0.3);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary-cta svg {
  width: 19px;
  height: 19px;
  transition: transform 180ms ease;
}

.primary-cta:hover {
  box-shadow: 0 18px 46px rgba(113, 16, 61, 0.42);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.primary-cta:hover svg {
  transform: translateX(3px);
}

.brand-link:focus-visible,
.primary-cta:focus-visible,
.footer-links a:focus-visible,
.footer-links button:focus-visible,
.consent-actions button:focus-visible {
  outline: 3px solid var(--brand-secondary-light);
  outline-offset: 4px;
}

.site-footer {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  border-top: 1px solid var(--border-brand);
  background: #0b090a;
}

.footer-inner {
  display: flex;
  min-height: 73px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a,
.footer-links button {
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}

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

.consent-banner {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  width: min(calc(100% - 44px), 780px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-left: auto;
  padding: 20px;
  border: 1px solid var(--border-brand);
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.consent-copy {
  max-width: 440px;
}

.consent-copy h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.consent-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-actions button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.consent-reject {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text-secondary);
}

.consent-accept {
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: white;
}

@media (max-width: 700px) {
  .site-container {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-logo {
    width: min(330px, 78vw);
  }

  .hero {
    min-height: 610px;
    padding: 68px 0 78px;
  }

  h1 {
    margin-bottom: 23px;
    font-size: clamp(2.55rem, 12vw, 4rem);
    line-height: 1.06;
  }

  .hero-copy {
    margin-bottom: 32px;
    font-size: 1.03rem;
    line-height: 1.58;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
    text-align: center;
  }

  .footer-links {
    gap: 15px;
  }

  .consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-actions button {
    flex: 1;
  }
}

@media (max-width: 390px) {
  .welcome-badge {
    padding: 8px 13px;
    font-size: 0.78rem;
  }

  .primary-cta {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .consent-actions {
    flex-direction: column-reverse;
  }
}

@media (max-width: 700px) and (max-height: 720px) {
  .hero {
    min-height: 460px;
    padding: 28px 0 38px;
  }

  .welcome-badge {
    margin-bottom: 14px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.1rem, 10vw, 2.5rem);
  }

  .hero-copy {
    margin-bottom: 18px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .primary-cta {
    min-height: 50px;
    padding-block: 12px;
  }

  .consent-banner {
    bottom: 8px;
    gap: 10px;
    padding: 12px;
  }

  .consent-copy h2 {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .consent-copy p {
    display: none;
  }

  .consent-actions {
    flex-direction: row;
  }

  .consent-actions button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }
}

@media (forced-colors: active) {
  h1 span {
    background: none;
    color: CanvasText;
  }
}

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