/* ============================================
   MineralIntel — Premium Dark Theme
   Bloomberg Terminal meets Modern SaaS
   ============================================ */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1420;
  --bg-card: #131a2b;
  --bg-card-hover: #182035;
  --bg-elevated: #1a2238;
  --bg-input: #0d1220;
  --border: #1e2a42;
  --border-accent: #2a3a5c;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.3);
  --gold: #f59e0b;
  --gold-dim: rgba(245, 158, 11, 0.15);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.15);
  --purple: #8b5cf6;
  --orange: #f97316;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glass: rgba(19, 26, 43, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --transition: 0.2s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #33e0be; }

/* Layout */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #0099ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #000;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #33e0be;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
              radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Search Bar */
.hero-search {
  max-width: 700px;
  margin: 0 auto 48px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition);
}

.hero-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow);
}

.hero-search input::placeholder {
  color: var(--text-muted);
}

.hero-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-search button:hover {
  background: #33e0be;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Stats Row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.card-gradient {
  position: relative;
  overflow: hidden;
}

.card-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--blue), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   Dashboard Sections
   ============================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.dash-card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-card-header .badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

.dash-card-body {
  padding: 0;
}

/* List Items in Dashboard Cards */
.dash-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(30, 42, 66, 0.5);
  transition: background var(--transition);
  cursor: pointer;
}

.dash-item:last-child { border-bottom: none; }

.dash-item:hover { background: var(--bg-card-hover); }

.dash-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.dash-item-content { flex: 1; min-width: 0; }

.dash-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item-value {
  text-align: right;
  flex-shrink: 0;
}

.dash-item-value .val {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.dash-item-value .unit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-active, .badge-producing {
  background: var(--green-dim);
  color: var(--green);
}

.badge-permitted {
  background: var(--blue-dim);
  color: var(--blue);
}

.badge-completed {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-shutin {
  background: var(--gold-dim);
  color: var(--gold);
}

.badge-plugged, .badge-expired {
  background: var(--red-dim);
  color: var(--red);
}

.badge-live {
  background: var(--green-dim);
  color: var(--green);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag-formation { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.tag-operator { background: var(--blue-dim); color: var(--blue); border-color: transparent; }
.tag-county { background: var(--gold-dim); color: var(--gold); border-color: transparent; }

/* ============================================
   Data Tables
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 5;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.data-table th:hover { color: var(--text); }

.data-table th .sort-arrow {
  margin-left: 4px;
  opacity: 0.4;
}

.data-table th.sorted .sort-arrow { opacity: 1; color: var(--accent); }

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(30, 42, 66, 0.4);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--transition);
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table .mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
}

.data-table .positive { color: var(--green); }
.data-table .negative { color: var(--red); }

/* ============================================
   Features Section
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.pricing-price .currency { font-size: 1.5rem; vertical-align: super; color: var(--text-secondary); }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-features li.disabled::before {
  content: '\2717';
  color: var(--red);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #33e0be;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-gold {
  background: var(--gold);
  color: #000;
}

.btn-gold:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   Filters & Controls
   ============================================ */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-select, .filter-input {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 140px;
}

.filter-select:focus, .filter-input:focus {
  border-color: var(--accent);
}

.filter-select option {
  background: var(--bg-card);
  color: var(--text);
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================
   Well Detail / Expanded Row
   ============================================ */
.well-detail {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius);
  margin: 8px 0;
  border: 1px solid var(--border);
}

.well-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) { .well-detail-grid { grid-template-columns: repeat(2, 1fr); } }

.well-detail-item label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}

.well-detail-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Chart Placeholder */
.chart-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.production-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100px;
  padding: 0 8px;
  justify-content: center;
}

.production-bar {
  width: 20px;
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
  position: relative;
}

.production-bar.oil { background: var(--green); }
.production-bar.gas { background: var(--accent); opacity: 0.6; }

/* ============================================
   Paywall Blur
   ============================================ */
.paywall-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  position: relative;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 23, 0.6);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  z-index: 10;
}

.paywall-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h2 { margin-bottom: 8px; font-size: 1.5rem; }
.modal .sub { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.9rem; }

.modal .form-group {
  margin-bottom: 16px;
}

.modal label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.modal input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.modal input:focus { border-color: var(--accent); }

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

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

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

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--text-muted); font-size: 0.85rem; }
.footer ul a:hover { color: var(--text); }

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

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination button {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button:hover { border-color: var(--accent); color: var(--text); }
.pagination button.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

.pagination .page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 8px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   Utility Classes
   ============================================ */
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }

/* Page wrapper for sub-pages */
.page-wrapper {
  padding-top: 84px;
  min-height: 100vh;
}

.page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-xs);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Quick inline chart bar for tables */
.inline-bar {
  display: inline-block;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
}

/* ============================================
   Map Preview (Homepage)
   ============================================ */
.map-preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .map-preview-section { grid-template-columns: 1fr; }
}

.map-preview-content { }

.map-preview-visual { }

.map-preview-placeholder {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  overflow: hidden;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,42,66,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,42,66,0.3) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-dots { position: absolute; inset: 0; z-index: 2; }

.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: mapDotPulse 3s ease-in-out infinite;
}

.map-dot.lg {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  animation: mapDotPulse 4s ease-in-out infinite;
}

@keyframes mapDotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Feature Quick Links (Homepage) */
.feature-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.feature-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.feature-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-link-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-link-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   Runsheet Timeline
   ============================================ */
.runsheet-timeline {
  position: relative;
  padding-left: 32px;
}

.runsheet-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  cursor: pointer;
}

.timeline-node {
  position: absolute;
  left: -32px;
  top: 16px;
  width: 32px;
  display: flex;
  justify-content: center;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-accent);
  border: 2px solid var(--bg-primary);
  z-index: 2;
  transition: all var(--transition);
}

.timeline-dot.dot-current {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline-entry:hover .timeline-dot {
  background: var(--accent);
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: all var(--transition);
}

.timeline-entry:hover .timeline-card {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.timeline-entry.timeline-current .timeline-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0,212,170,0.05), var(--bg-card));
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
}

.timeline-doc-type {
  margin-bottom: 10px;
}

.timeline-transfer {
  margin-bottom: 10px;
}

.timeline-party {
  font-size: 0.88rem;
  line-height: 1.5;
}

.timeline-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.timeline-arrow {
  color: var(--accent);
  font-size: 1rem;
  padding: 2px 0;
  opacity: 0.5;
}

.timeline-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.timeline-notes {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}

/* ============================================
   Chart Containers
   ============================================ */
.chart-wrapper {
  position: relative;
}

.chart-wrapper canvas {
  width: 100% !important;
}

/* ============================================
   Region Cards (Homepage)
   ============================================ */
.region-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) { .region-cards { grid-template-columns: 1fr; } }

.region-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.region-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.region-card--texas::before { background: linear-gradient(90deg, var(--accent), #0099ff); }
.region-card--texas:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(0, 212, 170, 0.15); }

.region-card--gom::before { background: linear-gradient(90deg, var(--blue), #6366f1); }
.region-card--gom:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15); }

.region-card--coming::before { background: linear-gradient(90deg, var(--text-muted), var(--border-accent)); }
.region-card--coming { cursor: default; }
.region-card--coming:hover { transform: none; box-shadow: none; border-color: var(--border-accent); }

.region-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.region-card--texas .region-card-tag { background: var(--accent-dim); color: var(--accent); }
.region-card--gom .region-card-tag { background: var(--blue-dim); color: var(--blue); }
.region-card--coming .region-card-tag { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

.region-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.region-card .region-wells {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.region-card--texas .region-wells { color: var(--accent); }
.region-card--gom .region-wells { color: var(--blue); }

.region-card .region-stats {
  list-style: none;
  margin-bottom: 20px;
}

.region-card .region-stats li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-card .region-stats li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.region-card--texas .region-stats li::before { background: var(--accent); }
.region-card--gom .region-stats li::before { background: var(--blue); }
.region-card--coming .region-stats li::before { background: var(--text-muted); }

.region-card .region-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.region-card:hover .region-cta { gap: 10px; }

.region-card--texas .region-cta { color: var(--accent); }
.region-card--gom .region-cta { color: var(--blue); }
.region-card--coming .region-cta { color: var(--text-muted); }

.region-card .coming-states {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============================================
   Coverage Section
   ============================================ */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.coverage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.coverage-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coverage-card--texas h3 { color: var(--accent); }
.coverage-card--gom h3 { color: var(--blue); }
.coverage-card--coming h3 { color: var(--text-muted); }

.coverage-card .coverage-list {
  list-style: none;
}

.coverage-card .coverage-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(30, 42, 66, 0.3);
}

.coverage-card .coverage-list li:last-child { border-bottom: none; }

.coverage-card .coverage-list li::before {
  content: '\2713';
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.coverage-card--texas .coverage-list li::before { color: var(--accent); }
.coverage-card--gom .coverage-list li::before { color: var(--blue); }
.coverage-card--coming .coverage-list li::before { content: '\2022'; color: var(--text-muted); }

/* Notify email capture */
.notify-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.notify-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
}

.notify-form input:focus { border-color: var(--accent); }

.notify-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.notify-form button:hover { background: #33e0be; }

/* Coming Soon badge */
.badge-coming {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

/* ============================================
   Region Filter (Wells page)
   ============================================ */
.region-toggle {
  display: flex;
  gap: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.region-toggle button {
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-right: 1px solid var(--border);
}

.region-toggle button:last-child { border-right: none; }

.region-toggle button:hover { color: var(--text); background: rgba(255,255,255,0.03); }

.region-toggle button.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ============================================
   GOM Page Styles
   ============================================ */
.gom-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 1024px) { .gom-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gom-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.gom-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.gom-stat-card .gom-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  font-family: 'JetBrains Mono', monospace;
}

.gom-stat-card .gom-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 4px;
}

.gom-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.gom-section-header h2 {
  font-size: 1.3rem;
}

/* ============================================
   HOMEPAGE REDESIGN — Bloomberg meets SaaS
   ============================================ */

/* Container — tighter than main site */
.hp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sections — tight spacing */
.hp-section {
  padding: 56px 0;
}

.hp-section--dark {
  background: var(--bg-secondary);
}

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

.hp-section-head h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #c8d0dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-section-head p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- HERO ---- */
.hp-hero {
  position: relative;
  padding: 120px 0 64px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #080c14 0%, var(--bg-primary) 100%);
}

.hp-hero-bg {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.hp-hero-inner {
  position: relative;
  z-index: 1;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hp-hero-h1 {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-sub {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Search */
.hp-search {
  max-width: 680px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.hp-search-icon {
  position: absolute;
  left: 18px;
  font-size: 1.1rem;
  opacity: 0.4;
  pointer-events: none;
}

.hp-search input {
  width: 100%;
  padding: 16px 110px 16px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.hp-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 24px rgba(0,0,0,0.3);
}

.hp-search input::placeholder { color: var(--text-muted); }

.hp-search button {
  position: absolute;
  right: 6px;
  padding: 10px 22px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}

.hp-search button:hover {
  background: #33e0be;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Stats row — inline, tight */
.hp-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hp-stat-item strong {
  color: var(--accent);
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.hp-stat-sep {
  color: var(--border-accent);
  margin: 0 4px;
}

/* Hero CTAs */
.hp-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hp-cta-btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---- FEATURES GRID (3x2) ---- */
.hp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .hp-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hp-features-grid { grid-template-columns: 1fr; } }

.hp-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all var(--transition);
}

.hp-feat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.08);
}

.hp-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hp-feat-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hp-feat-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- REGIONS — two cards ---- */
.hp-regions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.hp-region-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.hp-region-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.hp-region--tx::before { background: linear-gradient(90deg, var(--accent), #0099ff); }
.hp-region--gom::before { background: linear-gradient(90deg, var(--blue), #6366f1); }

.hp-region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.hp-region--tx:hover { border-color: var(--accent); }
.hp-region--gom:hover { border-color: var(--blue); }

.hp-region-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 10px;
}

.hp-region-tag--blue {
  background: var(--blue-dim);
  color: var(--blue);
}

.hp-region-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.hp-region-nums {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hp-region-nums strong {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

.hp-region--gom .hp-region-nums strong {
  color: var(--blue);
}

.hp-region-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.hp-region-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.hp-region-cta--blue { color: var(--blue); }

.hp-region-card:hover .hp-region-cta { gap: 8px; }

/* Coming Soon banner */
.hp-coming-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-wrap: wrap;
}

.hp-coming-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 3px 10px;
  background: rgba(100,116,139,0.15);
  border-radius: 100px;
  flex-shrink: 0;
}

.hp-coming-states {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.hp-coming-form {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.hp-coming-form input {
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  width: 180px;
}

.hp-coming-form input:focus { border-color: var(--accent); }

.hp-coming-form button {
  padding: 8px 14px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.hp-coming-form button:hover { background: #33e0be; }

/* ---- WHO IT'S FOR ---- */
.hp-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.hp-audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.hp-audience-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.08);
}

.hp-audience-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hp-audience-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.hp-audience-quote {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 8px;
}

.hp-audience-card > p:last-child {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- COMPARE TABLE ---- */
.hp-compare-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.hp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.hp-compare-table thead {
  background: var(--bg-elevated);
}

.hp-compare-table th {
  padding: 14px 18px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.hp-compare-table th:first-child {
  text-align: left;
}

.hp-compare-table td {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(30, 42, 66, 0.4);
  text-align: center;
  color: var(--text-secondary);
}

.hp-compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.hp-compare-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.hp-compare-highlight {
  background: rgba(0, 212, 170, 0.04) !important;
}

.hp-compare-price {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.hp-compare-price--alt {
  color: var(--gold);
}

.hp-check {
  color: var(--green);
  font-weight: 700;
  font-size: 1rem;
}

.hp-check--slow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
}

.hp-x {
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.7;
}

.hp-compare-total-row td {
  border-top: 2px solid var(--border-accent);
  border-bottom: none;
  padding-top: 14px;
}

.hp-compare-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ---- PRICING ---- */
.hp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) { .hp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.hp-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.hp-price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hp-price-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.06) 0%, var(--bg-card) 100%);
}

.hp-price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 100px;
  letter-spacing: 0.06em;
}

.hp-price-tier {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.hp-price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 2px;
}

.hp-price-dollar {
  font-size: 1.3rem;
  vertical-align: super;
  color: var(--text-secondary);
}

.hp-price-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.hp-price-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.hp-price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}

.hp-price-features li {
  padding: 5px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-price-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.hp-price-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.hp-price-features li.disabled::before {
  content: '\2717';
  color: var(--red);
}

/* ---- TESTIMONIALS ---- */
.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .hp-testimonials-grid { grid-template-columns: 1fr; } }

.hp-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.hp-testimonial .testimonial-stars {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.hp-testimonial p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-style: italic;
}

.hp-testimonial p strong {
  color: var(--text);
}

.hp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- CTA BANNER ---- */
.hp-cta-banner {
  padding: 48px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d1525 100%);
  text-align: center;
}

.hp-cta-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #c8d0dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-cta-inner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ---- FOOTER (homepage variant) ---- */
.hp-footer {
  padding: 40px 0 24px;
}

.hp-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (max-width: 900px) { .hp-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .hp-footer-grid { grid-template-columns: 1fr 1fr; } }

.hp-footer-brand p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 8px;
  line-height: 1.6;
}

/* ---- RESPONSIVE — Hero ---- */
@media (max-width: 768px) {
  .hp-hero { padding: 100px 0 48px; }
  .hp-hero-h1 { font-size: 2.2rem; }
  .hp-hero-sub { font-size: 0.95rem; }
  .hp-stats-row { font-size: 0.78rem; gap: 4px; }
  .hp-stat-item strong { font-size: 0.8rem; }
  .hp-hero-ctas { flex-direction: column; align-items: center; }
  .hp-cta-btn { width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
  .hp-hero-h1 { font-size: 1.8rem; }
  .hp-coming-banner { flex-direction: column; align-items: flex-start; }
  .hp-coming-form { width: 100%; }
  .hp-coming-form input { flex: 1; width: auto; }
}

/* ============================================
   Wells Page — Compact Bloomberg Layout
   ============================================ */
.wells-page {
  padding-top: 64px;
}

.wells-hero {
  padding: 12px 0 0;
  margin-bottom: 0;
}

.wells-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.wells-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wells-hero-title h1 {
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.wells-stats-row {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.wells-subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.wells-pill {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.wells-pill:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

.wells-pill.active {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.wells-controls {
  padding: 10px 0 8px;
}

.wells-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wells-controls-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.wells-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wells-filters .filter-input,
.wells-filters .filter-select {
  padding: 6px 10px;
  font-size: 0.8rem;
  min-width: 120px;
  border-radius: var(--radius-xs);
}

.wells-page .table-container {
  margin-top: 0;
}

.wells-table th {
  padding: 8px 12px;
  font-size: 0.7rem;
}

.wells-table td {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.wells-page .pagination {
  margin-top: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .wells-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .wells-subnav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wells-filters {
    flex-direction: column;
  }
  .wells-filters .filter-input,
  .wells-filters .filter-select {
    width: 100%;
    min-width: unset;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .nav, .footer, .filters-bar, .btn, .modal-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .timeline-card, .well-detail { background: #fff; border-color: #ccc; }
  .text-accent, .text-green, .text-gold { color: #000 !important; }
  .page-wrapper { padding-top: 0; }
}
