/* ==========================================================================
   Foundryborne Daggerheart System & Modules - Style System
   Based on Foundryborne Daggerheart color scheme and wiki styling guidelines.
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@500;600;700;800;900&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* Color Variables derived from colors.less */
:root {
  /* Brand Palette */
  --primary-blue: #1488cc;
  --secondary-blue: #2b32b2;

  --golden: #f3c267;
  --golden-10: rgba(243, 194, 103, 0.1);
  --golden-40: rgba(243, 194, 103, 0.4);
  --golden-60: rgba(243, 194, 103, 0.6);
  --golden-90: rgba(243, 194, 103, 0.9);
  --golden-bg: rgba(243, 194, 103, 0.08);
  --golden-secondary: #eaaf42;
  --dark-golden: #2b1d03;

  --chat-blue: #8f87ee;
  --chat-purple: #a778b1;

  --medium-red: #d04747;
  --red: #e54e4e;
  --dark-red: #3c0000;

  --green: #40a640;
  --dark-green: #011b01;

  --dark-blue: #18162e;
  --dark-blue-40: rgba(24, 22, 46, 0.4);
  --dark-blue-80: rgba(24, 22, 46, 0.8);
  --deep-black: #0e0d15;

  --dark: #222222;
  --dark-80: rgba(34, 34, 34, 0.8);

  --beige: #efe6d8;
  --beige-15: rgba(239, 230, 216, 0.15);
  --beige-50: rgba(239, 230, 216, 0.5);
  --beige-80: rgba(239, 230, 216, 0.8);

  /* Typography */
  --font-h1: 'Cinzel Decorative', Georgia, serif;
  --font-h2-h3: 'Cinzel', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Default Dark Theme Mappings */
  --bg-main: #0e0d15;
  --bg-card: rgba(24, 22, 46, 0.7);
  --bg-card-hover: rgba(35, 32, 66, 0.85);
  --bg-header: rgba(14, 13, 21, 0.85);
  --bg-footer: #0e0d15;
  --bg-input: rgba(14, 13, 21, 0.6);
  --text-main: #efe6d8;
  --text-muted: rgba(239, 230, 216, 0.7);
  --text-heading: #f3c267;
  --border-color: rgba(243, 194, 103, 0.3);
  --border-highlight: #f3c267;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --glow-color: rgba(243, 194, 103, 0.25);
  --hero-gradient: radial-gradient(circle at top center, rgba(20, 136, 204, 0.15) 0%, rgba(14, 13, 21, 0.95) 70%);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-main: #f8f5f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-header: rgba(248, 245, 240, 0.88);
  --bg-footer: #efe6d8;
  --bg-input: rgba(239, 230, 216, 0.5);
  --text-main: #18162e;
  --text-muted: rgba(24, 22, 46, 0.75);
  --text-heading: #2b1d03;
  --border-color: rgba(43, 29, 3, 0.25);
  --border-highlight: #eaaf42;
  --shadow-color: rgba(43, 29, 3, 0.1);
  --glow-color: rgba(234, 175, 66, 0.3);
  --hero-gradient: radial-gradient(circle at top center, rgba(243, 194, 103, 0.25) 0%, rgba(248, 245, 240, 0.98) 75%);
}

/* Auto Theme Preference match if no manual override */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-main: #f8f5f0;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-header: rgba(248, 245, 240, 0.88);
    --bg-footer: #efe6d8;
    --bg-input: rgba(239, 230, 216, 0.5);
    --text-main: #18162e;
    --text-muted: rgba(24, 22, 46, 0.75);
    --text-heading: #2b1d03;
    --border-color: rgba(43, 29, 3, 0.25);
    --border-highlight: #eaaf42;
    --shadow-color: rgba(43, 29, 3, 0.1);
    --glow-color: rgba(234, 175, 66, 0.3);
    --hero-gradient: radial-gradient(circle at top center, rgba(243, 194, 103, 0.25) 0%, rgba(248, 245, 240, 0.98) 75%);
  }
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography Rules (as per wiki guide) */
h1 {
  font-family: var(--font-h1);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h2 {
  font-family: var(--font-h2-h3);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-h2-h3);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--golden);
}

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

/* Container Utility */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--golden) 0%, var(--golden-secondary) 100%);
  color: var(--dark-blue);
  border-color: var(--golden);
  box-shadow: 0 4px 15px var(--glow-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 194, 103, 0.5);
  color: var(--deep-black);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--golden);
  color: var(--golden);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-install {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(20, 136, 204, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(20, 136, 204, 0.6);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--golden);
  background: var(--golden-bg);
  color: var(--golden);
}

.badge-blue {
  border-color: var(--primary-blue);
  background: rgba(20, 136, 204, 0.15);
  color: var(--primary-blue);
}

.badge-green {
  border-color: var(--green);
  background: rgba(64, 166, 64, 0.15);
  color: var(--green);
}

/* Persistent Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 100%;
  width: 95%;
  margin: 0 auto;
  gap: 2rem;
}

.nav-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.brand-title {
  font-family: var(--font-h2-h3);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-heading);
  letter-spacing: 0.03em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  width: 100%;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;

}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--golden);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--golden);
}

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

/* Theme Switcher Toggle */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--golden);
  color: var(--golden);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  margin-bottom: 1.2rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px var(--shadow-color);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-preview-frame {
  position: relative;
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(135deg, var(--golden) 0%, rgba(243, 194, 103, 0.2) 50%, var(--primary-blue) 100%);
  box-shadow: 0 20px 40px var(--shadow-color), 0 0 30px var(--glow-color);
  transition: transform 0.4s ease;
}


.hero-preview-img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Featured Installation Banner */
.install-banner {
  margin: 3rem 0;
  padding: 2.5rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.install-banner-content h3 {
  margin-bottom: 0.5rem;
}

.install-manifest-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  gap: 0.8rem;
  max-width: 500px;
  margin-top: 0.8rem;
}

.manifest-code {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--golden);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Screenshot Carousel */
.carousel-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.carousel-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px var(--shadow-color);
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(14, 13, 21, 0.95) 0%, rgba(14, 13, 21, 0) 100%);
  color: #ffffff;
}

.carousel-caption h4 {
  font-family: var(--font-h2-h3);
  color: var(--golden);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 13, 21, 0.7);
  border: 1px solid var(--golden-40);
  color: var(--golden);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.carousel-nav-btn:hover {
  background: var(--golden);
  color: var(--dark-blue);
  box-shadow: 0 0 15px var(--golden);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--golden);
  box-shadow: 0 0 8px var(--golden);
}

/* Feature Cards Grid (2 wide column layout) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2.2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
}

.feature-card:hover,
.module-card:hover,
.team-card:hover,
.hero-preview-frame:hover {
  transform: none !important;
  box-shadow: none !important;
}


.feature-card h3 {
  font-family: var(--font-h2-h3);
  color: var(--text-heading);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
}

/* Feature List & Sublist Styling */
.feature-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.feature-card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.feature-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--golden);
  font-size: 0.8rem;
}

.feature-card ul ul {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-color);
  margin-left: 0.2rem;
}

.feature-card ul ul li {
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-card ul ul li::before {
  content: '›';
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.1rem;
  top: -2px;
}

/* Content / Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.module-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.module-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.module-card-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: var(--golden);
}

.faq-question {
  padding: 1.4rem 1.8rem;
  font-family: var(--font-h2-h3);
  font-size: 1.15rem;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--golden);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.8rem;
  background: rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.8rem 1.5rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  text-align: center;
}


.team-avatar-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--golden) 0%, var(--primary-blue) 100%);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-h2-h3);
  font-size: 1.3rem;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--golden);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-footer p {
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-main);
}

.site-footer a:hover {
  color: var(--golden);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1.2rem;
  transition: filter 0.3s ease;
}

.footer-column h5 {
  font-family: var(--font-h2-h3);
  color: var(--golden);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--golden);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Light Mode Logo Filter (turns white logos dark for high contrast) */
[data-theme="light"] .brand-logo,
[data-theme="light"] .footer-brand-logo {
  filter: brightness(0.1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo,
  :root:not([data-theme="dark"]) .footer-brand-logo {
    filter: brightness(0.1);
  }
}

/* Modal Lightbox */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 13, 21, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--golden);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--golden);
  color: var(--golden);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--golden);
  color: var(--dark-blue);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .install-banner {
    flex-direction: column;
    text-align: center;
  }

  .install-manifest-box {
    max-width: 100%;
  }

  .carousel-slide img {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
