/* HAVEN Official - Cinematic Dark Green */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --green-bright: #00FF88;
  --green-accent: #2E8B67;
  --bg: #050D0A;
  --bg-card: rgba(8, 28, 20, 0.75);
  --white: #FFFFFF;
  --gray-300: #AAB8B2;
  --gray-500: #6B7C75;
  --radius: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px rgba(46, 139, 103, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button, .btn { font-family: inherit; cursor: pointer; border: none; outline: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p { color: var(--gray-300); font-size: 1.05rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 13, 10, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46, 139, 103, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.5px; }
.logo svg { width: 36px; height: 36px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--gray-300); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px;
  background: var(--green-bright); border-radius: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-full); transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #00E676, #00C853); color: #031A12;
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.35);
}
.nav .btn-primary {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 230, 118, 0.5); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(0, 230, 118, 0.4); }
.btn-secondary:hover { background: rgba(0, 230, 118, 0.1); border-color: var(--green-bright); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.menu-toggle { display: none; background: none; border: none; color: var(--white); padding: 0.5rem; }
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(5, 13, 10, 0.98); backdrop-filter: blur(24px);
  padding: 2rem 1.5rem; flex-direction: column; gap: 0.5rem; z-index: 999;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
  font-size: 1.2rem; font-weight: 500; color: var(--gray-300);
  padding: 1rem 0; border-bottom: 1px solid rgba(46, 139, 103, 0.12);
}
.mobile-nav a:hover { color: var(--white); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 40%, rgba(0, 180, 100, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(11, 61, 46, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #050D0A 0%, #071810 40%, #050D0A 100%);
  z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 70%);
}
.hero-glow {
  position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  filter: blur(40px); top: 10%; right: 5%; z-index: 0; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-bright); margin-bottom: 1.25rem;
}
.hero h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #B8F0D0 50%, #00E676 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.15rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }

.stats-bar {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  background: rgba(8, 28, 20, 0.7); border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; backdrop-filter: blur(12px);
}
.stat-item { display: flex; align-items: center; gap: 0.75rem; min-width: 120px; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 230, 118, 0.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--green-bright);
}
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--gray-500); }

.hero-mascot-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.mascot-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.25) 0%, transparent 70%);
  filter: blur(30px); z-index: 0;
}
.mascot-svg {
  position: relative; z-index: 1; width: min(340px, 90%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: floatMascot 4s ease-in-out infinite;
}
@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Sections */
section { padding: 100px 0; position: relative; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--green-bright); margin-bottom: 0.75rem;
}
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header h2 span { color: var(--green-bright); }

/* Resource Cards */
.resources-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.resource-card {
  background: var(--bg-card); border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: var(--radius); padding: 1.5rem 1.25rem; transition: var(--transition);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.resource-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-bright), transparent);
  opacity: 0; transition: var(--transition);
}
.resource-card:hover {
  transform: translateY(-8px); border-color: rgba(0, 230, 118, 0.35); box-shadow: var(--shadow-glow);
}
.resource-card:hover::before { opacity: 1; }
.resource-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 230, 118, 0.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  margin-bottom: 1.25rem; color: var(--green-bright);
}
.resource-card h3 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--white); }
.resource-card p { font-size: 0.88rem; line-height: 1.55; flex-grow: 1; }

/* App Preview */
.app-section { background: linear-gradient(180deg, transparent 0%, rgba(0, 40, 25, 0.3) 50%, transparent 100%); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.app-content h2 { margin-bottom: 1rem; }
.app-content p { margin-bottom: 2rem; max-width: 420px; }
.store-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.2rem;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; font-size: 0.85rem; font-weight: 500; transition: var(--transition);
}
.store-badge:hover { border-color: var(--green-bright); background: rgba(0, 230, 118, 0.08); }
.store-badge span { display: block; font-size: 0.7rem; color: var(--gray-500); font-weight: 400; }

.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px; background: #0A1A14; border-radius: 40px; border: 3px solid #1A3A2A;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.15), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(0, 230, 118, 0.1);
  overflow: hidden; position: relative;
}
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: #050D0A; border-radius: 20px; z-index: 10;
}
.phone-screen {
  height: 100%; padding: 50px 16px 20px;
  background: linear-gradient(180deg, #0B1F18 0%, #071410 100%);
  display: flex; flex-direction: column;
}
.phone-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.phone-logo { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.phone-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.party-card {
  background: rgba(0, 40, 28, 0.8); border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 14px; padding: 0.9rem; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.party-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 230, 118, 0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.party-info { flex: 1; }
.party-name { font-weight: 600; font-size: 0.9rem; }
.party-meta { font-size: 0.75rem; color: var(--gray-500); }
.party-slots { font-size: 0.8rem; font-weight: 700; color: var(--green-bright); }
.mascot-side {
  position: absolute; right: -40px; bottom: 40px; width: 160px; z-index: 5;
  filter: drop-shadow(0 10px 30px rgba(0, 230, 118, 0.3));
  animation: floatMascot 3.5s ease-in-out infinite;
}

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card {
  background: var(--bg-card); border: 1px solid rgba(0, 230, 118, 0.1);
  border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: var(--transition);
}
.step-card:hover { border-color: rgba(0, 230, 118, 0.3); transform: translateY(-4px); }
.step-num { font-size: 2.8rem; font-weight: 900; color: rgba(0, 230, 118, 0.15); line-height: 1; margin-bottom: 1rem; }
.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { font-size: 0.92rem; }

/* Security */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.security-card {
  display: flex; gap: 1rem; padding: 1.5rem; background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.1); border-radius: var(--radius); transition: var(--transition);
}
.security-card:hover { border-color: rgba(0, 230, 118, 0.3); }
.security-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 12px;
  background: rgba(0, 230, 118, 0.12); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--green-bright);
}
.security-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.security-card p { font-size: 0.88rem; }

/* Privacy CTA */
.privacy-box {
  text-align: center;
  background: linear-gradient(145deg, rgba(0, 50, 35, 0.5), rgba(5, 20, 15, 0.8));
  border: 1px solid rgba(0, 230, 118, 0.2); border-radius: var(--radius); padding: 3.5rem 2rem;
}
.privacy-box h2 { margin-bottom: 0.75rem; }
.privacy-box p { max-width: 480px; margin: 0 auto 1.75rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0, 230, 118, 0.12); padding: 1.5rem 0; }
.faq-item:first-child { border-top: 1px solid rgba(0, 230, 118, 0.12); }
.faq-q { font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.faq-a { color: var(--gray-300); font-size: 0.98rem; line-height: 1.7; }

/* About */
.about-box {
  max-width: 680px; margin: 0 auto; text-align: center; padding: 2.5rem;
  background: var(--bg-card); border: 1px solid rgba(0, 230, 118, 0.12); border-radius: var(--radius);
}

/* Final CTA */
.final-cta {
  text-align: center; padding: 120px 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 180, 100, 0.12) 0%, transparent 70%);
}
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p { max-width: 480px; margin: 0 auto 2rem; }
.final-tagline { margin-top: 1.5rem; font-size: 0.95rem; color: var(--green-bright); font-weight: 600; }

/* Footer */
.footer { background: #030A08; border-top: 1px solid rgba(0, 230, 118, 0.1); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--white); }
.footer-col a { display: block; font-size: 0.9rem; color: var(--gray-500); margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--green-bright); }
.footer-bottom {
  border-top: 1px solid rgba(0, 230, 118, 0.1); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: var(--gray-500);
}

/* Privacy Page */
.privacy-page { padding-top: 110px; padding-bottom: 80px; }
.privacy-header {
  text-align: center; margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 230, 118, 0.15);
}
.privacy-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
.privacy-meta { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { font-size: 1.3rem; color: var(--white); margin: 2.5rem 0 1rem; }
.privacy-content h3 { font-size: 1.05rem; color: var(--green-bright); margin: 1.5rem 0 0.75rem; }
.privacy-content p, .privacy-content li { color: var(--gray-300); font-size: 0.98rem; line-height: 1.75; margin-bottom: 0.75rem; }
.privacy-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.privacy-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.privacy-content strong { color: var(--white); }
.privacy-back {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
  color: var(--green-bright); font-weight: 600; font-size: 0.95rem;
}
.privacy-back:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1100px) { .resources-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.9rem; }
  .nav { gap: 1.25rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-primary { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .stats-bar { justify-content: center; }
  .hero-mascot-wrap { order: -1; margin-bottom: 1rem; }
  .mascot-svg { width: min(260px, 70%); }
  .app-grid { grid-template-columns: 1fr; text-align: center; }
  .app-content p { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mascot-side { display: none; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .resources-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .phone { width: 240px; height: 480px; }
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--green-bright); outline-offset: 3px;
}
