/* Scalper's Paradise - Styles */

:root {
  --bg: #0f1115;
  --fg: #e9f1fb;
  --muted: #9fb0c3;
  --teal: #00dbc2;
  --card: #151924;
  --border: #293042;
  --radius: 1.25rem;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --nav-height: 80px;
  --hero-bg: url('../assets/hero-bg.png');
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --fg: #0d1321;
    --muted: #4a5a70;
    --card: #ffffff;
    --border: #d9e1ee;
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Better link colors for readability */
a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: color-mix(in srgb, var(--teal) 85%, white);
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 32px);
}

/* Typography */
h1, h2, h3 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--nav-height);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--teal);
  outline: none;
}

.nav-cta {
  margin-left: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn--primary {
  background: var(--teal);
  color: #051014;
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.btn--primary:hover,
.btn--primary:focus {
  background: color-mix(in srgb, var(--teal) 90%, white);
  transform: translateY(-1px);
  outline: none;
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: var(--card);
  border-color: var(--teal);
  outline: none;
}

.btn--large {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

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

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Sections */
.section {
  padding-block: clamp(60px, 8vw, 120px);
}

/* Section Background Variations */
.section--why-nq {
  background: linear-gradient(135deg, 
    #00dbc2 0%, 
    #00f5e0 25%, 
    #00dbc2 50%, 
    #00c4ae 75%, 
    #00a899 100%);
}

.section--features {
  background: linear-gradient(45deg, 
    var(--card) 0%, 
    color-mix(in srgb, var(--card) 98%, var(--teal)) 50%, 
    var(--card) 100%);
}

.section--demo {
  background: linear-gradient(180deg, 
    color-mix(in srgb, var(--bg) 97%, var(--teal)) 0%, 
    var(--bg) 30%, 
    color-mix(in srgb, var(--bg) 95%, var(--border)) 100%);
}

.section--community {
  background: linear-gradient(-45deg, 
    var(--card) 0%, 
    color-mix(in srgb, var(--card) 95%, var(--teal)) 100%);
}

.section--requirements {
  background: linear-gradient(135deg, 
    var(--bg) 0%, 
    color-mix(in srgb, var(--bg) 98%, var(--muted)) 100%);
}

.section--pricing {
  background: linear-gradient(45deg, 
    color-mix(in srgb, var(--card) 98%, var(--teal)) 0%, 
    var(--card) 25%, 
    color-mix(in srgb, var(--card) 95%, var(--teal)) 100%);
}

.section--faq {
  background: linear-gradient(180deg, 
    var(--bg) 0%, 
    color-mix(in srgb, var(--bg) 97%, var(--border)) 100%);
}

/* Why NQ Section Styles */
.section--why .why-head { margin-bottom: 2rem; }
.section--why-nq .why-head h2 { color: #051014 !important; }
.section--why-nq .lead { color: #051014 !important; max-width: 64ch; }
.grid--cards { display:grid; gap:1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); margin-bottom: 2rem; }
.section--why .card h3.eyebrow { text-transform: uppercase; letter-spacing:.08em; font-size:.8rem; color:var(--muted); margin-bottom:.25rem; }
.section--why .bullets { margin:.5rem 0 0 1.25rem; }
.section--why .steps { counter-reset: step; margin:.5rem 0 0 1.25rem; }
.section--why .steps li { margin:.15rem 0; }
.section--why .link-out { display:inline-block; margin-top:.5rem; font-weight:600; }
.section--why .microcopy { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.section--why .riskbox { margin-top: 1rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Hero Section */
.section--hero {
  position: relative;
  text-align: center;
  background: 
    linear-gradient(135deg, rgba(15, 17, 21, 0.85) 0%, rgba(15, 17, 21, 0.75) 100%),
    var(--hero-bg, url('../assets/hero-bg.png')) center/cover no-repeat;
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: clamp(520px, 70vh, 900px);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  background: linear-gradient(135deg, var(--fg) 0%, var(--teal) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trust-strip {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
}

.feature-image {
  margin-bottom: 1.5rem;
  border-radius: calc(var(--radius) * 0.75);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.feature-image:hover {
  transform: scale(1.02);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card h3 {
  color: var(--teal);
  margin-bottom: 1rem;
}

/* Demo Section */
.demo-chart {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-chart img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.demo-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.demo-description h3 {
  margin-bottom: 1.5rem;
  color: var(--teal);
}

.demo-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--muted);
}

.demo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.demo-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}

.demo-feature strong {
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

/* Community Section */
.community-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Checklists */
.checklist {
  margin: 1rem 0 2rem 1.5rem;
  text-align: left;
}

.section--requirements .checklist li::marker,
.section--community .checklist li::marker {
  content: "✓ ";
  color: var(--teal);
}

.checklist li {
  margin-bottom: 0.5rem;
}

/* Pricing Section */
.section--pricing {
  text-align: center;
}

.pricing-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.pricing-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.pricing-card--featured {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--card) 95%, var(--teal)) 100%);
  transform: scale(1.05);
}

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #051014;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: var(--fg);
}

.pricing-card--featured .pricing-header h3 {
  color: var(--teal);
}

.pricing-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin: 1.5rem 0;
}

.pricing-amount .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-amount .price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.pricing-amount .period {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.savings-badge {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  display: inline-block;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
  margin: 1.5rem 0 1rem 0;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card--featured {
    transform: none;
  }
  
  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
}

.riskbox {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* FAQ Section */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.5rem;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover,
.faq-item summary:focus {
  background: color-mix(in srgb, var(--card) 95%, var(--teal));
  outline: none;
}

.faq-item p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--teal);
  outline: none;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .nav-content {
    gap: 1rem;
  }
  
  .tv-wrap {
    height: 400px;
  }
  
  .footer-content {
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .tv-wrap {
    height: 300px;
  }
}

/* Event Risk Component Styles */
.section--risk .lead { color: var(--muted); margin-bottom: .5rem; }
.risk-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin: .5rem 0 1rem; }
.badge { display:inline-block; padding:.35rem .6rem; border-radius:999px; font-size:.85rem; border:1px solid var(--border); background:var(--card); }
.pill { display:inline-block; padding:.15rem .45rem; border-radius:999px; font-size:.75rem; font-weight:700; }
.impact-high { background: color-mix(in srgb, var(--teal) 25%, var(--card)); border-color: color-mix(in srgb, var(--teal) 50%, var(--border)); }
.impact-med  { background: color-mix(in srgb, orange 20%, var(--card)); border-color: color-mix(in srgb, orange 50%, var(--border)); }
.impact-low  { background: color-mix(in srgb, gray 20%, var(--card)); border-color: color-mix(in srgb, gray 50%, var(--border)); }
.risk-table { width:100%; border-collapse: collapse; }
.risk-table th, .risk-table td { padding:.65rem .5rem; border-bottom:1px solid var(--border); text-align:left; }
.risk-table th { font-weight:700; }
.risk-today { margin-top:.75rem; }