/* ByWave VPN Modern Editorial & Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@500;700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

:root {
  --bg-primary: #FAF7F2;
  --bg-secondary: #F3EEE7;
  --bg-card-editorial: #FAF5EE;
  --text-main: #1D1C1A;
  --text-muted: #5C5852;
  --text-light: #8E8880;
  
  --accent-gold: #C29B38;
  --accent-gold-dark: #9E7B22;
  --accent-blue-dark: #0B192C;
  --accent-blue-card: #0F213A;
  --accent-cyan: #00D2FF;
  --accent-cyan-glow: rgba(0, 210, 255, 0.4);
  
  --border-light: rgba(29, 28, 26, 0.1);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --font-serif: 'Cinzel', 'Noto Serif SC', serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-editorial: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-blue-card: 0 20px 40px rgba(7, 16, 31, 0.5);
}

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

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

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

/* Background Canvas & Ambient Light */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  top: -100px;
  right: -100px;
  background: rgba(194, 155, 56, 0.08);
}
.glow-2 {
  top: 40%;
  left: -150px;
  background: rgba(11, 25, 44, 0.05);
}

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

/* Editorial Top Bar / Header */
.top-bar {
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-edition {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--accent-gold-dark);
}

/* Header & Nav */
header.main-header {
  border-bottom: 2px solid var(--text-main);
  padding: 24px 0 20px;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1;
}
.logo-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-top: 4px;
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  position: relative;
}
nav.main-nav a:hover {
  color: var(--accent-gold-dark);
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-gold-dark);
  transition: width var(--transition-fast);
}
nav.main-nav a:hover::after {
  width: 100%;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-main);
  color: #FFF !important;
  padding: 12px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all var(--transition-fast);
}
.btn-cta:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(158, 123, 34, 0.3);
}
.btn-cta::after {
  display: none !important;
}

.btn-cyan-glow {
  background: linear-gradient(135deg, #00D2FF 0%, #0072FF 100%);
  color: #FFF !important;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
}
.btn-cyan-glow:hover {
  box-shadow: 0 6px 30px rgba(0, 210, 255, 0.7);
  transform: translateY(-2px);
}

/* Hero Section (Fig 1 Editorial Style) */
.hero-section {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}
.hero-meta {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}
.hero-author {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.hero-lead {
  display: flex;
  gap: 20px;
}
.dropcap {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--text-main);
  float: left;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-quote-card {
  border-left: 2px solid var(--accent-gold-dark);
  padding-left: 24px;
  background: var(--bg-card-editorial);
  padding: 30px;
  border-radius: 4px;
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--accent-gold-dark);
  margin-bottom: 24px;
}
.quote-stats-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding-top: 20px;
}
.stat-bar {
  flex: 1;
  background: var(--accent-blue-dark);
  border-radius: 2px 2px 0 0;
  transition: height var(--transition-smooth);
  position: relative;
}
.stat-bar:nth-child(1) { height: 75%; background: #3B2E2A; }
.stat-bar:nth-child(2) { height: 60%; background: #7A5B47; }
.stat-bar:nth-child(3) { height: 95%; background: #2D5A4C; }
.stat-bar:nth-child(4) { height: 50%; background: #9E7B22; }

/* Features Section */
.features-section {
  padding: 70px 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-tag {
  font-family: var(--font-serif);
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  color: var(--text-main);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.feature-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  padding: 36px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-editorial);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-gold-dark);
  margin-bottom: 20px;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}
.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing Section (Dark Blue Fig 2 Style) */
.pricing-section {
  background: #060E1A;
  color: #FFF;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.pricing-section .section-title {
  color: #FFF;
}
.pricing-section .section-desc {
  color: #94A3B8;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.price-card {
  background: var(--accent-blue-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-blue-card);
  transition: all var(--transition-fast);
}
.price-card.featured {
  border: 2px solid #00D2FF;
  transform: scale(1.03);
  background: linear-gradient(180deg, #0F2545 0%, #0A192F 100%);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.5);
}
.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: linear-gradient(90deg, #00D2FF 0%, #0072FF 100%);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-name {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 16px;
  font-weight: 500;
}
.price-amount {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}
.price-symbol {
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 4px;
}
.price-val {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-sans);
}
.price-unit {
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 30px;
}

.price-features {
  list-style: none;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #E2E8F0;
}
.price-features li span.icon {
  color: #00D2FF;
  font-size: 0.9rem;
}
.btn-price {
  width: 100%;
  display: block;
  text-align: center;
  padding: 16px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  transition: all var(--transition-fast);
}
.btn-price:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Tutorials & Platform Support Section */
.tutorials-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.platform-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition-fast);
}
.platform-card:hover {
  border-color: var(--accent-gold-dark);
  transform: translateY(-4px);
}
.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.platform-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.platform-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* SEO Keyword Search Cloud Section (Inspired by Fig 3, Fig 4, Fig 5) */
.search-keywords-section {
  padding: 70px 0;
  background: #FFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.keyword-box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}
.keyword-tag {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  color: #334155;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}
.keyword-tag:hover {
  background: var(--accent-gold-dark);
  color: #FFF;
  border-color: var(--accent-gold-dark);
  transform: translateY(-2px);
}
.keyword-tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Articles Grid Section */
.articles-section {
  padding: 80px 0;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.article-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-editorial);
  transition: all var(--transition-fast);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.article-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 600;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text-main);
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.article-link {
  color: var(--accent-gold-dark);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-link:hover {
  text-decoration: underline;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-card-editorial);
}
.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}
.faq-item {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-gold-dark);
  transition: transform var(--transition-fast);
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Footer */
footer.main-footer {
  background: #111;
  color: #A0A0A0;
  padding: 60px 0 30px;
  font-size: 0.9rem;
  border-top: 3px solid var(--accent-gold-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-title {
  color: #FFF;
  font-size: 1.8rem;
}
.footer-desc {
  margin-top: 14px;
  line-height: 1.6;
  color: #888;
}
.footer-title {
  color: #FFF;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #A0A0A0;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 24px;
  color: #666;
  font-size: 0.85rem;
}

/* Article Detail Page Styles */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-light);
  max-width: 860px;
  margin: 0 auto;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.25;
  margin: 16px 0;
  color: var(--text-main);
}
.article-post-meta {
  display: flex;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}
.article-body {
  max-width: 860px;
  margin: 40px auto 60px;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2D2B28;
}
.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}
.article-body h3 {
  font-size: 1.35rem;
  margin: 30px 0 15px;
  color: var(--text-main);
}
.article-body p {
  margin-bottom: 22px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}
.article-body li {
  margin-bottom: 8px;
}
.article-body blockquote {
  border-left: 4px solid var(--accent-gold-dark);
  background: var(--bg-card-editorial);
  padding: 20px 24px;
  margin: 30px 0;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--accent-gold-dark);
}
.article-cta-box {
  background: linear-gradient(135deg, #0B192C 0%, #0F213A 100%);
  color: #FFF;
  padding: 36px;
  border-radius: 16px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-blue-card);
}
.article-cta-box h3 {
  color: #FFF;
  margin-top: 0;
  font-size: 1.6rem;
}
.article-cta-box p {
  color: #94A3B8;
  margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  nav.main-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
