:root {
  --bg-color: #faf9f5;
  --text-primary: #1a1a1a;
  --text-muted: #666666;
  --accent-color: #ff5f40; /* Vibrant coral */
  --accent-light: #fef0ec;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --border-color: rgba(26, 26, 26, 0.08);
  --overlay-bg: rgba(250, 249, 245, 0.7);
  --modal-bg: #ffffff;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;
  position: relative;
}

/* Background grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 680px;
  width: 100%;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.editorial-quote {
  position: relative;
  padding: 3rem 0;
}

.editorial-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.primary-message {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.highlight-trigger {
  position: relative;
  cursor: pointer;
  display: inline;
}

.highlight-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background-color: var(--accent-light);
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight-trigger:hover::after {
  height: 20px;
}

.secondary-message {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 2px solid var(--accent-color);
  padding: 0.5rem 0 0.5rem 1.5rem;
  display: inline-block;
  max-width: 500px;
  animation: slideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.secondary-message:hover {
  border-left-width: 6px;
  padding-left: 1.25rem;
  color: var(--text-primary);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite;
}

/* Centered Modal Overlay & Wrapper */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Redesigned Center Modal Card */
.popup-notification {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  max-width: 720px;
  width: 100%;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.08), 
    0 0 100px rgba(255, 95, 64, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  transform: translateY(40px) scale(0.95) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  opacity: 0;
}

.modal-overlay.show .popup-notification {
  transform: translateY(0) scale(1) rotateX(0);
  opacity: 1;
}

.popup-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.popup-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.popup-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.popup-body p {
  margin-bottom: 1rem;
}

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

.popup-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
  transition: all 0.2s ease;
  word-break: break-word;
  overflow-wrap: break-word;
}

.popup-link:hover {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.popup-action-btn {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--text-primary);
  color: var(--bg-color);
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popup-action-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 95, 64, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 95, 64, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 95, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 64, 0);
  }
}

/* Responsive Scaling */
@media (max-width: 600px) {
  body {
    padding: 1.5rem;
  }
  .primary-message {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .secondary-message {
    font-size: 1rem;
    padding-left: 1.25rem;
  }
  .popup-notification {
    padding: 2rem;
    border-radius: 20px;
  }
  .popup-title {
    font-size: 1.5rem;
  }
}
