/* RAO.Church — main styles (black & white) */
:root {
  --bg: #000000;
  --panel: #111111;
  --panel-alt: #0a0a0a;
  --text: #ffffff;
  --muted: #888888;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --danger: #ff4444;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.brand.small span { font-size: 14px; }
.logo { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.links { display: none; gap: 18px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: all 0.3s ease; position: relative; }
.links a:hover { color: var(--text); transform: translateY(-1px); }
.links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.links a:hover::after {
  width: 100%;
}

@media (min-width: 880px) { .links { display: inline-flex; } }

.cta .btn { margin-left: 10px; }

.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}
.hero .hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 14px;
}
@media (min-width: 880px) { .hero h1 { font-size: 64px; } }
.accent {
  color: var(--accent);
  font-weight: 800;
}
.lead { color: var(--muted); font-size: 18px; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }

.contract { display: flex; align-items: center; gap: 10px; margin-top: 16px; justify-content: center; }
.contract .label { color: var(--muted); }
.contract code { background: var(--panel); padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.2); }

.socials { display: flex; gap: 12px; margin-top: 16px; justify-content: center; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); }
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* --- Animated clouds strip --- */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  overflow: hidden;
  z-index: 1; /* behind hero content, above bg-glow */
  pointer-events: none;
}
.cloud {
  position: absolute;
  top: 24px;
  left: -25vw;
  width: 200px;
  height: auto;
  opacity: 1;
  animation: cloud-drift 65s linear infinite;
}
.cloud-sm { width: 120px; top: 58px; }
.cloud-md { width: 160px; top: 34px; }
.cloud-lg { width: 220px; top: 18px; }
.alt { top: 78px; opacity: 0.95; animation-duration: 90s; }

/* staggered delays */
.delay-1 { animation-delay: 6s; }
.delay-2 { animation-delay: 12s; }
.delay-3 { animation-delay: 18s; }
.delay-4 { animation-delay: 24s; }
.delay-5 { animation-delay: 30s; }

@keyframes cloud-drift {
  from { transform: translateX(120vw); }
  to   { transform: translateX(-140%); }
}

.bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: 
    radial-gradient(700px 300px at 40% 20%, rgba(0, 0, 0, 0.03), transparent 60%);
  z-index: 0;
}

#spirit-container {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 220px;
  height: 220px;
  transform: translateY(-50%);
  pointer-events: none;
  display: none;
  z-index: 0;
}

@media (min-width: 880px) {
  #spirit-container { display: block; }
}

.section { padding: 64px 0; }
.section.alt { background: var(--panel); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 920px) { .two-col { grid-template-columns: 1.2fr 1fr; gap: 28px; } }

.card { 
  background: var(--panel); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  border-radius: var(--radius); 
  padding: 20px; 
  box-shadow: var(--shadow), 0 0 20px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow), 0 0 30px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.checks { margin: 12px 0 0; padding: 0 0 0 20px; }
.checks li { margin: 8px 0; }

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stat { display: block; font-weight: 800; font-size: 22px; }
.muted { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { 
  background: var(--panel-alt); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: var(--radius); 
  padding: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
}
.tile:hover {
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.steps { counter-reset: step; margin: 16px 0 0; }
.steps li { margin: 12px 0; }

.btn {
  appearance: none; border: none; outline: none; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; font-weight: 700; color: #000000;
  background: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn:hover::before {
  left: 100%;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn.tiny { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.site-footer { padding: 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { margin: 8px 0; }
.list a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.list a:hover { color: var(--muted); }

h1, h2, h3, h4 { margin: 0 0 10px; }
p { margin: 10px 0; }

/* Smooth anchor scrolling */
html { scroll-behavior: smooth; }

/* FAQ styling */
.faq details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  background: var(--bg);
}
.faq summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.faq summary:hover {
  background: var(--panel);
}
.faq p {
  padding: 16px;
  margin: 0;
  color: var(--muted);
}

/* Headline + hero logo */
.hero h1 {
  letter-spacing: -0.02em;
}
.logo-hero {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 12px;
  animation: float 6s ease-in-out infinite;
}
.section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tile h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cursor trail animation */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: screen;
}

.cursor-trail::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
