:root {
  /* Brand Palette: Deep Emerald Green #173B38, Aurora Mint Green #65C9AD, Champagne Gold #D2B88E */
  --primary: #173B38;
  --primary-hover: #102927;
  --primary-light: #EEF4F1;
  --secondary: #65C9AD;
  --secondary-light: #EBF8F4;
  --accent: #D2B88E;
  --accent-light: rgba(210, 184, 142, 0.15);
  --accent-gradient: linear-gradient(135deg, #173B38 0%, #20564F 55%, #4DBB9D 100%);
  --btn-gradient-hover: linear-gradient(135deg, #102927 0%, #1A4741 55%, #3DA689 100%);
  
  /* Neutral Palette: Mist White #F7F8F5, Text Main #1F2933, Text Muted #66736B, Border #DCE5DE */
  --text-main: #1F2933;
  --text-muted: #66736B;
  --text-light: #8C9B92;
  --bg-main: #F7F8F5;
  --bg-alt: #EEF2ED;
  --bg-card: #FFFFFF;
  --border: #DCE5DE;
  --border-focus: #65C9AD;
  --border-hover: #65C9AD;
  
  --shadow-sm: 0 2px 6px rgba(23, 59, 56, 0.05);
  --shadow-md: 0 4px 12px rgba(23, 59, 56, 0.08);
  --shadow-lg: 0 10px 25px rgba(23, 59, 56, 0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

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

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

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--secondary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo img,
.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #ffffff !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 59, 56, 0.15);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 59, 56, 0.22);
}

/* Hero Section with HD Brand Imagery */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 95px 0 75px;
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(180deg, rgba(247, 248, 245, 0.84) 0%, rgba(247, 248, 245, 0.68) 50%, rgba(247, 248, 245, 0.88) 100%),
    url("assets/bywave-hero-desktop.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-section::before,
.hero-section::after {
  display: none;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(210, 184, 142, 0.12);
  color: #7A5D32;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(210, 184, 142, 0.38);
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
  max-width: 900px;
  margin: 0 auto 20px;
  letter-spacing: -0.8px;
}

.hero-intro {
  font-size: 1.16rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

/* Primary Button: Deep Emerald to Mint Green Gradient */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 140px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23, 59, 56, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2.5px);
  background: var(--btn-gradient-hover);
  box-shadow: 0 6px 20px rgba(23, 59, 56, 0.30);
}

/* Secondary Button: White background with Green border */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 130px;
  padding: 0 24px;
  font-size: 1.02rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(23, 59, 56, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--secondary);
  color: var(--primary-hover);
  transform: translateY(-2.5px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  margin: 0 auto;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 800;
}

.metric-item span {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* Section Common */
section {
  padding: 70px 0;
  scroll-margin-top: 80px;
}

.section-bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

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

/* Features Grid & Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardFadeUp 0.5s ease-out backwards;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(101, 201, 173, 0.3);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Media & AI Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.support-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardFadeUp 0.5s ease-out backwards;
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.support-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.support-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--secondary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(101, 201, 173, 0.3);
}

.support-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.support-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.support-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.support-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-tags span {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 500;
}

/* Pricing Section */
.pricing-wrapper {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #fff;
}

table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: left;
}

table.pricing-table caption {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

table.pricing-table th,
table.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

table.pricing-table th {
  background: #F4F7F4;
  font-weight: 700;
  color: var(--primary);
}

table.pricing-table tr:hover td {
  background-color: #FAFCFA;
}

.plan-highlight {
  background: var(--primary-light) !important;
  font-weight: 600;
  color: var(--primary);
}

.table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(23, 59, 56, 0.15);
  white-space: nowrap;
  word-break: keep-all;
  transition: background 0.2s ease, transform 0.15s ease;
}

table.pricing-table th:last-child,
table.pricing-table td:last-child {
  white-space: nowrap;
  text-align: center;
}

.table-cta:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardFadeUp 0.5s ease-out backwards;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--accent); /* Champagne Gold accent */
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.review-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

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

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid rgba(101, 201, 173, 0.3);
}

.author-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--primary);
}

.author-info span {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* FAQ Details/Summary (Default open) */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: rgba(101, 201, 173, 0.5);
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: #FAFCFA;
  border-bottom: 1px solid transparent;
  transition: background-color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  font-size: 1.2rem;
  color: var(--secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  border-bottom-color: var(--border);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 20px 24px;
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 10px;
}

/* Footer (Deep Emerald Tone #102927) */
footer.site-footer {
  margin-top: auto;
  background: #102927;
  color: #A3B5AA;
  padding: 50px 0 30px;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.footer-nav a {
  color: #D6E4DB;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 800px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #7A8E82;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(220, 229, 222, 0.12);
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #7A8E82;
}

/* Content Pages */
.page-container {
  padding: 50px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--primary);
}

.page-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  gap: 16px;
  align-items: center;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--primary);
}

.article-body p {
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--secondary);
}

.article-cta-box {
  background: var(--primary-light);
  border: 1px solid rgba(101, 201, 173, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 36px 0;
  text-align: center;
}

.article-cta-box h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.3rem;
}

.article-cta-box p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* Articles Directory List */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: cardFadeUp 0.5s ease-out backwards;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.article-card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.article-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--secondary);
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-card-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Card scroll fade-in animation */
@keyframes cardFadeUp {
  from {
    opacity: 0.5;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .hero-section {
    padding: 65px 0 50px;
    background-image: 
      linear-gradient(180deg, rgba(247, 248, 245, 0.88) 0%, rgba(247, 248, 245, 0.72) 50%, rgba(247, 248, 245, 0.90) 100%),
      url("assets/bywave-hero-mobile.png");
    background-size: cover;
    background-position: center top;
  }
  .hero-section h1 {
    font-size: 2.1rem;
  }
  .hero-intro {
    font-size: 1.05rem;
  }
  .features-grid,
  .support-grid,
  .reviews-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .nav-container {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav.main-nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  nav.main-nav ul {
    gap: 18px;
    white-space: nowrap;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 14px;
  }
  .hero-section h1 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
