/* ==========================================================================
   P1M DSP — Press Release Teaser & Marketing Intelligence Landing Page
   Theme Tokens & Design System based on p1m_dsp
   ========================================================================== */

:root {
  --p1m-primary: #41449f;
  --p1m-primary-light: #5a5db8;
  --p1m-primary-dark: #1a1d3a;
  --p1m-accent: #f5a623;
  --p1m-accent-hover: #e09516;
  --p1m-accent-glow: rgba(245, 166, 35, 0.35);
  --p1m-primary-glow: rgba(65, 68, 159, 0.45);
  --p1m-success: #22c55e;
  --p1m-success-glow: rgba(34, 197, 94, 0.25);
  
  --bg-dark: #090c18;
  --panel-bg: #11162a;
  --panel-bg-hover: #171d36;
  --panel-border: #1e2646;
  --panel-border-glow: #323d6a;
  
  --text-bright: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--p1m-primary-glow);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Elements */
.bg-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: -100px;
  left: -100px;
  background: var(--p1m-primary-glow);
}

.glow-2 {
  top: 400px;
  right: -150px;
  background: rgba(245, 166, 35, 0.15);
}

.glow-3 {
  bottom: 200px;
  left: 20%;
  background: rgba(90, 93, 184, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-bright);
}

a {
  color: var(--p1m-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #ffffff;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--p1m-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #ffffff 40%, var(--p1m-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header Deck */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: rgba(9, 12, 24, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 38, 70, 0.5);
}

header.site-header.scrolled {
  padding: 12px 0;
  background: rgba(9, 12, 24, 0.95);
  border-bottom-color: var(--panel-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--p1m-primary), var(--p1m-primary-dark));
  border: 1px solid var(--p1m-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--p1m-accent);
  box-shadow: 0 0 15px var(--p1m-primary-glow);
}

.logo-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--p1m-accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--p1m-accent), var(--p1m-accent-hover));
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--p1m-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 166, 35, 0.5);
  color: #000;
}

.btn-secondary {
  background: var(--panel-bg);
  color: var(--text-main);
  border-color: var(--panel-border);
}

.btn-secondary:hover {
  background: var(--panel-bg-hover);
  border-color: var(--p1m-primary-light);
  color: var(--text-bright);
}

.btn-glow {
  background: linear-gradient(135deg, var(--p1m-primary), var(--p1m-primary-dark));
  color: var(--text-bright);
  border-color: var(--p1m-primary-light);
  box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--p1m-primary-glow);
}

/* Hero Section */
section.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(65, 68, 159, 0.2);
  border: 1px solid rgba(90, 93, 184, 0.4);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--p1m-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(65, 68, 159, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p1m-accent);
  box-shadow: 0 0 10px var(--p1m-accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subheadline {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Countdown Deck */
.countdown-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}

.countdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.countdown-item {
  background: var(--bg-dark);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.countdown-val {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--p1m-accent);
}

.countdown-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Form Box */
.hero-form {
  display: flex;
  gap: 10px;
}

.hero-input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-bright);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.hero-input:focus {
  outline: none;
  border-color: var(--p1m-accent);
}

/* Hero Media Preview */
.hero-preview-wrapper {
  position: relative;
}

.preview-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  transition: transform 0.4s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--panel-border);
}

.preview-overlay-info {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 22, 42, 0.9);
}

.preview-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--p1m-accent);
  font-family: var(--font-mono);
}

.preview-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Live Stats Strip */
section.stats-section {
  padding: 40px 0;
  background: var(--panel-bg);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 16px 20px;
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card:last-child {
  border-right: none;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-bright);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Section Common */
section.page-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--p1m-accent);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* Highlights Grid (PR Excerpt) */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--p1m-primary), var(--p1m-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--panel-border-glow);
  box-shadow: var(--shadow-card), 0 0 20px rgba(65, 68, 159, 0.2);
}

.highlight-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(65, 68, 159, 0.2);
  border: 1px solid var(--p1m-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--p1m-accent);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
}

.card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Feature Showcase Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.feature-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: var(--p1m-accent);
  background: var(--panel-bg-hover);
}

.feature-icon-badge {
  min-width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--p1m-primary-dark), var(--p1m-primary));
  border: 1px solid var(--p1m-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--p1m-accent);
}

.feature-content h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Author Executive Spotlight */
.author-card {
  background: linear-gradient(135deg, var(--panel-bg), #0c1022);
  border: 1px solid var(--panel-border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.author-avatar-box {
  text-align: center;
}

.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1m-primary), var(--p1m-accent));
  padding: 4px;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow-glow);
}

.author-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--p1m-accent);
}

.author-name {
  font-size: 20px;
  font-weight: 800;
}

.author-role {
  font-size: 12px;
  color: var(--p1m-accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

.author-bio p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.author-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cred-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(65, 68, 159, 0.2);
  border: 1px solid var(--p1m-primary-light);
  color: var(--text-main);
}

/* Footer */
footer.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--panel-border);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--p1m-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* Modal Window */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

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

.modal-window {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border-glow);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), var(--shadow-glow);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-bright);
}

.modal-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-control {
  background: var(--bg-dark);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-bright);
  font-size: 13px;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--p1m-accent);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--p1m-success);
  color: var(--text-bright);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), var(--p1m-success-glow);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .author-card {
    grid-template-columns: 1fr;
  }
  .highlights-grid, .stats-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--panel-border);
  }
  .stat-card:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
