/* ==========================================================================
   ProfitPanda Products Shared CSS - Design System & Component Library
   ========================================================================== */

:root {
  --bg-dark: #0B0E10;
  --bg-card: #12161A;
  --bg-card-hover: #171C22;
  --bg-input: #1A1F26;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(16, 185, 129, 0.3);
  
  --emerald-primary: #10B981;
  --emerald-glow: #3DFFC2;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  font-family: var(--sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Sticky Top Navigation Bar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 150ms ease;
}

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

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: #12161A;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: background 150ms ease, color 150ms ease;
}

.nav-dropdown-item strong {
  display: block;
  color: var(--text-main);
  font-weight: 600;
}

.nav-dropdown-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-primary);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 16px;
  background: transparent;
  color: var(--emerald-primary);
  border: 1px solid var(--emerald-primary);
  transition: background 150ms ease, color 150ms ease;
}

.nav-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
}

/* --------------------------------------------------------------------------
   Product Hero Header Section
   -------------------------------------------------------------------------- */
.product-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid var(--border-accent);
  color: var(--emerald-primary);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  max-width: 900px;
  margin: 0 auto 16px;
}

.product-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.product-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #10B981 0%, #14B8A6 100%);
  color: #FFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: filter 150ms ease, transform 150ms ease;
}

.btn-cta-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #171C22;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 150ms ease;
}

.btn-cta-secondary:hover {
  border-color: rgba(255,255,255,0.2);
}

/* --------------------------------------------------------------------------
   Product Interface Demo Showcase Container (Above the Fold)
   -------------------------------------------------------------------------- */
.interface-showcase-wrap {
  position: relative;
  background: #0E1216;
  border: 1.5px solid #242934;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.85);
  margin-bottom: 64px;
  overflow: hidden;
}

.interface-badge-tag {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3-Step "How It Works" Section
   -------------------------------------------------------------------------- */
.section-block {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald-primary);
  background: var(--emerald-bg);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--emerald-bg);
  border: 1px solid var(--border-accent);
  color: var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-content h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.feat-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Plan / Availability Panel
   -------------------------------------------------------------------------- */
.plan-panel {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(18, 22, 26, 0.98) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  .plan-panel {
    flex-direction: column;
    text-align: center;
  }
}

.plan-info h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.plan-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   3-Related Products Cross-Links
   -------------------------------------------------------------------------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 850px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, transform 150ms ease;
}

.related-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.related-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Footer & Responsible Gambling
   -------------------------------------------------------------------------- */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 30px;
  background: #080A0C;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-disclaimer {
  max-width: 800px;
  line-height: 1.6;
}

.badge-18 {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--text-dim);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
}
