/*
Theme Name: GMESH
Theme URI: https://gmesh.ai
Author: GMESH
Author URI: https://gmesh.ai
Description: Official GMESH website theme — AI agents that live a story. A next-generation framework for autonomous digital agents with evolving personality and finite lifespan.
Version: 2.0.0
License: All Rights Reserved
License URI: https://gmesh.ai
Text Domain: gmesh
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES & RESET (scoped)
   ═══════════════════════════════════════════ */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --text-primary: #e8e6e3;
  --text-secondary: #9a9590;
  --text-muted: #5c5856;
  --accent: #c4a882;
  --accent-soft: rgba(196, 168, 130, 0.12);
  --accent-glow: rgba(196, 168, 130, 0.06);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.10);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scoped reset: only GMESH theme elements, not plugin content */
.site-nav, .site-nav *, .hero, .hero *, .section, .section *,
.page-hero, .page-hero *, .site-footer, .site-footer *,
.mobile-menu, .mobile-menu *,
.contact-section, .contact-section *,
.patent-section, .patent-section * {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; font-weight: 300; font-size: 16px; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--bg-primary); }
a { color: var(--accent); text-decoration: none; transition: opacity 0.3s var(--ease-out); }
a:hover { opacity: 0.75; }

/* WordPress compatibility */
img { max-width: 100%; height: auto; }
.wp-block-image, .wp-block-cover { margin: 0; }

/* ═══════════════════════════════════════════
   PLUGIN COMPATIBILITY (WPForms, Forminator, CF7, etc.)
   ═══════════════════════════════════════════ */
.wpforms-container,
.wpforms-container *,
.forminator-ui,
.forminator-ui *,
.wpcf7,
.wpcf7 *,
.frm_forms,
.frm_forms *,
.gform_wrapper,
.gform_wrapper *,
.wp-block-form,
.wp-block-form * {
  margin: revert;
  padding: revert;
  box-sizing: border-box;
  font-family: var(--font-body);
  line-height: normal;
}

/* Ensure form inputs are visible on dark background */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="number"],
.wpforms-container input[type="password"],
.wpforms-container textarea,
.wpforms-container select,
.forminator-ui input[type="text"],
.forminator-ui input[type="email"],
.forminator-ui input[type="tel"],
.forminator-ui input[type="url"],
.forminator-ui input[type="number"],
.forminator-ui input[type="password"],
.forminator-ui textarea,
.forminator-ui select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-light) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.3s ease !important;
}

.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus,
.forminator-ui input:focus,
.forminator-ui textarea:focus,
.forminator-ui select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}

.wpforms-container label,
.forminator-ui label,
.wpcf7 label {
  color: var(--text-secondary) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
}

.wpforms-container .wpforms-submit,
.forminator-ui .forminator-button,
.wpcf7 input[type="submit"] {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  border: none !important;
  padding: 14px 32px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: opacity 0.3s ease !important;
}

.wpforms-container .wpforms-submit:hover,
.forminator-ui .forminator-button:hover,
.wpcf7 input[type="submit"]:hover {
  opacity: 0.85 !important;
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; position: relative; }
.section-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 32px; display: block;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 300; }
h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15; color: var(--text-primary);
  margin-bottom: 32px; letter-spacing: -0.01em;
}
h2 em, h1 em { font-style: italic; color: var(--accent); }
.body-text { font-size: 17px; line-height: 1.8; color: var(--text-secondary); max-width: 640px; }
.body-text + .body-text { margin-top: 20px; }
.divider { width: 48px; height: 1px; background: var(--accent); opacity: 0.4; margin: 48px 0; }

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
}
.site-nav.scrolled { background: rgba(10, 10, 11, 0.95); }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  font-family: var(--font-body); font-weight: 600;
  font-size: 17px; letter-spacing: 1.5px; color: var(--text-primary);
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.5px;
  color: var(--text-secondary); transition: color 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); opacity: 1; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--text-primary); transition: all 0.3s var(--ease-out); }

.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 11, 0.97); backdrop-filter: blur(24px);
  z-index: 999; padding: 48px 32px; flex-direction: column; gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 28px; font-weight: 300;
  color: var(--text-secondary); transition: color 0.3s var(--ease-out);
}
.mobile-menu a:hover { color: var(--text-primary); opacity: 1; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-family: var(--font-body);
  font-size: 14px; font-weight: 400; letter-spacing: 1px;
  border: 1px solid var(--border-light); background: transparent;
  color: var(--text-primary); cursor: pointer;
  transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.btn:hover {
  border-color: var(--accent); color: var(--accent);
  opacity: 1; background: var(--accent-soft);
}
.btn::after { content: '\2192'; transition: transform 0.3s var(--ease-out); }
.btn:hover::after { transform: translateX(4px); }
a.btn { text-decoration: none; }
.btn-demo { cursor: default; position: relative; }
.btn-demo:hover { border-color: var(--accent); color: var(--accent); opacity: 1; background: var(--accent-soft); }
.btn-demo::after { display: none; }
.demo-tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--accent); font-size: 13px; font-weight: 400;
  letter-spacing: 0.5px; padding: 8px 18px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.demo-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); border: 6px solid transparent;
  border-top-color: var(--border-light);
}
.btn-demo:hover .demo-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 120px 32px 80px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,168,130,0.04) 0%, transparent 70%);
  animation: hero-glow 8s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero-bg::after {
  content: ''; position: absolute; top: 30%; right: 10%;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(196,168,130,0.03);
  animation: float-circle 20s ease-in-out infinite;
}
@keyframes float-circle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; }
.hero-logo { margin-bottom: 48px; opacity: 0; animation: hero-fade-in 1.2s var(--ease-out) 0.2s forwards; }
.hero-logo img { height: 160px; width: auto; }
@media (max-width: 640px) { .hero-logo img { height: 120px; } }
.hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.1;
  color: var(--text-primary); margin-bottom: 28px; letter-spacing: -0.02em;
  opacity: 0; animation: hero-fade-in 1.2s var(--ease-out) 0.4s forwards;
}
.hero-sub {
  font-size: 18px; line-height: 1.75; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 48px;
  opacity: 0; animation: hero-fade-in 1.2s var(--ease-out) 0.6s forwards;
}
.hero-cta { opacity: 0; animation: hero-fade-in 1.2s var(--ease-out) 0.8s forwards; }
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: hero-fade-in 1.2s var(--ease-out) 1.2s forwards;
}
.hero-scroll span { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   PAGE HERO (for inner pages)
   ═══════════════════════════════════════════ */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,168,130,0.03) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15;
  color: var(--text-primary); margin-bottom: 24px; letter-spacing: -0.01em;
  opacity: 0; animation: hero-fade-in 1s var(--ease-out) 0.2s forwards;
}
.page-hero .page-subtitle {
  font-size: 18px; line-height: 1.75; color: var(--text-secondary);
  max-width: 600px;
  opacity: 0; animation: hero-fade-in 1s var(--ease-out) 0.4s forwards;
}

/* ═══════════════════════════════════════════
   PROBLEM
   ═══════════════════════════════════════════ */
.problem { background: var(--bg-primary); border-top: 1px solid var(--border); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.problem-items { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; }
.problem-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.problem-item h4 { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--text-primary); margin-bottom: 8px; }
.problem-item p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════════
   WHAT IS
   ═══════════════════════════════════════════ */
.what-is { background: var(--bg-secondary); }
.what-is-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.what-is-inner h2 { margin-bottom: 40px; }
.what-is-inner .body-text { max-width: 100%; text-align: center; }

/* ═══════════════════════════════════════════
   PARADIGM
   ═══════════════════════════════════════════ */
.paradigm { background: var(--bg-primary); }
.paradigm-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.5;
  color: var(--accent); padding-left: 24px;
  border-left: 2px solid rgba(196,168,130,0.25); margin-top: 40px;
}
@media (max-width: 768px) { .paradigm-content { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════════
   DPS
   ═══════════════════════════════════════════ */
.dps-section { background: var(--bg-secondary); overflow: hidden; }
.dps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.dps-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.seed-core { position: relative; width: 140px; height: 168px; display: flex; align-items: center; justify-content: center; }
.seed-core > img { width: 100%; height: 100%; object-fit: contain; opacity: 0.45; }
.seed-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(196,168,130,0.18);
  animation: seed-pulse 2.4s ease-in-out infinite;
}
.seed-ring:nth-child(2) { inset: -30px; animation-delay: 0.15s; }
.seed-ring:nth-child(3) { inset: -60px; animation-delay: 0.3s; }
.seed-ring:nth-child(4) { inset: -90px; animation-delay: 0.45s; border-style: dashed; }
@keyframes seed-pulse {
  0% { opacity: 0.15; transform: scale(1); }
  8% { opacity: 0.85; transform: scale(1.08); }
  16% { opacity: 0.3; transform: scale(1.02); }
  24% { opacity: 0.7; transform: scale(1.06); }
  36% { opacity: 0.15; transform: scale(1); }
  100% { opacity: 0.15; transform: scale(1); }
}
@media (max-width: 768px) { .dps-grid { grid-template-columns: 1fr; gap: 48px; } .dps-visual { height: 300px; } }

/* ═══════════════════════════════════════════
   FINFUN
   ═══════════════════════════════════════════ */
.finfun-section { background: var(--bg-primary); position: relative; }
.finfun-inner { max-width: 720px; margin: 0 auto; }
.finfun-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.35;
  color: var(--text-primary); text-align: center; margin-bottom: 56px;
}
.finfun-quote em { color: var(--accent); font-style: italic; }
.finfun-dimensions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 56px; }
.finfun-dim {
  text-align: center; padding: 28px 12px;
  border: 1px solid var(--border); transition: all 0.4s var(--ease-out);
}
.finfun-dim:hover { border-color: rgba(196,168,130,0.2); background: var(--accent-glow); }
.finfun-dim-icon { font-size: 24px; margin-bottom: 12px; opacity: 0.7; }
.finfun-dim-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) { .finfun-dimensions { grid-template-columns: repeat(3, 1fr); } }

/* ═══════════════════════════════════════════
   EVOLUTION
   ═══════════════════════════════════════════ */
.evolution-section { background: var(--bg-secondary); }
.evolution-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.evolution-pillars { display: flex; flex-direction: column; }
.evolution-pillar {
  padding: 28px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 20px; align-items: flex-start;
}
.evolution-pillar:first-child { border-top: 1px solid var(--border); }
.pillar-number { font-family: var(--font-display); font-size: 28px; font-weight: 300; color: var(--accent); opacity: 0.5; min-width: 32px; }
.pillar-text h4 { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--text-primary); margin-bottom: 6px; }
.pillar-text p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 768px) { .evolution-content { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════ */
.use-cases { background: var(--bg-primary); }
.use-cases-header { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.use-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.use-case-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 44px 40px; transition: all 0.5s var(--ease-out);
  position: relative; overflow: hidden;
}
.use-case-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.use-case-card:hover { background: var(--bg-card-hover); border-color: rgba(196,168,130,0.12); }
.use-case-card:hover::before { transform: scaleX(1); }
.use-case-label {
  font-size: 11px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: block;
}
.use-case-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--text-primary); margin-bottom: 16px; line-height: 1.3; }
.use-case-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) { .use-cases-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   RESEARCH
   ═══════════════════════════════════════════ */
.research { background: var(--bg-secondary); }
.research-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.research-disciplines { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.discipline-tag {
  padding: 10px 20px; border: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-secondary); letter-spacing: 0.5px;
  transition: all 0.3s var(--ease-out);
}
.discipline-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (max-width: 768px) { .research-inner { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════════
   PATENT
   ═══════════════════════════════════════════ */
.patent-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.patent-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.patent-badge {
  width: 64px; height: 64px;
  border: 1px solid rgba(196,168,130,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.patent-badge svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.patent-text h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--text-primary); margin-bottom: 8px; }
.patent-text p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 640px) { .patent-inner { flex-direction: column; text-align: center; } }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-section { background: var(--bg-secondary); padding: 140px 0; }
.contact-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-inner h2 { margin-bottom: 24px; }
.contact-inner .body-text { max-width: 100%; text-align: center; margin-bottom: 40px; }
.contact-email {
  font-family: var(--font-display); font-size: 22px; color: var(--accent);
  display: inline-block; margin-bottom: 40px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(196,168,130,0.25); transition: border-color 0.3s;
}
.contact-email:hover { border-color: var(--accent); opacity: 1; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-left img { height: 28px; width: auto; opacity: 0.5; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-patent { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--text-secondary); opacity: 1; }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   EDITOR CONTENT ZONE (the_content output)
   ═══════════════════════════════════════════ */
.gmesh-editor-content {
  max-width: 720px;
  margin: 0 auto;
}

.gmesh-editor-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.gmesh-editor-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 24px;
  margin-top: 48px;
}

.gmesh-editor-content h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-primary);
}

.gmesh-editor-content ul,
.gmesh-editor-content ol {
  margin: 16px 0 16px 24px;
  color: var(--text-secondary);
}

.gmesh-editor-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.gmesh-editor-content img {
  margin: 24px 0;
}

.gmesh-editor-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(196,168,130,0.25);
  transition: border-color 0.3s;
}
.gmesh-editor-content a:hover {
  border-color: var(--accent);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════ */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px 256px;
}
