:root {
  --primary: #213A37;
  --primary-hover: #172a27;
  --primary-light: #e4eae8;
  --secondary: #608F83;
  --secondary-hover: #4e766c;
  --secondary-light: #edf3f1;
  --accent: #D8C292;
  --accent-hover: #c2ab79;
  --accent-light: #f9f5ec;
  --text-main: #172927;
  --text-muted: #3d524e;
  --text-light: #5d7470;
  --bg-main: #F5F6F0;
  --bg-subtle: #eaece3;
  --bg-card: #ffffff;
  --border-color: #dce2db;
  --border-focus: #608F83;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(33, 58, 55, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(33, 58, 55, 0.08), 0 2px 4px -2px rgba(33, 58, 55, 0.05);
  --shadow-lg: 0 10px 18px -3px rgba(33, 58, 55, 0.1), 0 4px 6px -4px rgba(33, 58, 55, 0.04);
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
  --header-height: 74px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 20px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--accent);
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Typography & Anchors */
h1, h2, h3, h4 {
  color: var(--text-main);
  line-height: 1.3;
  font-weight: 700;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary);
  text-decoration: underline;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 3px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(245, 246, 240, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo img {
  height: 38px;
  width: auto;
  max-width: 195px;
  object-fit: contain;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  text-decoration: none;
  background-color: var(--primary-light);
}

/* CTA Buttons with Smooth Hover Lift */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  word-break: keep-all;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  line-height: 1;
}
.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(33, 58, 55, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 58, 55, 0.35);
}
.btn-accent {
  background-color: var(--accent);
  color: #172927 !important;
  box-shadow: 0 4px 14px rgba(216, 194, 146, 0.35);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 194, 146, 0.45);
}
.btn-outline {
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hero Section with High-Definition Background & Slow Subtle Parallax */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(180deg, rgba(245, 246, 240, 0.84) 0%, rgba(245, 246, 240, 0.68) 50%, rgba(245, 246, 240, 0.94) 100%),
    url('assets/bywave-hero-bg.png');
  background-image: 
    linear-gradient(180deg, rgba(245, 246, 240, 0.84) 0%, rgba(245, 246, 240, 0.68) 50%, rgba(245, 246, 240, 0.94) 100%),
    image-set(
      url('assets/bywave-hero-bg.webp') type('image/webp'),
      url('assets/bywave-hero-bg.png') type('image/png')
    );
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  animation: heroSubtleMotion 28s ease-in-out infinite;
}

@keyframes heroSubtleMotion {
  0% {
    background-position: center 48%;
  }
  50% {
    background-position: center 52%;
  }
  100% {
    background-position: center 48%;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c8d5d1;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-title-brand {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.hero-title-sub {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.hero-title-accent {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.35;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.hero-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(96, 143, 131, 0.25);
}
.stat-item h3 {
  font-size: 1.65rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Section Common Styling */
.section-padding {
  padding: 68px 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-tag {
  color: var(--secondary);
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  stroke: var(--primary);
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Streaming & AI Support */
.unlock-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.unlock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.unlock-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.unlock-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.unlock-card-icon.stream {
  background: #f5ebe6;
}
.unlock-card-icon.stream svg {
  width: 26px;
  height: 26px;
  fill: #8c3b2b;
}
.unlock-card-icon.ai {
  background: var(--primary-light);
}
.unlock-card-icon.ai svg {
  width: 26px;
  height: 26px;
  fill: var(--primary);
}
.unlock-card h3 {
  color: var(--primary);
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.service-pill {
  padding: 6px 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pricing Table */
.pricing-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 640px;
}
.pricing-table caption {
  padding: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: right;
  caption-side: bottom;
}
.pricing-table th, .pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.pricing-table th:last-child, .pricing-table td:last-child {
  white-space: nowrap;
  min-width: 140px;
  text-align: center;
}
.pricing-table thead th {
  background: var(--bg-subtle);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}
.pricing-table tbody tr:hover {
  background-color: var(--bg-main);
}
.plan-highlight {
  background-color: var(--secondary-light) !important;
  font-weight: 600;
}
.price-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.price-unit {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-light);
}

/* FAQ Section (Accessible Native details/summary) */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "▾";
  font-size: 1.25rem;
  color: var(--secondary);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}
.faq-content {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
}

/* Testimonials / User Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-stars {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.reviewer-meta h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.reviewer-meta p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Articles and Knowledge Layout */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.article-category {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.article-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.article-card h3 a {
  color: var(--primary);
}
.article-card h3 a:hover {
  color: var(--secondary);
}
.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Article Detail View */
.article-wrapper {
  max-width: 840px;
  margin: 40px auto 60px;
  background: #ffffff;
  padding: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--text-muted);
}
.article-title {
  font-size: 2.1rem;
  margin-bottom: 16px;
  color: var(--primary);
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}
.article-body h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary);
}
.article-body h3 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: var(--primary);
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
  padding-left: 24px;
  color: var(--text-muted);
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--bg-subtle);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-cta-box {
  margin: 40px 0;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-main) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}
.article-cta-box h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Footer Section - STRICTLY ONLY 4 Titles */
.site-footer {
  margin-top: auto;
  background: #172927;
  color: #9bb0ab;
  padding: 48px 0 32px;
  border-top: 1px solid #233e3a;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid #233e3a;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-link {
  color: #d3dedb;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #7b948f;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .features-grid, .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  .site-header {
    height: auto;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .hero-section {
    padding: 56px 0 48px;
    background-position: center 30%;
  }
  .hero-title {
    font-size: 1.6rem;
    gap: 6px;
  }
  .hero-title-brand {
    font-size: 2.4rem;
  }
  .hero-title-sub {
    font-size: 1.55rem;
  }
  .hero-title-accent {
    font-size: 1.55rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .features-grid, .unlock-matrix, .article-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .article-wrapper {
    padding: 20px;
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .section-title {
    font-size: 1.6rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-section {
    animation: none !important;
  }
}
