/* ============================================
   UTERUST — Shared styles
   ============================================ */

:root {
  --bg: #2a0f3d;
  --bg-deep: #1a0828;
  --surface: #361449;
  --surface-2: #421a58;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f4eef9;
  --text-muted: #b9a4cf;
  --text-dim: #8a7aa3;

  --pink: #ff2d87;
  --pink-soft: #ff66b2;
  --pink-glow: rgba(255, 45, 135, 0.45);

  --shadow-pink: 0 0 60px rgba(255, 45, 135, 0.25);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.45);

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius: 4px;
  --radius-lg: 10px;

  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Subtle grain overlay across entire site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--pink);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--pink);
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(26, 8, 40, 0.85), rgba(26, 8, 40, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(26, 8, 40, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 45, 135, 0.45));
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--pink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 18px; height: 18px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 135, 0.3);
}
.btn-primary:hover {
  background: #ff4a99;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 45, 135, 0.5);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   HERO (home only)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 120px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 35%;
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 8, 40, 0.35) 0%, rgba(26, 8, 40, 0.55) 60%, rgba(26, 8, 40, 0.92) 100%),
    linear-gradient(90deg, rgba(26, 8, 40, 0.65) 0%, rgba(26, 8, 40, 0.15) 55%, rgba(26, 8, 40, 0) 100%);
}
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 28% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 75% 70%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 88% 35%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 42% 88%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 8% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 95% 78%, rgba(255,255,255,0.4), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(64px, 9vw, 144px);
  line-height: 0.88;
  margin: 24px 0 28px;
  text-shadow: 0 4px 40px rgba(255, 45, 135, 0.3);
}
.hero-copy h1 .accent { color: var(--pink); }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #4a1a6e, #2a0f3d);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(255, 45, 135, 0.2);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 45, 135, 0.06) 0px,
      rgba(255, 45, 135, 0.06) 2px,
      transparent 2px,
      transparent 14px
    );
}
.hero-visual-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.hero-visual-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #fff;
}
.hero-visual-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--pink);
  vertical-align: middle;
  margin-right: 12px;
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   PAGE HEADER (smaller hero for inner pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 180px 0 80px;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 30%;
}
.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 8, 40, 0.55) 0%, rgba(42, 15, 61, 0.85) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(26, 8, 40, 0.75) 0%, rgba(26, 8, 40, 0.25) 60%, rgba(26, 8, 40, 0) 100%);
}
.page-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.page-header h1 {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  margin-top: 16px;
}
.page-header .lead {
  margin-top: 20px;
  max-width: 56ch;
}

.breadcrumbs {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs .sep { margin: 0 10px; color: var(--text-dim); }

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 100px 0;
}
.section-sm { padding: 64px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
}
.section-head .lead { margin: 0; }

.divider {
  height: 1px;
  background: var(--line);
  margin: 80px 0;
}

/* ============================================
   CARDS / GRID
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px 32px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  color: var(--pink);
  letter-spacing: 0.02em;
}
.stat-label {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Video frame */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(255, 45, 135, 0.15);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image placeholder */
.img-placeholder {
  position: relative;
  background: linear-gradient(135deg, #3d1659, #2a0f3d);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: center;
  padding: 24px;
}
.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 45, 135, 0.05) 0,
      rgba(255, 45, 135, 0.05) 2px,
      transparent 2px,
      transparent 12px
    );
}

/* CTA strip */
.cta-strip {
  position: relative;
  padding: 80px 0;
  background:
    linear-gradient(135deg, rgba(255, 45, 135, 0.15), rgba(120, 40, 180, 0.15)),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 45, 135, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(180, 60, 220, 0.2) 0%, transparent 50%);
}
.cta-strip-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  max-width: 18ch;
  line-height: 0.95;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 36ch;
  font-size: 14px;
}
.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--pink);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer-socials a:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}
.footer-socials svg { width: 16px; height: 16px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-visual { aspect-ratio: 16/12; max-height: 400px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-cta .btn span.hide-sm { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .page-header { padding: 140px 0 56px; min-height: 320px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 200;
  padding: 24px;
  display: none;
  flex-direction: column;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: block;
}
.mobile-drawer a:hover { color: var(--pink); }

/* CRUK logo lockup — placeholder until official asset is provided */
.cruk-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  vertical-align: middle;
}
.cruk-badge img {
  display: block;
  height: 36px;
  width: auto;
}
.cruk-badge-lg {
  padding: 32px 48px;
  width: 100%;
  justify-content: center;
}
.cruk-badge-lg img {
  height: auto;
  max-width: 320px;
  width: 100%;
}

.cruk-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #fff;
  color: #2e0e3f;
  border-radius: 4px;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.cruk-lockup .cruk-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ee2a7b;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}
.cruk-lockup .cruk-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.cruk-lockup .cruk-line {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.cruk-lockup .cruk-sub {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #6a4677;
  line-height: 1;
}
.cruk-lockup-lg {
  padding: 16px 22px;
  gap: 14px;
}
.cruk-lockup-lg .cruk-mark { width: 36px; height: 36px; font-size: 22px; }
.cruk-lockup-lg .cruk-line { font-size: 26px; }
.cruk-lockup-lg .cruk-sub { font-size: 11px; }

.charity-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
