/* ===========================================================
   layout.css — Announcement bar, nav, container, sections,
                section heading, scroll reveal
   =========================================================== */

/* Announcement bar — fixed at very top of viewport */
.announcement {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: var(--announcement-h);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(90deg, var(--rose-2), var(--rose), var(--violet));
  background-size: 200% 100%;
  animation: shiftGrad 8s ease infinite;
  color: #fff;
  font-size: 13.5px;
  padding: 0 16px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(244,63,94,0.25);
}
@keyframes shiftGrad {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.announcement .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  margin-right: 10px;
  vertical-align: middle;
  animation: blink 1.6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.9);
}
.announcement strong { font-weight: 700; margin-left: 5px; }
.announcement .sep { opacity: .6; margin: 0 10px; }
.announcement .mini-cd {
  display: inline-block;
  background: rgba(0,0,0,0.25);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Nav — sits below the announcement bar; ONLY changes background on scroll */
nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(92%, var(--maxw));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(15,15,23,0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background .35s ease, box-shadow .35s ease;
}
nav.scrolled {
  background: rgba(10,10,15,0.88);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  padding-left: 8px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a26, #0d0d14);
  border: 1px solid var(--border-2);
  position: relative;
  display: grid; place-items: center;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6), 0 0 0 1px rgba(244,63,94,0.3);
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-2));
  animation: pulsePill 2.4s ease-in-out infinite;
}
.brand-text { font-weight: 700; letter-spacing: .04em; font-size: 15px; }
.brand-text span { color: var(--rose); }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .25s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: linear-gradient(135deg, var(--rose), var(--rose-2));
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(244,63,94,0.4);
  transition: all .25s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(244,63,94,0.55); }

.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Layout helpers */
main { position: relative; z-index: 2; }
.container {
  width: min(92%, var(--maxw));
  margin: 0 auto;
  position: relative;
}
section { padding: 120px 0; position: relative; }

/* Section heading block */
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 60px;
}
.sec-tag {
  font-size: 12px;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sec-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--rose);
}
.sec-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 760px;
}
.sec-title .accent { color: var(--rose); }
.sec-desc {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin-top: 6px;
}

/* Scroll-reveal utility (toggled by IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1),
              transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* Generic button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s cubic-bezier(.2,.8,.2,1);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(244,63,94,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(244,63,94,0.6), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-2); border-color: rgba(168,85,247,0.5); }
