/**
 * Zevels — Premium Landing Styles
 * Matte black + emerald green + metallic gold (official logo language).
 */

:root {
  --bg: #050805;
  --bg-secondary: #0c110f;
  --card: rgba(255, 255, 255, 0.035);
  --emerald: #0a5c48;
  --emerald-deep: #04382c;
  --emerald-bright: #149a78;
  --emerald-glow: rgba(10, 92, 72, 0.45);
  --gold: #d4af37;
  --luxury: #e8c556;
  --dark-gold: #9a6c00;
  --white: #ffffff;
  --muted: #bfbfbf;
  --border: rgba(212, 175, 55, 0.28);
  --border-emerald: rgba(10, 92, 72, 0.45);
  --glow: rgba(212, 175, 55, 0.16);
  --font: 'Poppins', system-ui, sans-serif;
  --radius: 1.25rem;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10, 92, 72, 0.18) 0%, transparent 55%),
    var(--bg);
  color: var(--white);
  font-family: var(--font);
}

::selection {
  background: rgba(10, 92, 72, 0.55);
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Atmosphere */
/* -------------------------------------------------------------------------- */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-glow {
  pointer-events: none;
  position: fixed;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 75vw;
  height: 52vh;
  z-index: 0;
  background:
    radial-gradient(ellipse, rgba(10, 92, 72, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.hero-radial {
  position: absolute;
  inset: 8% 5% auto;
  height: 62%;
  background:
    radial-gradient(ellipse at center, rgba(10, 92, 72, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse at 50% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 55%);
  pointer-events: none;
}

.waitlist-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: 420px;
  background:
    radial-gradient(circle, rgba(10, 92, 72, 0.22) 0%, transparent 65%),
    radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.page-loader {
  z-index: 9999 !important;
}

.toast-container {
  z-index: 10000 !important;
  position: fixed;
}

/* -------------------------------------------------------------------------- */
/* Typography helpers */
/* -------------------------------------------------------------------------- */
.gold-text {
  background: linear-gradient(
    135deg,
    var(--dark-gold) 0%,
    var(--luxury) 40%,
    var(--gold) 60%,
    #f3dfa0 80%,
    var(--luxury) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.emerald-text {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald-bright) 50%, #2bc49a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-indent: 0.45em;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.gold-link {
  color: var(--luxury);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gold-link:hover {
  color: var(--emerald-bright);
}

/* -------------------------------------------------------------------------- */
/* Navigation */
/* -------------------------------------------------------------------------- */
.nav-glass {
  background: rgba(5, 8, 5, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  transition: box-shadow var(--transition), background var(--transition);
}

.nav-glass.scrolled {
  background: rgba(5, 8, 5, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(10, 92, 72, 0.12);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--luxury);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  color: var(--emerald-bright) !important;
  font-weight: 600;
}

.mobile-nav-link {
  font-size: 1rem;
  color: var(--muted);
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--luxury);
}

.mobile-menu:not([hidden]) {
  display: block;
  animation: fadeSlide 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Logo */
/* -------------------------------------------------------------------------- */
.logo-glow {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.4),
    0 0 18px rgba(10, 92, 72, 0.35);
}

.logo-glow-strong {
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.5),
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(10, 92, 72, 0.4),
    0 0 80px rgba(212, 175, 55, 0.12);
  animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo {
  object-fit: cover;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* -------------------------------------------------------------------------- */
/* Glass cards */
/* -------------------------------------------------------------------------- */
.glass-card {
  background: linear-gradient(
    160deg,
    rgba(10, 92, 72, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(212, 175, 55, 0.03) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.benefit-card {
  padding: 1.75rem 1.5rem;
  min-height: 220px;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 154, 120, 0.55);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(10, 92, 72, 0.25),
    0 0 18px rgba(212, 175, 55, 0.1);
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
  transition: transform var(--transition);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.08);
}

.benefit-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--white);
}

.benefit-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Buttons — emerald face + gold trim (logo language) */
/* -------------------------------------------------------------------------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(
    145deg,
    var(--emerald-deep) 0%,
    var(--emerald) 35%,
    var(--emerald-bright) 55%,
    var(--emerald) 78%,
    var(--emerald-deep) 100%
  );
  background-size: 200% 200%;
  color: #f5f7f6 !important;
  border: 1.5px solid rgba(212, 175, 55, 0.75);
  cursor: pointer;
  box-shadow:
    0 4px 22px rgba(10, 92, 72, 0.45),
    0 0 18px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform var(--transition), box-shadow var(--transition), background-position 0.6s ease, opacity var(--transition);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-2px);
  background-position: 100% 50%;
  border-color: var(--luxury);
  box-shadow:
    0 8px 28px rgba(10, 92, 72, 0.55),
    0 0 28px rgba(212, 175, 55, 0.3);
}

.btn-gold:active:not(:disabled) {
  transform: translateY(0);
}

.btn-gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--gold) !important;
  background: rgba(10, 92, 72, 0.08);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-ghost:hover {
  background: rgba(10, 92, 72, 0.2);
  border-color: rgba(244, 197, 66, 0.55);
  box-shadow: 0 0 24px rgba(10, 92, 72, 0.25);
  transform: translateY(-2px);
}

.btn-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(245, 247, 246, 0.25);
  border-top-color: #f5f7f6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-spinner.hidden {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Trust / stars */
/* -------------------------------------------------------------------------- */
.stars {
  color: var(--luxury);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(232, 197, 86, 0.45);
}

/* -------------------------------------------------------------------------- */
/* Counters */
/* -------------------------------------------------------------------------- */
.counter-block {
  padding: 1.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(10, 92, 72, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.counter-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.counter-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------- */
/* Form */
/* -------------------------------------------------------------------------- */
.form-card {
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: rgba(191, 191, 191, 0.45);
}

.form-input:focus {
  border-color: rgba(20, 154, 120, 0.75);
  box-shadow: 0 0 0 3px rgba(10, 92, 72, 0.28);
}

.form-input.is-invalid {
  border-color: rgba(220, 80, 80, 0.7);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23D4AF37' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: #0c110f;
  color: #fff;
}

.form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: rgba(191, 191, 191, 0.7);
}

.form-error {
  margin: 0.4rem 0 0;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #e07070;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-row input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--emerald);
  flex-shrink: 0;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* Success page */
/* -------------------------------------------------------------------------- */
.success-card {
  animation: successIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-ring {
  stroke: var(--gold);
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawRing 0.8s ease forwards 0.2s;
}

.success-tick {
  stroke: var(--emerald-bright);
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawTick 0.5s ease forwards 0.85s;
}

@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}

@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

.perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(10, 92, 72, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.16);
}

.perk-icon {
  color: var(--emerald-bright);
  font-weight: 700;
}

/* -------------------------------------------------------------------------- */
/* Legal / contact pages */
/* -------------------------------------------------------------------------- */
.legal-content {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-content .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--emerald-bright);
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

/* -------------------------------------------------------------------------- */
/* Footer */
/* -------------------------------------------------------------------------- */
.footer-link {
  color: var(--muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--luxury);
}

/* -------------------------------------------------------------------------- */
/* Loader / toast / back-to-top */
/* -------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(10, 92, 72, 0.35);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.9rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(12, 17, 15, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.45;
  animation: toastIn 0.4s ease;
}

.toast.toast-error {
  border-color: rgba(220, 80, 80, 0.45);
}

.toast.toast-success {
  border-color: rgba(20, 154, 120, 0.55);
}

.toast.toast-out {
  animation: toastOut 0.35s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(16px); }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 15, 0.92);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), visibility var(--transition);
}

.back-to-top:hover {
  transform: translateY(-3px);
  color: var(--emerald-bright);
  box-shadow: 0 0 20px rgba(10, 92, 72, 0.35);
}

.back-to-top[hidden] {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Scroll reveal */
/* -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .logo-glow-strong,
  .success-ring,
  .success-tick,
  .btn-gold,
  .benefit-card {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
