@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: #26171f;
  color: #f0e6ef;
  scroll-padding-top: 110px;
}

body {
  font-family: 'Epilogue', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  background: #26171f;
  color: #f0e6ef;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Aurora Mesh Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,0,128,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(255,0,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(255,0,200,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 70%, rgba(180,0,255,0.10) 0%, transparent 60%),
    #26171f;
  pointer-events: none;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(30deg) brightness(1.08); }
  100% { filter: hue-rotate(-20deg) brightness(0.95); }
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Anton', 'Impact', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

a {
  color: #ff0080;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus-visible { color: #ff00ff; text-decoration: underline; }
a:focus-visible { outline: 2px solid #ff0080; outline-offset: 3px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

small {
  font-size: 0.72rem;
  font-family: 'Epilogue', sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff0080;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(38,23,31,0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,0,128,0.18);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo-link {
  font-family: 'Anton', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  background: linear-gradient(90deg, #ff0080, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.logo-link:hover { opacity: 0.85; text-decoration: none; }

.main-nav { flex: 1; }
.main-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  align-items: center;
  margin: 0;
}
.main-nav p a {
  color: rgba(240,230,239,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.62rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-nav p a:hover,
.main-nav p a:focus-visible {
  color: #ff0080;
  background: rgba(255,0,128,0.08);
  text-decoration: none;
}

/* ── Sticky Anchor Bar ── */
.sticky-anchor-bar {
  position: sticky;
  top: 62px;
  z-index: 90;
  background: rgba(38,23,31,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,0,255,0.14);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-anchor-bar::-webkit-scrollbar { display: none; }

.anchor-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  align-items: center;
  height: 46px;
}
.anchor-inner a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(240,230,239,0.6);
  padding: 0.5rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.anchor-inner a:hover,
.anchor-inner a:focus-visible {
  color: #ff00ff;
  border-bottom-color: #ff00ff;
  text-decoration: none;
}

/* ── Main / Wrap ── */
main {
  position: relative;
  z-index: 1;
  padding-top: 108px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero Section ── */
.hero-section {
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 0% 50%, rgba(255,0,128,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 100% 50%, rgba(255,0,255,0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-glow 10s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1.0; transform: scale(1.04); }
}

.hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text { text-align: left; }

.hero-h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: 0.03em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #fff 0%, #ff0080 45%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 5s ease-in-out infinite alternate;
}
@keyframes title-shimmer {
  0%   { filter: brightness(1); }
  100% { filter: brightness(1.15) saturate(1.3); }
}

.hero-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(240,230,239,0.78);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  min-height: 52px;
  background: linear-gradient(135deg, #ff0080, #ff00ff);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border-radius: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,0,128,0.35);
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,0,255,0.45);
  color: #fff;
  text-decoration: none;
}
.hero-cta:hover::before { opacity: 1; }

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(255,0,128,0.3), 0 0 120px rgba(255,0,255,0.15);
  border: 1px solid rgba(255,0,128,0.2);
}
.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(255,0,128,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 70% 70%, rgba(255,0,255,0.28) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255,0,128,0.1), rgba(255,0,255,0.1));
  border: 1px solid rgba(255,0,128,0.2);
  box-shadow: 0 0 60px rgba(255,0,128,0.2), inset 0 0 40px rgba(255,0,255,0.08);
  animation: placeholder-pulse 4s ease-in-out infinite alternate;
}
@keyframes placeholder-pulse {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(25deg) brightness(1.1); }
}

/* ── Content + Aside Layout ── */
.content-with-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

/* ── Aside ── */
.site-aside {
  position: sticky;
  top: 120px;
}
.aside-inner {
  background: rgba(255,0,128,0.05);
  border: 1px solid rgba(255,0,128,0.15);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  backdrop-filter: blur(8px);
}
.aside-eyebrow {
  display: block;
  margin-bottom: 0.4rem;
}
.aside-title {
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #ff00ff;
  margin-bottom: 1rem;
  font-family: 'Anton', sans-serif;
}
.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  min-height: 40px;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(240,230,239,0.72);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.35;
}
.aside-nav-list li a:hover,
.aside-nav-list li a:focus-visible {
  color: #ff0080;
  background: rgba(255,0,128,0.1);
  text-decoration: none;
}
.aside-deco {
  margin-top: 1.2rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff0080, #ff00ff, transparent);
  opacity: 0.6;
}

/* ── Main Content (page.content) ── */
.main-content {
  min-width: 0;
}

.main-content article {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,0,128,0.1);
  scroll-margin-top: 115px;
}
.main-content article:last-child { border-bottom: none; }

.main-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  background: linear-gradient(120deg, #fff 30%, #ff0080 70%, #ff00ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}
.main-content h3 {
  font-size: 1.35rem;
  color: #ff00ff;
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  letter-spacing: 0.03em;
}
.main-content p {
  color: rgba(240,230,239,0.85);
  font-size: 1rem;
  line-height: 1.8;
}
.main-content ul, .main-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1em;
  color: rgba(240,230,239,0.82);
}
.main-content li { margin-bottom: 0.45em; line-height: 1.7; }
.main-content strong { color: #ff0080; font-weight: 700; }
.main-content em { color: #ff00ff; font-style: italic; }

.main-content small {
  display: block;
  margin-bottom: 0.3rem;
}

.main-content small + h2,
.main-content small + h3 {
  margin-top: 0;
}

.main-content .card {
  background: rgba(255,0,128,0.06);
  border: 1px solid rgba(255,0,128,0.18);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(255,0,128,0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.main-content .card:hover {
  box-shadow: 0 8px 32px rgba(255,0,255,0.18);
  transform: translateY(-3px);
}

.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 0.95rem;
}
.main-content th {
  background: rgba(255,0,128,0.15);
  color: #ff0080;
  font-weight: 700;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(255,0,128,0.3);
}
.main-content td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(240,230,239,0.82);
}

.main-content blockquote {
  border-left: 3px solid #ff0080;
  margin: 1.5em 0;
  padding: 0.8em 1.5em;
  background: rgba(255,0,128,0.06);
  border-radius: 0 8px 8px 0;
  color: rgba(240,230,239,0.8);
  font-style: italic;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,0,128,0.2);
  background: rgba(20,10,18,0.92);
}

.footer-cta-block {
  padding: 5rem 2rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,0,128,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(255,0,255,0.08) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255,0,128,0.12);
}
.footer-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}
.footer-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}
.footer-cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(120deg, #ff0080, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.8rem;
}
.footer-cta-desc {
  color: rgba(240,230,239,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  min-height: 48px;
  border: 2px solid rgba(255,0,128,0.6);
  border-radius: 8px;
  color: #ff0080;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-cta-btn:hover {
  background: rgba(255,0,128,0.12);
  color: #ff00ff;
  border-color: #ff00ff;
  text-decoration: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
.footer-brand {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #ff0080, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(240,230,239,0.55);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.footer-contact a {
  font-size: 0.85rem;
  color: rgba(240,230,239,0.5);
}
.footer-contact a:hover { color: #ff0080; }

.footer-col-title {
  font-family: 'Anton', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #ff0080;
  margin-bottom: 1rem;
}
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-nav-list li a {
  font-size: 0.88rem;
  color: rgba(240,230,239,0.6);
  padding: 0.3rem 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-nav-list li a:hover { color: #ff00ff; text-decoration: none; }

.footer-about-text {
  font-size: 0.86rem;
  color: rgba(240,230,239,0.5);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(240,230,239,0.4);
}
.footer-disclaimer {
  font-size: 0.8rem;
  color: rgba(255,0,128,0.5);
}

/* ── Scroll Reveal ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .stagger .reveal:nth-child(1) { transition-delay: 0.05s; }
  .stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
  .stagger .reveal:nth-child(3) { transition-delay: 0.19s; }
  .stagger .reveal:nth-child(4) { transition-delay: 0.26s; }
  .stagger .reveal:nth-child(5) { transition-delay: 0.33s; }
  .stagger .reveal:nth-child(6) { transition-delay: 0.40s; }
  .stagger .reveal:nth-child(7) { transition-delay: 0.47s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  body::before { animation: none; }
  .hero-h1 { animation: none; }
  .hero-section::before { animation: none; }
  .hero-placeholder { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .content-with-aside {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-meta-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 130px; }

  .header-inner {
    height: auto;
    min-height: 60px;
    padding: 0.8rem 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .main-nav p {
    gap: 0;
    flex-wrap: wrap;
  }
  .main-nav p a {
    font-size: 0.78rem;
    padding: 0.55rem 0.6rem;
    min-height: 40px;
  }

  .sticky-anchor-bar { top: 90px; }
  .anchor-inner { padding: 0 1rem; }
  .anchor-inner a { font-size: 0.74rem; padding: 0.5rem 0.7rem; }

  main { padding-top: 0; }

  .hero-section {
    min-height: 100vh;
    padding: 7rem 0 3rem;
    display: flex;
    align-items: center;
  }

  .hero-article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-media { order: -1; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 3.2rem); }

  .content-with-aside {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2rem 0;
  }
  .site-aside {
    position: static;
    margin-bottom: 2rem;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .aside-nav-list li a {
    padding: 0.45rem 0.8rem;
    background: rgba(255,0,128,0.08);
    border-radius: 20px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.2rem;
  }
  .footer-cta-block { padding: 3rem 1.2rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.2rem;
  }

  .wrap { padding: 0 1.2rem; }
}

@media (max-width: 480px) {
  .main-nav p a { font-size: 0.72rem; padding: 0.5rem 0.45rem; }
  .logo-link { font-size: 1.2rem; }
  .hero-h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .hero-desc { font-size: 0.97rem; }
  .main-content h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

button[aria-expanded]{min-width:44px;min-height:44px}
