/* ============================================================
   Entroviz WordPress Theme — Main Stylesheet
   Design: Ultra-minimal, dark-mode SaaS / Architecture AI
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Syne:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #181818;
  --border:      rgba(255,255,255,0.08);
  --border-mid:  rgba(255,255,255,0.12);
  --text:        #f0f0f0;
  --text-muted:  #888;
  --text-dim:    #555;
  --accent:      #3b82f6;
  --accent-glow: rgba(59,130,246,0.18);
  --accent-dark: #1d4ed8;
  --radius:      12px;
  --radius-sm:   8px;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-display:'Syne', sans-serif;
  --max-w:       1200px;
  --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

/* Noise texture overlay (pure CSS, no image file needed) */
@keyframes header-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;

  /* Base glass — light frosting before scroll */
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);

  /* Subtle bottom border */
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  /* Smooth multi-property transition */
  transition:
    background       0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    backdrop-filter  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color     0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow       0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Noise grain layer — pseudo-element overlay */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  border-radius: 0;
}

/* Glowing top accent line — pseudo-element */
.site-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(59, 130, 246, 0) 15%,
    rgba(59, 130, 246, 0.5) 50%,
    rgba(59, 130, 246, 0) 85%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ── Scrolled state: full premium glass ── */
.site-header.scrolled {
  /* Deeper frosted glass */
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(24px) saturate(180%) brightness(0.95);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(0.95);

  /* Crisp inner border */
  border-bottom-color: rgba(255, 255, 255, 0.10);

  /* Multi-layer shadow: ambient + directional + color bloom */
  box-shadow:
    0 1px 0   0    rgba(255, 255, 255, 0.06) inset,
    0 8px 32px -4px rgba(0, 0, 0, 0.55),
    0 2px 8px  -1px rgba(0, 0, 0, 0.35),
    0 0   48px -8px rgba(59, 130, 246, 0.08);
}

/* Activate noise grain on scroll */
.site-header.scrolled::before {
  opacity: 1;
}

/* Activate top glow line on scroll */
.site-header.scrolled::after {
  opacity: 1;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo .logo-svg {
  height: 28px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Primary Nav — list-based with dropdown support */
.primary-nav {
  display: flex;
  align-items: center;
}

.primary-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Top-level <li> */
.primary-nav .nav-menu > li {
  position: relative;
}

/* All nav links */
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.current-menu-item,
.primary-nav a.current-menu-ancestor {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Chevron icon */
.nav-chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.22s ease, color 0.22s ease;
}

.has-dropdown:hover > a .nav-chevron,
.has-dropdown:focus-within > a .nav-chevron {
  transform: rotate(180deg);
  color: var(--text-muted);
}

/* ── Dropdown submenu panel ── */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: rgba(18,18,18,0.96);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 6px;
  list-style: none;
  margin: 0;
  /* hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 200;
}

/* Show submenu on hover / focus-within */
.has-dropdown:hover > .sub-menu,
.has-dropdown:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Submenu items */
.primary-nav .sub-menu li {
  position: relative;
}

.primary-nav .sub-menu a,
.primary-nav .sub-menu .sub-menu-link {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .sub-menu-link:hover,
.primary-nav .sub-menu a.current-menu-item {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}

/* Connector bridge so submenu doesn't disappear when moving cursor */
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

/* Custom logo image sizing — header */
.site-logo .custom-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Footer logo: slightly smaller */
.footer-brand .site-logo .custom-logo {
  height: 28px;
  max-width: 120px;
}

/* Footer logo: flex row so img + text sit side-by-side */
.footer-brand .site-logo {
  display: inline-flex;
  align-items: center;
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-ghost {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.btn-primary {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Hero heading */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title .line-muted {
  color: var(--text-dim);
  display: block;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-hero-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 24px rgba(59,130,246,0.25);
  transform: translateY(-2px);
}

.hero-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 64px;
}

.hero-meta span { margin: 0 6px; }

/* Hero image / video frame */
.hero-media-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  max-width: 1000px;
  margin: 0 auto;
}

.hero-media-wrap img,
.hero-media-wrap video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* Trusted by bar */
.trusted-bar {
  margin-top: 60px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-bar-label {
  font-size: 11.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trusted-logos span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.trusted-logos span:hover { color: var(--text-muted); }

/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   FEATURED WORKFLOWS / GRID SECTION
   ============================================================ */
.workflows-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}

.link-arrow:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.link-arrow svg { width: 14px; height: 14px; }

/* ============================================================
   STUDIO SECTION (dark gradient card)
   ============================================================ */
.studio-section {
  background: var(--bg);
}

.studio-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}

.studio-card-content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.studio-card-media {
  position: relative;
  background: var(--bg3);
  overflow: hidden;
}

.studio-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.4s, transform 0.6s;
}

.studio-card:hover .studio-card-media img {
  opacity: 1;
  transform: scale(1.02);
}

.studio-card-content .section-label { margin-bottom: 12px; }
.studio-card-content .section-title { font-size: clamp(22px, 3vw, 36px); margin-bottom: 16px; }
.studio-card-content .section-desc { margin-bottom: 32px; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-outline {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  transition: all var(--transition);
}

.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

/* ============================================================
   TWO MODES SECTION
   ============================================================ */
.modes-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.mode-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mode-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.mode-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}

.mode-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mode-card:hover .mode-card-media img { transform: scale(1.03); }

.mode-card-body { padding: 28px 28px 32px; }

.mode-card-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}

.mode-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.mode-card-body p a { color: var(--accent); }
.mode-card-body p a:hover { text-decoration: underline; }

/* ============================================================
   TOOLS SECTION
   ============================================================ */
.tools-section {
  border-top: 1px solid var(--border);
}

.tools-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.tools-intro-media img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.tool-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.tool-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
  position: relative;
}

.tool-card-thumb img,
.tool-card-thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.tool-card:hover .tool-card-thumb img,
.tool-card:hover .tool-card-thumb video { transform: scale(1.04); }

.tool-card-body { padding: 20px; }

.tool-card-body h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tool-card-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.tool-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}

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

.tools-more {
  text-align: center;
  margin-top: 40px;
}

/* ============================================================
   ENTERPRISE SECTION
   ============================================================ */
.enterprise-section {
  border-top: 1px solid var(--border);
}

.enterprise-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.enterprise-card-content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enterprise-card-media {
  background: var(--bg3);
  overflow: hidden;
}

.enterprise-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============================================================
   CTA BANNER SECTION
   ============================================================ */
.cta-banner-section {
  border-top: 1px solid var(--border);
}

.cta-banner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}

.cta-banner-content {
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-banner-media {
  background: var(--bg3);
  overflow: hidden;
}

.cta-banner-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-sidebar .section-title { font-size: 28px; margin-bottom: 12px; }

.faq-list { margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
}

.faq-question:hover { color: var(--text); }

.faq-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.faq-icon::after {
  content: '+';
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item.open .faq-icon::after {
  content: '−';
  color: #fff;
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 220px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--text-muted); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 12.5px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .studio-card,
  .enterprise-card,
  .cta-banner { grid-template-columns: 1fr; }

  .studio-card-media,
  .enterprise-card-media,
  .cta-banner-media { min-height: 260px; }

  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-intro { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }

  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    padding: 32px 24px;
    gap: 4px;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  /* Mobile: stack nav-menu vertically */
  .primary-nav.open .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .primary-nav.open .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .primary-nav.open a {
    font-size: 17px;
    padding: 14px 4px;
    width: 100%;
    justify-content: space-between;
  }

  /* Mobile submenu accordion */
  .primary-nav.open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0 0 12px;
  }

  .primary-nav.open .has-dropdown.submenu-open > .sub-menu {
    /* max-height set inline by JS */
  }

  .primary-nav.open .sub-menu a {
    font-size: 15px;
    padding: 10px 4px;
  }

  .modes-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  .studio-card-content,
  .enterprise-card-content,
  .cta-banner-content { padding: 36px 28px; }

  section { padding: 64px 0; }
  .hero-section { padding-top: 110px; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { flex-direction: column; }
  .btn-hero-primary { width: 100%; justify-content: center; }
}
