/* ===========================
   Base reset + theme
   =========================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

/* Light theme */
:root {
  --color-bg: #f5f5f7;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-text: #0f172a;
  --color-text-muted: #6b7280;
  --color-accent: #2563eb;
  --color-accent-soft: rgba(37, 99, 235, 0.12);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* extras for filters, etc. */
  --color-surface-100: #ffffff;
  --color-surface-200: #e5e7eb;
  --color-surface-300: #e5e7eb;
  --color-surface-400: #d1d5db;
  --color-surface-500: #9ca3af;
  --color-text-secondary: #6b7280;
  --color-border-strong: rgba(15, 23, 42, 0.18);
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
}

/* Dark theme */
html[data-theme="dark"] {
  --color-bg: #020617;
  --color-bg-alt: #020617;
  --color-surface: #020617;
  --color-border: rgba(148, 163, 184, 0.25);
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-accent: #3b82f6;
  --color-accent-soft: rgba(59, 130, 246, 0.12);
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.75);

  --color-surface-100: #020617;
  --color-surface-200: #0f172a;
  --color-surface-300: #0b1120;
  --color-surface-400: #1e293b;
  --color-surface-500: #334155;
  --color-text-secondary: #9ca3af;
  --color-border-strong: rgba(148, 163, 184, 0.5);
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
}

/* ===========================
   Layout helpers
   =========================== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(
      circle at top,
      rgba(37, 99, 235, 0.09),
      transparent 55%
    ),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06), transparent);
}

.section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin: 0 0 0.5rem;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ===========================
   Skip link
   =========================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 50;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

/* ===========================
   Header & nav
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #020617;
  color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.65);
  backdrop-filter: none;
}

html[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.92);
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(circle at 10% 10%, #38bdf8, #2563eb);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

/* Nav */

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

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  color: inherit;
  opacity: 0.86;
}

.nav-list a:hover {
  opacity: 1;
}

/* Mobile nav toggle / close: hidden by default (desktop) */
.nav-toggle,
.nav-close {
  display: none;
}

/* ===========================
   Buttons
   =========================== */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.4);
  color: inherit;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.2);
  color: inherit;
}

.header-cta {
  display: inline-flex;
}

/* ===========================
   Hero
   =========================== */

.hero {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-text {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-meta a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Hero right panel */

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-card {
  background: radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.22),
      transparent 60%
    ),
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.95)
    );
  border-radius: var(--radius-xl);
  color: #e5e7eb;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

html[data-theme="light"] .hero-card {
  background: linear-gradient(to bottom right, #ffffff, #f5f5f7);
  color: #0f172a;
}

.hero-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hero-list li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card-metrics {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.metric-label {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
}

/* ===========================
   Grids & cards
   =========================== */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.card-outline {
  background: transparent;
  border-style: dashed;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.9rem;
  color: var(--color-text-muted);
}

.link {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ===========================
   YouTube section
   =========================== */

.youtube-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.youtube-meta h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.bullet-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

/* support cards under YouTube */
.youtube-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.youtube-support-grid .card {
  height: 100%;
  padding: 1.4rem 1.5rem;
}

/* ===========================
   Newsletter
   =========================== */

.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.12),
    rgba(59, 130, 246, 0.25)
  );
  color: #f9fafb;
}

html[data-theme="light"] .newsletter {
  color: #0f172a;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 0.5rem 0.8rem;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}

.newsletter-embed {
  flex-direction: column;
  align-items: flex-start;
}

.newsletter-frame {
  width: 100%;
  max-width: 520px;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  margin-top: 1.25rem;
}

.newsletter-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2.5rem 0 2rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), #020617);
  color: #e5e7eb;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  align-items: flex-start;
}

.footer-tagline {
  margin: 0.3rem 0 0;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

.footer-links h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  margin-top: 1rem;
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

/* New legal block + icons */

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
  max-width: 320px;
}

.footer-legal-block p {
  margin: 0;
}

.footer-legal-email span {
  font-weight: 500;
  opacity: 0.85;
  margin-right: 0.35rem;
}

.footer-legal-email a {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.9);
}

.footer-legal-email a:hover {
  text-decoration: underline;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-legal-links a {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.9);
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-links .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: text-bottom;
  fill: currentColor;
  opacity: 0.9;
}

.footer-brand h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
}

/* ===========================
   Theme toggle
   =========================== */

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.45);
  background: radial-gradient(
    circle at 0 0,
    rgba(248, 250, 252, 0.8),
    transparent
  );
  padding: 0;
}

.theme-toggle-icon {
  font-size: 0.9rem;
  display: none;
}

html[data-theme="light"] .theme-toggle-icon-light {
  display: inline;
}

html[data-theme="dark"] .theme-toggle-icon-dark {
  display: inline;
}

/* ===========================
   Utilities
   =========================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ===========================
   Fourthwall merch integration
   =========================== */

.merch-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.merch-image {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--color-border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background-color: rgba(15, 23, 42, 0.04);
}

html[data-theme="dark"] .merch-image {
  background-color: rgba(15, 23, 42, 0.6);
}

.merch-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.merch-price {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* description inside merch card */
.merch-card .card-description {
  flex-grow: 1;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* push CTA to bottom */
.merch-card .merch-cta {
  margin-top: auto;
}

/* Footer CTA for merch sections */
.section-footer {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

/* ===========================
   Product filter buttons
   =========================== */

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-100);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.25s ease, transform 0.1s ease;
  user-select: none;
}

.filter-btn:hover {
  background: var(--color-surface-200);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.filter-btn:active {
  transform: translateY(1px);
}

.filter-btn.active {
  background: var(--color-primary-600);
  color: #fff;
  border-color: var(--color-primary-700);
  box-shadow: 0 0 0 4px rgba(60, 130, 255, 0.25);
}

html[data-theme="dark"] .filter-btn {
  background: var(--color-surface-300);
  border-color: var(--color-surface-500);
}

html[data-theme="dark"] .filter-btn:hover {
  background: var(--color-surface-400);
  border-color: var(--color-surface-600);
}

html[data-theme="dark"] .filter-btn.active {
  background: var(--color-primary-500);
  border-color: var(--color-primary-600);
  color: #fff;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .youtube-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .youtube-support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* MOBILE */
@media (max-width: 720px) {
  body.nav-open {
    overflow: hidden; /* stop background from scrolling */
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: #020617;
    color: #e5e7eb;

    padding: 5rem 1.75rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;

    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 9999;
    backdrop-filter: none;
  }

  html[data-theme="light"] .nav {
    background: #0f172a;
    color: #f9fafb;
  }

  .nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    width: 100%;
    flex-direction: column;
    gap: 1.1rem;
  }

  .nav-list a {
    font-size: 1.1rem;
    font-weight: 500;
  }

  .theme-toggle {
    margin-top: 1.25rem;
  }

  .header-cta {
    width: 100%;
    margin-top: 1.25rem;
    justify-content: center;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-footer {
    justify-content: flex-start;
  }

  /* Show hamburger & close only on mobile */
  .nav-toggle,
  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    z-index: 2000;
  }

  /* Floating, glassy hamburger button */
  .nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #ffffff;
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition:
      background 0.2s ease,
      transform 0.15s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    margin: 3px 0;
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }

  .nav-toggle:active {
    transform: translateY(0);
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  /* Apple-style floating close button */
  .nav-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    cursor: pointer;
    padding: 0;
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition:
      background 0.2s ease,
      transform 0.15s ease,
      box-shadow 0.2s ease;
  }

  .nav-close:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.4),
      inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  }

  .nav-close:active {
    transform: translateY(0);
    box-shadow:
      0 3px 12px rgba(0, 0, 0, 0.35),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  /* When menu is open, hide hamburger */
  body.nav-open .nav-toggle {
    opacity: 0;
    pointer-events: none;
  }

  /* Light theme variations */
  html[data-theme="light"] .nav-toggle,
  html[data-theme="light"] .nav-close {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    box-shadow:
      0 3px 14px rgba(0, 0, 0, 0.12),
      inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  html[data-theme="light"] .nav-toggle:hover,
  html[data-theme="light"] .nav-close:hover {
    background: #ffffff;
  }
}

/* Stripe license button */
.btn-stripe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: #635bff; /* Stripe purple */
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 10px 25px rgba(99, 91, 255, 0.45);
}

.btn-stripe:hover {
  background: #5047ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.55);
}

.btn-stripe:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(99, 91, 255, 0.4);
}

.btn-stripe:focus-visible {
  outline: 2px solid #e5e7eb;
  outline-offset: 2px;
}

/* Fix Stripe card alignment */
.license-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.license-card .card-content {
  flex: 1;
}

.license-card .stripe-btn {
  margin-top: auto;
}

/* Blog cards: equal height & aligned "Read article" link */
.card.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-content {
  flex: 1;
}

.blog-card-link {
  margin-top: auto;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;

  /* Hidden by default – JS will show when needed */
  display: none;

  background: #0b0f1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  border-radius: 14px;

  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 9999;

  animation: fadeIn 0.35s ease;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  flex-shrink: 0;
}


/* Brand logo variants */

.brand-logo {
  height: 32px;
  width: auto;
  display: none;
}

html[data-theme="light"] .brand-logo-light {
  display: inline;
}

html[data-theme="dark"] .brand-logo-dark {
  display: inline;
}

/* Text next to the logo */
.brand-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.95;
}

html[data-theme="light"] .brand-text {
  color: #0f172a;
}

html[data-theme="dark"] .brand-text {
  color: #e5e7eb;
}

.nav-list a.blog-link {
  color: var(--color-accent);
  font-weight: 500;
}

.nav-list a.blog-link:hover {
  text-decoration: underline;
}

/* ===========================
   Contact Form Styling
   =========================== */

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-300);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.2s ease,
              background 0.2s ease;
}

/* Light theme adjustments */
html[data-theme="light"] form input,
html[data-theme="light"] form select,
html[data-theme="light"] form textarea {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

/* Hover */
form input:hover,
form select:hover,
form textarea:hover {
  border-color: var(--color-accent);
}

/* Focus */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Textarea height */
form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Labels */
form label {
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

/* Spacing between fields */
form .grid > div,
form > div {
  margin-bottom: 1rem;
}

/* Button spacing */
form button[type="submit"] {
  margin-top: 0.25rem;
}
