/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  color: #333;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === Typography === */
h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

h4 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

p {
  margin-bottom: 1em;
}

/* === Header / Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.transparent {
  background-color: transparent;
}

.site-header.solid {
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.site-header.solid .nav-link {
  color: #333;
}

.site-header.solid .logo img {
  filter: none;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Dark header text for light pages */
.site-header.header-dark .nav-link,
.site-header.header-dark .hamburger span {
  color: #fff;
}

.site-header.header-light .nav-link,
.site-header.header-light .hamburger span {
  color: #333;
}

.site-header.header-bright .nav-link,
.site-header.header-bright .hamburger span {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Sections === */
.section {
  position: relative;
  overflow: hidden;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
  position: relative;
  z-index: 2;
}

/* Section backgrounds */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Theme: Dark */
.section-dark {
  background-color: #1a1a1a;
  color: #fff;
}

.section-dark .section-overlay {
  background: rgba(0, 0, 0, 0.45);
}

/* Theme: White */
.section-white {
  background-color: #fff;
  color: #333;
}

/* Theme: Bright */
.section-bright {
  background-color: #e8d5b7;
  color: #333;
}

.section-bright .section-overlay {
  background: rgba(232, 213, 183, 0.6);
}

/* Theme: Black */
.section-black {
  background-color: #000;
  color: #fff;
}

.section-black .section-overlay {
  background: rgba(0, 0, 0, 0.55);
}

/* Theme: Bright Inverse */
.section-bright-inverse {
  background-color: #333;
  color: #fff;
}

/* === Hero Sections === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .section-inner {
  padding: 8rem 2.5rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 2px solid currentColor;
  border-radius: 50px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

.btn-light {
  border-color: #fff;
  color: #fff;
}

.btn-light:hover {
  background-color: #fff;
  color: #333;
  border-color: #fff;
}

.btn-dark {
  border-color: #333;
  color: #333;
}

/* === Product Section === */
.product-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.product-info {
  flex: 1;
}

.product-image {
  flex: 1;
  text-align: center;
}

.product-image img {
  max-width: 350px;
  margin: 0 auto;
}

.product-meta {
  margin: 1.5rem 0;
}

.product-meta .daw-list {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* === About Teaser === */
.about-teaser {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-teaser-text {
  flex: 1;
}

.about-teaser-image {
  flex: 1;
  text-align: center;
}

.about-teaser-image img {
  max-width: 300px;
  margin: 0 auto;
}

/* === Quote Sections === */
.quote-section {
  text-align: center;
  padding: 5rem 2.5rem;
}

.quote-section h3 {
  font-style: italic;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.quote-section .attribution {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === Documentation === */
.doc-content h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.doc-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.doc-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.doc-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.doc-content ul li {
  margin-bottom: 0.75rem;
  list-style: disc;
  line-height: 1.6;
}

.doc-content a {
  color: #0066cc;
  text-decoration: underline;
}

.gui-screenshot {
  margin: 3rem 0;
  text-align: center;
}

.gui-screenshot img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.controls-list {
  margin-bottom: 2rem;
}

.controls-list ol {
  padding-left: 1.5rem;
}

.controls-list li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  list-style: decimal;
}

/* === Downloads === */
.download-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-section h4 {
  margin-bottom: 1rem;
}

.download-section p {
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Blog === */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}

.blog-card:first-child {
  padding-top: 0;
}

.blog-card h2 {
  margin-bottom: 0.5rem;
}

.blog-card h2 a:hover {
  opacity: 0.7;
}

.blog-card .blog-meta {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-card .read-more:hover {
  opacity: 0.7;
}

/* Blog Post */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-header h1 {
  margin-bottom: 1rem;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 2rem;
}

.blog-post-body p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-post-body .item-title {
  font-weight: 700;
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
}

.blog-nav a:hover {
  opacity: 0.7;
}

/* === Footer === */
.site-footer {
  padding: 3rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 1;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* === Fade Animation === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section-inner {
    padding: 4rem 1.5rem;
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    display: flex;
  }

  .nav.open .nav-link {
    color: #333;
  }

  .product-section,
  .about-teaser {
    flex-direction: column;
    text-align: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
}
