@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-secondary: #8b5cf6;
  --color-accent: #06b6d4;
  --color-dark: #0f172a;
  --color-dark-light: #1e293b;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: var(--color-dark);
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
}

/* ================================
   INTRO OVERLAY - First Visit
   ================================ */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  color: white;
  max-width: 700px;
  padding: 2rem;
  width: 100%;
}

.intro-logo {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #fff;
}

.intro-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.intro-slides {
  position: relative;
  min-height: 180px;
}

.intro-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  padding: 0 1rem;
}

.intro-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.intro-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.intro-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.intro-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2.5rem;
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.intro-dot:hover {
  background: rgba(255,255,255,0.4);
}

.intro-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.intro-enter-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  font-family: inherit;
}

.intro-enter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* GDPR Consent Slide */
.gdpr-slide {
  display: none;
}

.gdpr-slide.active {
  display: block;
}

.gdpr-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.gdpr-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.gdpr-btn {
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gdpr-btn--accept {
  background: #fff;
  color: #000;
  border: none;
}

.gdpr-btn--accept:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.gdpr-btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}

.gdpr-btn--decline:hover {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.gdpr-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ================================
   ZYPHYR PREVIEW BANNER - Modern Black
   ================================ */
.zyphyr-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0a0a0a;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s ease;
}

.zyphyr-banner.collapsed {
  transform: translateY(-100%);
}

.zyphyr-banner__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.zyphyr-banner__logo {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

.zyphyr-banner__divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
}

.zyphyr-banner__badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.zyphyr-banner__badge--accepted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.zyphyr-banner__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.zyphyr-banner__text {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.zyphyr-banner__text strong {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.zyphyr-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zyphyr-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.zyphyr-banner__btn--accept {
  background: #fff;
  color: #000;
}

.zyphyr-banner__btn--accept:hover {
  background: #f0f0f0;
}

.zyphyr-banner__btn--decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.zyphyr-banner__btn--decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.zyphyr-banner__btn--dashboard {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.zyphyr-banner__btn--dashboard:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.zyphyr-banner__toggle {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: 8px;
}

.zyphyr-banner__toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255,255,255,0.8);
}

.zyphyr-banner__toggle svg {
  transition: transform 0.3s ease;
}

.zyphyr-banner.collapsed .zyphyr-banner__toggle svg {
  transform: rotate(180deg);
}

/* Expand tab when banner collapsed */
.zyphyr-expand-tab {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: #0a0a0a;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}

.zyphyr-expand-tab:hover {
  color: #fff;
  background: #111;
}

.zyphyr-expand-tab.visible {
  display: flex;
}

/* Zyphyr Footer */
.zyphyr-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #0a0a0a;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.zyphyr-footer__text {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.zyphyr-footer__link {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.zyphyr-footer__link:hover {
  color: #fff;
}

/* Main Content - offset for banner */
.main-content {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ================================
   Legacy Preview Banner (fallback)
   ================================ */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.preview-banner__text {
  color: white;
  opacity: 0.95;
}

.preview-banner__cta {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 16px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.preview-banner__cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.preview-banner__badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

/* Action Buttons in Banner */
.preview-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.preview-banner__btn--accept {
  background: #22c55e;
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.preview-banner__btn--accept:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5);
}

.preview-banner__btn--decline {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-banner__btn--decline:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    var(--color-dark);
}

.hero__headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheadline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* ================================
   Features Section
   ================================ */
.features {
  padding: 100px 24px;
  background: var(--color-dark-light);
}

.features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.features__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 60px;
  color: white;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.feature-card__description {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* ================================
   Current Website Section
   ================================ */
.current-site {
  padding: 100px 24px;
}

.current-site__container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.current-site__title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #94a3b8;
}

.current-site__label {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.current-site__screenshot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

.current-site__screenshot img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%) opacity(0.7);
}

.current-site__issues {
  margin-top: 40px;
  text-align: left;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 24px;
}

.current-site__issues-title {
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-site__issues-list {
  list-style: none;
  color: #fca5a5;
}

.current-site__issues-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.current-site__issues-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    var(--color-dark-light);
}

.cta-section__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-section__text {
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 32px;
}

/* ================================
   Footer
   ================================ */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__text {
  color: #64748b;
  font-size: 0.875rem;
}

.footer__link {
  color: var(--color-primary);
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

/* ================================
   Error/Expired States
   ================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.error-page__icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.error-page__title {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}

.error-page__text {
  color: #94a3b8;
  margin-bottom: 32px;
}

/* ================================
   Loading State
   ================================ */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
  .intro-content {
    padding: 1.5rem;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-desc {
    font-size: 0.95rem;
  }

  .intro-enter-btn {
    bottom: 40px;
    padding: 12px 32px;
  }

  .zyphyr-banner {
    padding: 0 12px;
    height: 44px;
  }

  .zyphyr-banner__center {
    display: none;
  }

  .zyphyr-banner__left {
    gap: 10px;
  }

  .zyphyr-banner__btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .zyphyr-footer {
    padding: 10px 16px;
  }

  .preview-banner {
    flex-wrap: wrap;
    text-align: center;
    gap: 12px;
    padding: 12px 16px;
  }

  .preview-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .preview-banner__btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 60px 16px;
    min-height: 70vh;
  }

  .features, .current-site, .cta-section {
    padding: 60px 16px;
  }

  .gdpr-options {
    padding: 0 1rem;
  }
}
