/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #ff1b4d;
  --color-primary-dark: #d01640;
  --color-secondary: #1a1a2e;
  --color-background: #0f0f1e;
  --color-surface: #16162a;
  --color-text: #ffffff;
  --color-text-muted: #b8b8c8;
  --color-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 27, 77, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 27, 77, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =========================================
   TOP BAR (STICKY HEADER)
   ========================================= */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
  transition: var(--transition);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar .logo {
  height: 32px;
  width: auto;
  display: block;
}

/* =========================================
   CTA BUTTONS
   ========================================= */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255, 27, 77, 0.3);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 27, 77, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 3px solid rgba(255, 27, 77, 0.5);
  outline-offset: 2px;
}

.cta-primary {
  padding: 14px 40px;
  font-size: 17px;
  box-shadow: 0 4px 24px rgba(255, 27, 77, 0.4);
}

.cta-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  padding: 0;
  text-align: center;
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  width: 100%;
  padding-top: 16px;
  padding-bottom: 16px;
}

.headline {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto 16px;
}

/* =========================================
   TRUST BADGE
   ========================================= */
.trust-badge {
  background: rgba(255, 27, 77, 0.12);
  border: 2px solid rgba(255, 27, 77, 0.3);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 0 auto 16px;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(255, 27, 77, 0.15);
}

.badge-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-content {
  flex: 1;
  text-align: left;
}

.trust-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.trust-text {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 12px 0 12px;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.link-button {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
  padding: 4px 8px;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--color-primary);
}

.link-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.separator {
  color: var(--color-border);
}

.disclaimer {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.disclaimer small {
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================
   BOTTOM BAR (SCROLL INTENT)
   ========================================= */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(15, 15, 30, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.bottom-bar.visible {
  transform: translateY(0);
}

.bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bottom-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

/* =========================================
   MODAL
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 4px;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-body {
  padding: 24px;
  line-height: 1.8;
}

.modal-body p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body strong {
  color: var(--color-text);
}

.modal-body ul {
  margin: 12px 0;
  padding-left: 24px;
}

.modal-body li {
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .hero {
    padding: 0;
    min-height: calc(100vh - 44px);
  }

  .hero .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .headline {
    margin-bottom: 10px;
  }

  .subheadline {
    margin-bottom: 14px;
  }

  .trust-badge {
    padding: 14px 20px;
    margin: 0 auto 14px;
  }

  .badge-icon {
    width: 28px;
    height: 28px;
  }

  .trust-title {
    font-size: 15px;
  }

  .trust-text {
    font-size: 13px;
  }

  .cta-primary {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
  }

  .footer {
    padding: 10px 0 10px;
    margin-top: 14px;
  }

  .bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .bottom-bar .cta-button {
    width: 100%;
  }

  .footer-links {
    font-size: 13px;
  }

  .modal-content {
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding: 6px 0;
  }

  .top-bar .logo {
    height: 26px;
  }

  .top-bar .cta-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 0;
    min-height: calc(100vh - 38px);
  }

  .hero .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .headline {
    margin-bottom: 8px;
  }

  .subheadline {
    margin-bottom: 12px;
  }

  .trust-badge {
    flex-direction: column;
    text-align: center;
    padding: 12px 16px;
    margin: 0 auto 12px;
  }

  .trust-content {
    text-align: center;
  }

  .cta-primary {
    padding: 11px 24px;
    font-size: 14px;
  }

  .footer {
    padding: 8px 0 8px;
    margin-top: 12px;
  }

  .footer-links {
    margin-bottom: 6px;
  }

  .disclaimer small {
    font-size: 10px;
  }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
