/* Memeza.org — The Invisible Safety Net
   Colors: Deep Night Navy, Electric Purple, Safety Orange
   Typography: Inter, min 18px body
*/

:root {
  --navy: #0a1628;
  --navy-light: #132238;
  --purple: #7c3aed;
  --purple-glow: #a78bfa;
  --orange: #f97316;
  --orange-dim: #ea580c;
  --white: #f8fafc;
  --gray: #94a3b8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --min-body: 18px;
  --radius: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--min-body);
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--purple-glow);
  outline-offset: 2px;
}

a { color: var(--purple-glow); }
a:hover { color: var(--orange); }
a:focus-visible { outline: 2px solid var(--purple-glow); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, var(--navy-light) 0%, var(--navy) 50%, #050d18 100%);
}

.hero-neighborhood {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 520px);
  height: 180px;
}

.house {
  position: absolute;
  bottom: 0;
  width: 48px;
  height: 52px;
  background: var(--navy-light);
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: 4px;
  opacity: 0.9;
}
.house::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 26px solid transparent;
  border-bottom: 14px solid var(--navy-light);
}
.h1 { left: 5%; }
.h2 { left: 22%; height: 64px; width: 42px; }
.h3 { left: 38%; height: 72px; width: 52px; }
.h4 { left: 58%; height: 58px; width: 44px; }
.h5 { right: 8%; }

.pulse-ring {
  position: absolute;
  bottom: 80px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 20px var(--purple), 0 0 40px rgba(124, 58, 237, 0.6);
  animation: pulse-hop 2.5s ease-in-out infinite;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--purple-glow);
  opacity: 0.5;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.delay-1 { animation-delay: 0.8s; left: 30%; }
.delay-2 { animation-delay: 1.6s; left: 65%; }

@keyframes pulse-hop {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(var(--min-body), 2.2vw, 1.25rem);
  color: var(--gray);
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--purple-glow); outline-offset: 2px; }

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--orange-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-glow);
  border: 2px solid var(--purple);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-glow);
}

.btn-large { padding: 1.25rem 2rem; font-size: 1.25rem; }

.badge-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-glow);
  background: rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.5);
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
}
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.25rem;
  color: var(--purple-glow);
  margin: 0 0 2rem;
  font-weight: 600;
}

/* Ghost Protocol */
.protocol { background: var(--navy-light); }
.protocol-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.step {
  flex: 1 1 160px;
  min-width: 0;
}
.step-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--navy);
  border: 2px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius);
  height: 100%;
  text-align: center;
}
.step-icon.hop { border-color: var(--purple); box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
.step-icon.bridge { border-color: var(--orange); }
.step-label {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--gray);
}
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--purple);
}
.protocol-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--min-body);
  color: var(--gray);
  text-align: center;
}

/* Feature Grid */
.features { background: var(--navy); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  padding: 1.75rem;
  background: var(--navy-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.15);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.feature-card p { margin: 0; color: var(--gray); font-size: var(--min-body); }

/* Security */
.security { background: var(--navy-light); }
.security-lead {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
}
.security p { margin: 0 0 1rem; color: var(--gray); max-width: 640px; }

/* Accessibility */
.accessibility { background: var(--navy); }
.a11y-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.a11y-mockup {
  background: var(--navy-light);
  border: 2px solid var(--purple);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 280px;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}
.mockup-screen {
  background: var(--navy);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.mockup-title { font-weight: 800; font-size: 1.25rem; display: block; margin-bottom: 1rem; }
.mockup-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-btn {
  padding: 1rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  background: var(--orange);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  cursor: default;
  min-height: 52px;
}
.mockup-btn.large { font-size: 1.5rem; }
.a11y-content .section-heading { margin-bottom: 1rem; }
.a11y-content p { margin: 0; color: var(--gray); font-size: var(--min-body); }

/* CTA section */
.cta-section {
  text-align: center;
  background: var(--navy-light);
}
.cta-section .btn-large { margin-bottom: 0.75rem; }
.cta-section .badge-verified { display: inline-block; }

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  background: #050d18;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  text-align: center;
}
.footer-tagline {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--white);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.footer-nav a { text-decoration: none; }
.footer-contact { margin: 0 0 1rem; color: var(--gray); font-size: var(--min-body); }
.footer-contact a { text-decoration: none; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-socials a { text-decoration: none; font-weight: 600; }

/* Community story anchor (for video link) */
#community-story { scroll-margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .protocol-diagram {
    flex-direction: column;
    align-items: center;
  }
  .step-arrow { transform: rotate(90deg); }
  .a11y-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .a11y-mockup { margin: 0 auto; }
  .hero-cta { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .hero { padding: 1.5rem 1rem 3rem; }
  .house { width: 36px; height: 40px; }
  .h2 { width: 32px; height: 48px; }
  .h3 { width: 40px; height: 56px; }
  .h4 { width: 34px; height: 44px; }
}
