/*
  Evri4You Landing Styles
  - Blue palette with glassmorphism buttons
  - Mobile-first, accessible contrasts
*/

:root {
  --evri-blue-900: #0a2a6b;
  --evri-blue-800: #0e3a8a;
  --evri-blue-700: #1d4ed8;
  --evri-blue-600: #2563eb;
  --evri-blue-500: #3b82f6;
  --evri-blue-400: #60a5fa;
  --evri-blue-300: #93c5fd;
  --evri-blue-200: #bfdbfe;
  --evri-blue-100: #dbeafe;

  --text-primary: #0b1220;
  --text-secondary: #223054;
  --text-on-dark: #f7fafc;

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(230, 238, 246, 0.8);
  --glass-shadow: 0 10px 30px rgba(2, 6, 23, 0.18), 0 2px 8px rgba(2, 6, 23, 0.12);

  --container-max: 1100px;
}

/* Reset and base */
* { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-primary);
  background: radial-gradient(1200px 600px at 80% -10%, var(--evri-blue-200), transparent 60%),
              radial-gradient(800px 400px at -10% 0%, var(--evri-blue-100), transparent 40%),
              linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--evri-blue-700);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(99, 132, 182, 0.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-weight: 700;
  color: var(--evri-blue-900);
}
.logo-mark {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--evri-blue-600), var(--evri-blue-400));
  color: white;
  border-radius: 6px;
}
.logo-text { letter-spacing: 0.2px; }

/* Hero */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  height: 100vh; /* Lock to viewport height */
}
.hero .bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 600px at 70% -5%, rgba(59, 130, 246, 0.25), transparent 60%),
              radial-gradient(700px 400px at -5% 0%, rgba(37, 99, 235, 0.22), transparent 50%);
  filter: blur(30px);
  z-index: -1;
}
.hero.has-image .bg-image {
  background: linear-gradient(180deg, rgba(3, 10, 28, 0.25), rgba(3, 10, 28, 0.35)),
              url('/assets/bg-desktop.png') center/cover no-repeat;
  background-color: var(--evri-blue-900);
  filter: none;
}
.hero__inner { display: grid; gap: 28px; min-height: inherit; align-content: center; justify-items: center; place-content: center; transform: translateY(24vh); }
.hero__text { text-align: center; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  color: var(--evri-blue-900);
}
/* Removed subtitle/support for minimal landing */

.hero__ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}

.glass-button {
  --btn-bg: var(--glass-bg);
  --btn-border: var(--glass-border);
  --btn-shadow: var(--glass-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 16px;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 55%, #eaf2ff 100%);
  border: 1px solid rgba(10, 42, 107, 0.15);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18), 0 4px 12px rgba(2, 6, 23, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -3px 0 rgba(10, 42, 107, 0.16);
  color: #0b0b0b;
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 160ms ease, background 800ms ease;
  overflow: hidden;
  animation: buttonTint 5s ease-in-out infinite;
}
.glass-button span { color: #0b0b0b; }
.glass-button .arrow { opacity: 0.7; color: #0b0b0b; }
.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.26), 0 8px 16px rgba(2, 6, 23, 0.18), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 0 rgba(10, 42, 107, 0.2);
}
.glass-button:active { transform: translateY(0) scale(0.985); }
.glass-button:focus-visible {
  outline: 3px solid var(--evri-blue-400);
  outline-offset: 2px;
}

/* Subtle pulsating blue glow + tint */
@keyframes buttonTint {
  0%, 100% {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 55%, #eaf2ff 100%);
  }
  50% {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 55%, #dbe9ff 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-button { animation: none; }
}

/* Sections */
.how, .benefits, .about, .faq {
  padding: 36px 0;
}
.how h2, .benefits h2, .about h2, .faq h2 {
  color: var(--evri-blue-900);
  margin: 0 0 12px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 12px;
}
.step__num {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: white;
  background: linear-gradient(135deg, var(--evri-blue-700), var(--evri-blue-500));
}

.benefit-list {
  margin: 0; padding: 0 0 0 18px; color: #1f2e57;
}
.benefit-list li { margin-bottom: 6px; }

.faq details {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(99,132,182,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--evri-blue-800);
}

/* Footer */
.site-footer {
  display: none;
}
.site-footer p { margin: 0; text-align: center; }

/* Larger screens */
@media (min-width: 720px) {
  .hero { padding: 0; }
  .hero h1 { font-size: 56px; }
  .subtitle { font-size: 20px; }
  .hero__ctas { grid-template-columns: 1fr; gap: 16px; }
}

/* Modern viewport units for mobile chrome/safari address bar collapse */
@supports (height: 100svh) {
  .hero { height: 100svh; }
}
@supports (height: 100dvh) {
  .hero { height: 100dvh; }
}

/* Mobile-specific background */
@media (max-width: 719px) {
  .hero.has-image .bg-image {
    background: linear-gradient(180deg, rgba(3, 10, 28, 0.25), rgba(3, 10, 28, 0.35)),
                url('/assets/mobile.png') center/cover no-repeat;
    background-color: var(--evri-blue-900);
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    color: var(--text-on-dark);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(37, 99, 235, 0.2), transparent 60%),
                radial-gradient(800px 400px at -10% 0%, rgba(29, 78, 216, 0.18), transparent 40%),
                linear-gradient(180deg, #0b1836 0%, #0a1530 100%);
  }
  .site-header { background: rgba(10, 21, 48, 0.6); border-bottom-color: rgba(164, 189, 245, 0.2); }
  .brand { color: #e8efff; }
  .hero h1 { color: #e9f1ff; }
  .subtitle { color: #b8c8f9; }
  .support { color: #d2defc; }
  .glass-button { color: #0b0b0b; background: linear-gradient(180deg, #ffffff 0%, #f6faff 55%, #eaf2ff 100%); border-color: rgba(10, 42, 107, 0.15); box-shadow: 0 14px 28px rgba(2, 6, 23, 0.18), 0 4px 12px rgba(2, 6, 23, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.85), inset 0 -3px 0 rgba(10, 42, 107, 0.16); }
  .glass-button span, .glass-button .arrow { color: #0b0b0b; }
  .faq details { background: rgba(10, 21, 48, 0.6); border-color: rgba(164, 189, 245, 0.25); }
  .faq summary { color: #cfe0ff; }
  .site-footer { color: #c8d7ff; }
}

