/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --black:   #080b0f;
  --dark:    #0f1318;
  --deep:    #0a0d10;
  --red:     #cc1f1f;
  --bright-red: #ff2d2d;
  --yellow:  #f5c518;
  --orange:  #ff7722;
  --white:   #f0f4ff;
  --muted:   #8899aa;

  --font-display: 'Bebas Neue', Impact, 'Arial Black', sans-serif;
  --font-body:    'Space Grotesk', system-ui, -apple-system, sans-serif;

  --section-pad: clamp(60px, 10vw, 120px);
  --max-w:       1200px;
  --radius:      14px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%       { transform: translateY(-22px) rotate(var(--rot, 0deg)); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes blob-morph {
  0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  33%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  66%  { border-radius: 20% 60% 50% 40% / 70% 30% 60% 40%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes ring {
  0%, 90%, 100% { transform: rotate(0deg); }
  15%            { transform: rotate(-14deg); }
  30%            { transform: rotate(14deg); }
  45%            { transform: rotate(-9deg); }
  60%            { transform: rotate(9deg); }
  75%            { transform: rotate(-5deg); }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(204,31,31,.7), 0 0 50px rgba(204,31,31,.35); }
  50%       { text-shadow: 0 0 40px rgba(255,45,45,1), 0 0 90px rgba(204,31,31,.6), 0 0 160px rgba(204,31,31,.3); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── AaaS Onboarding Modal (checkbox hack) ──────────────────────── */
.aaas-toggle { display: none; }

.rx-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 15, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.aaas-toggle:checked ~ .rx-overlay {
  opacity: 1;
  pointer-events: all;
}

.rx-content {
  text-align: center;
  padding: 2.5rem 3rem;
  max-width: 500px;
  width: calc(100% - 3rem);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--dark);
  position: relative;
  animation: scale-in 0.3s ease both;
}

.rx-symbol {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--red);
  animation: ring 2.5s ease-in-out infinite;
  display: block;
}

.rx-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.rx-prescription {
  font-size: 1rem;
  font-weight: 700;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 0.75rem 0;
  background: rgba(0,0,0,0.35);
  text-align: left;
}

.rx-prescription strong { color: var(--red); display: block; margin-bottom: 0.4rem; }
.rx-prescription span   { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 0.25rem; }

.rx-sig {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.75rem;
  font-style: italic;
}

.rx-dismiss {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2.2rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.2s, filter 0.2s;
}

.rx-dismiss:hover { transform: scale(1.05); filter: brightness(1.15); }

.rx-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.rx-close:hover { color: var(--white); }

/* ── Ticker ──────────────────────────────────────────────────────── */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--red);
  color: var(--white);
  padding: 0.45rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ticker {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.18em;
  align-items: center;
}

.ticker span {
  padding: 0 1.2rem;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 40%, #1c0505 0%, var(--black) 68%);
  text-align: center;
  padding: var(--section-pad) 1.5rem;
}

/* Animated background blobs */
.bg-shape {
  position: absolute;
  filter: blur(60px);
  opacity: 0.12;
  animation: blob-morph 14s ease-in-out infinite;
  pointer-events: none;
}

.bg-shape--1 {
  width: 700px; height: 700px;
  background: var(--red);
  top: -150px; left: -220px;
  animation-duration: 16s;
}

.bg-shape--2 {
  width: 450px; height: 450px;
  background: var(--bright-red);
  bottom: -80px; right: -120px;
  animation-delay: -5s;
  animation-duration: 18s;
  opacity: 0.08;
}

.bg-shape--3 {
  width: 320px; height: 320px;
  background: var(--yellow);
  top: 35%; left: 58%;
  animation-delay: -9s;
  animation-duration: 22s;
  opacity: 0.05;
}

.bg-shape--4 {
  width: 500px; height: 250px;
  background: var(--red);
  bottom: 25%; left: 5%;
  animation-delay: -3s;
  opacity: 0.07;
}

/* Floating decorative anarchy symbols */
.float-anarchy {
  position: absolute;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
  color: var(--red);
}

.float-anarchy--1 { width: 200px; top: 8%;  left: 4%;  --rot: -15deg; opacity: 0.07; animation-duration: 7s; }
.float-anarchy--2 { width: 130px; top: 10%; right: 5%; --rot: 12deg;  opacity: 0.09; animation-duration: 8.5s; animation-delay: -2.5s; color: var(--yellow); }
.float-anarchy--3 { width: 290px; bottom: 4%; right: 10%; --rot: 25deg; opacity: 0.05; animation-duration: 9s; animation-delay: -5s; color: var(--orange); }
.float-anarchy--4 { width: 95px;  bottom: 20%; left: 7%; --rot: -30deg; opacity: 0.08; animation-duration: 6s; animation-delay: -1s; color: var(--bright-red); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  animation: fade-up 0.9s ease both;
}

.hero__eyebrow {
  font-size: clamp(0.7rem, 1.4vw, 0.83rem);
  letter-spacing: 0.25em;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  line-height: 0.83;
  margin-bottom: 2rem;
}

.hero__title--resident {
  display: block;
  font-size: clamp(5rem, 18vw, 14rem);
  color: var(--white);
  letter-spacing: 0.04em;
}

.hero__title--anarchist {
  display: block;
  font-size: clamp(3.2rem, 12vw, 10rem);
  color: var(--red);
  letter-spacing: 0.02em;
  animation: glow-pulse 3.5s ease-in-out infinite;
  -webkit-text-stroke: 1px rgba(255,255,255,0.15);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.6rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  letter-spacing: 0.1em;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 40px rgba(204,31,31,.45);
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.04);
  filter: brightness(1.15);
  box-shadow: 0 0 65px rgba(255,45,45,.7);
}

.hero__fine {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 1.5rem;
  opacity: 0.55;
  font-style: italic;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Quote section ───────────────────────────────────────────────── */
.quote-section {
  padding: var(--section-pad) 1.5rem;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-bg-art {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22rem;
  opacity: 0.022;
  pointer-events: none;
  filter: blur(3px);
  animation: spin-slow 55s linear infinite;
  white-space: nowrap;
  color: var(--red);
}

.the-quote {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.the-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.the-quote em {
  color: var(--red);
  font-style: normal;
}

.the-quote cite {
  font-size: clamp(0.82rem, 1.5vw, 0.97rem);
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.the-quote cite small {
  display: block;
  margin-top: 0.4rem;
  font-style: italic;
  color: var(--yellow);
  opacity: 0.75;
}

/* ── Shared section header ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 50px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  letter-spacing: 0.05em;
  margin: 0.6rem 0 0.4rem;
}

.section-header p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: clamp(0.88rem, 1.8vw, 1rem);
}

/* ── Stats ───────────────────────────────────────────────────────── */
.stats-section {
  padding: var(--section-pad) 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

.stat-card {
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.05);
  border-top-width: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-6px); }

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  border-radius: inherit;
}

.stat-card--red    { border-top-color: var(--red); }
.stat-card--red::before    { background: var(--red); }
.stat-card--yellow { border-top-color: var(--yellow); }
.stat-card--yellow::before { background: var(--yellow); }
.stat-card--orange { border-top-color: var(--orange); }
.stat-card--orange::before { background: var(--orange); }
.stat-card--white  { border-top-color: rgba(240,244,255,0.5); }
.stat-card--white::before  { background: var(--white); }

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-card--red .stat-card__number    { color: var(--red); }
.stat-card--yellow .stat-card__number { color: var(--yellow); }
.stat-card--orange .stat-card__number { color: var(--orange); }
.stat-card--white .stat-card__number  { color: var(--white); }

.stat-card__label {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.87rem;
  line-height: 1.45;
}

.stat-card__icon {
  position: absolute;
  bottom: 0.9rem;
  right: 1.1rem;
  font-size: 1.9rem;
  opacity: 0.22;
}

.stats-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.6;
}

/* ── Testimonials ────────────────────────────────────────────────── */
.testimonials-section {
  padding: var(--section-pad) 1.5rem;
  background: var(--dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.testimonial-card {
  padding: 1.8rem 2rem;
  background: var(--black);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(204,31,31,.4);
}

.testimonial-card__stars {
  color: var(--red);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  color: var(--white);
  font-size: 0.91rem;
  line-height: 1.68;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '\201C';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--red);
  opacity: 0.28;
  position: absolute;
  top: -1.2rem;
  left: -0.5rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card__author strong { display: block; font-size: 0.88rem; }
.testimonial-card__author span   { display: block; font-size: 0.75rem; color: var(--muted); }

/* ── Services ────────────────────────────────────────────────────── */
.services-section {
  padding: var(--section-pad) 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.service-card {
  padding: 2rem;
  background: var(--dark);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-6px); }

.service-card--featured {
  border-color: rgba(204,31,31,.5);
  background: linear-gradient(145deg, var(--dark) 0%, rgba(204,31,31,.05) 100%);
}

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1.1rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.62;
}

.service-card p code {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.82em;
  color: var(--white);
}

.service-card__badge {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  text-transform: uppercase;
}

.service-card--featured .service-card__badge {
  background: var(--red);
  color: var(--white);
}

/* ── Manifesto ───────────────────────────────────────────────────── */
.manifesto-section {
  padding: var(--section-pad) 1.5rem;
  background: #0d0a0a;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(204,31,31,.15);
  border-bottom: 1px solid rgba(204,31,31,.15);
}

.manifesto-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28rem;
  opacity: 0.018;
  pointer-events: none;
  filter: blur(6px);
  animation: spin-slow 65s linear infinite;
  line-height: 1;
  color: var(--red);
}

.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.manifesto-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  letter-spacing: 0.1em;
  color: var(--red);
  margin: 0.75rem 0 2rem;
}

.manifesto-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.manifesto-list li {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  padding: 0.7rem 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  transition: color 0.2s, padding-left 0.2s;
}

.manifesto-list li:last-child { border-bottom: none; }
.manifesto-list li:hover { color: var(--red); padding-left: 0.4rem; }

.manifesto-list li::before {
  content: 'Ⓐ';
  font-size: 0.82em;
  flex-shrink: 0;
  color: var(--red);
  opacity: 0.7;
}

.manifesto-list em {
  color: var(--yellow);
  font-style: normal;
  font-weight: 700;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-pad) 1.5rem;
  text-align: center;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: var(--red);
  top: -260px; left: 50%;
  transform: translateX(-50%);
  filter: blur(110px);
  opacity: 0.07;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: var(--yellow);
  bottom: -100px; right: 8%;
  filter: blur(80px);
  opacity: 0.04;
  pointer-events: none;
}

.cta-symbol {
  width: 88px;
  margin: 0 auto 1.5rem;
  color: var(--red);
  animation: ring 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(204,31,31,.6));
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.cta-section p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: clamp(0.93rem, 2vw, 1.08rem);
  position: relative;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 1.5rem 2.5rem;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-icon {
  color: var(--red);
  opacity: 0.45;
  width: 36px;
  margin: 0 auto 1rem;
  display: block;
}

.footer-tagline {
  font-size: 0.97rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-tagline strong { color: var(--red); }

.footer-copy {
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.footer-disclaimer {
  font-size: 0.69rem;
  color: var(--muted);
  opacity: 0.42;
  font-style: italic;
  line-height: 1.65;
}

/* ── Utility ─────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero__title--resident  { font-size: clamp(3.5rem, 20vw, 6.5rem); }
  .hero__title--anarchist { font-size: clamp(2.5rem, 15vw, 4.5rem); }
  .rx-content { padding: 2rem 1.5rem; }
  .manifesto-bg { font-size: 12rem; }
  .quote-bg-art { font-size: 10rem; }
}
