/* ==========================================================================
   99bar.homes - Premium Electric Sapphire Blue Design System
   Rich Blue Gradient Background, Translucent Sapphire Glass Cards & Glowing Accents
   ========================================================================== */

:root {
  --bg-dark: #050b1e;
  --bg-gradient: radial-gradient(at 50% 0%, rgba(37, 99, 235, 0.4) 0px, transparent 60%),
                 radial-gradient(at 0% 40%, rgba(14, 165, 233, 0.3) 0px, transparent 50%),
                 radial-gradient(at 100% 70%, rgba(29, 78, 216, 0.35) 0px, transparent 50%),
                 radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.25) 0px, transparent 65%);

  --bg-card: rgba(13, 27, 62, 0.65);
  --bg-card-hover: rgba(20, 40, 88, 0.82);
  --border-color: rgba(59, 130, 246, 0.18);
  --border-glow: rgba(96, 165, 250, 0.5);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --cyan: #38bdf8;
  --cyan-hover: #0284c7;
  
  --text-main: #f8fafc;
  --text-muted: #93c5fd;
  --text-sub: #cbd5e1;
  
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1240px;
  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Blue Spotlight */
body::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.45) 0%, rgba(56, 189, 248, 0.2) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #93c5fd;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 12, 32, 0.8);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.85rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

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

.nav-links a {
  color: #bfdbfe;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.5);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.7);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(30, 58, 138, 0.35);
  color: var(--text-main);
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(96, 165, 250, 0.45);
  color: #fff;
}

.btn-recommend {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-recommend:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
  color: #fff;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 50px;
  color: #93c5fd;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.4));
}

.hero-desc {
  font-size: 1.2rem;
  color: #93c5fd;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.feature-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: left;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.feature-pill:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.feature-pill h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.feature-pill p {
  font-size: 0.88rem;
  color: #93c5fd;
  line-height: 1.5;
}

/* ==========================================================================
   Specs & Technical Cards
   ========================================================================== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: #93c5fd;
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.specs-section {
  padding: 4rem 0;
}

.specs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #60a5fa);
}

.spec-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(59, 130, 246, 0.2);
  padding-bottom: 0.6rem;
  font-size: 0.95rem;
}

.spec-list li span.label {
  color: #93c5fd;
}

.spec-list li span.value {
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
  padding: 4.5rem 0;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background: rgba(30, 58, 138, 0.25);
  padding: 0.4rem;
  border-radius: 14px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(59, 130, 246, 0.25);
  backdrop-filter: blur(10px);
}

.pricing-tab {
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #93c5fd;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.pricing-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.price-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.price-card.popular {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 10px 35px rgba(14, 165, 233, 0.3);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.price-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0.75rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.price-value span {
  font-size: 0.92rem;
  font-weight: 400;
  color: #93c5fd;
}

.price-desc {
  font-size: 0.88rem;
  color: #93c5fd;
  margin-bottom: 1.75rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.price-features li {
  font-size: 0.92rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-features li::before {
  content: '✓';
  color: #34d399;
  font-weight: bold;
}

/* ==========================================================================
   Article Matrix Section
   ========================================================================== */
.articles-section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

.article-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
}

.article-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.article-card h3 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.article-card h3 a {
  color: var(--text-main);
}

.article-card h3 a:hover {
  color: #60a5fa;
}

.article-excerpt {
  font-size: 0.9rem;
  color: #93c5fd;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #60a5fa;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  padding-top: 0.85rem;
}

/* ==========================================================================
   User Reviews Section
   ========================================================================== */
.reviews-section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.review-user-info h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.review-user-info p {
  font-size: 0.82rem;
  color: #93c5fd;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.review-badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(16px);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: #60a5fa;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #3b82f6;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease;
  padding: 0 1.75rem;
  color: #93c5fd;
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.75rem 1.35rem 1.75rem;
}

/* ==========================================================================
   Article Detail View
   ========================================================================== */
.article-detail-container {
  max-width: 900px;
  margin: 2.5rem auto 5rem;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 2.75rem;
  text-align: center;
}

.article-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.2rem;
  color: #fff;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: #93c5fd;
  font-size: 0.92rem;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body h2 {
  font-size: 1.65rem;
  color: #fff;
  margin: 2.75rem 0 1.1rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  padding-bottom: 0.6rem;
}

.article-body h3 {
  font-size: 1.35rem;
  color: #f1f5f9;
  margin: 2rem 0 0.85rem;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.4rem;
  padding-left: 1.6rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(37, 99, 235, 0.15);
  padding: 1.25rem 1.5rem;
  border-radius: 0 14px 14px 0;
  margin: 1.75rem 0;
  color: #cbd5e1;
}

.article-body code {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: monospace;
}

.article-body pre {
  background: #081028;
  border: 1px solid var(--border-color);
  padding: 1.35rem;
  border-radius: 14px;
  overflow-x: auto;
  margin: 1.75rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(2, 132, 199, 0.25) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2.25rem;
  text-align: center;
  margin: 3.5rem 0;
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.35);
}

.article-cta-box h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
}

/* ==========================================================================
   Footer Section & Task 2 PBN Weight Pipeline
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: rgba(3, 8, 22, 0.95);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 3.5rem 0 2.25rem;
  color: #93c5fd;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #93c5fd;
}

.footer-links a:hover {
  color: #fff;
}

/* Task 2: PBN Friend Link Section - Low-key, clean, small font size */
.footer-pbn-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(59, 130, 246, 0.2);
  font-size: 0.8rem;
  color: #64748b;
}

.footer-pbn-pipeline span {
  color: #475569;
}

.footer-pbn-pipeline a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-pbn-pipeline a:hover {
  color: #94a3b8;
  text-decoration: underline;
}

.copyright-text {
  font-size: 0.82rem;
  color: #475569;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 12, 32, 0.98);
    flex-direction: column;
    padding: 1.75rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
