/* ═══════════════════════════════════════════════════════════════════════
   mAItflow GEO Pages — Shared Styles
   European Agentic AI Workspace
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══ RESET & BASE ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ═══ BRAND TOKENS ═══ */
:root {
  --c-primary:  #667eea;
  --c-secondary:#764ba2;
  --c-accent:   #f093fb;
  --c-dark:     #0f0f23;
  --c-text:     #374151;
  --c-text-light:#6b7280;
  --c-bg:       #ffffff;
  --c-bg-soft:  #f8f9ff;
  --c-border:   #e5e7f0;
  --gradient:   linear-gradient(135deg, #667eea 0%, #764ba2 55%, #f093fb 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.06) 55%, rgba(240,147,251,0.04) 100%);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(102,126,234,0.12);
  --shadow-lg:  0 12px 48px rgba(102,126,234,0.18);
  --radius:     16px;
  --radius-sm:  10px;
  --max-w:      1200px;
}

/* ═══ UTILITY ═══ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--gradient-subtle);
  color: var(--c-primary);
  border: 1px solid rgba(102,126,234,0.15);
}

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(102,126,234,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--c-text); transition: color 0.2s; }
.nav-links a:hover { color: var(--c-primary); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.nav-cta {
  padding: 8px 22px; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: #fff; background: var(--gradient); border: none; cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-login {
  padding: 8px 20px; border-radius: 10px; font-size: 0.88rem; font-weight: 600;
  color: var(--c-primary); border: 1.5px solid rgba(102,126,234,0.25); background: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.nav-login:hover { background: rgba(102,126,234,0.06); border-color: var(--c-primary); transform: translateY(-1px); }
.lang-switcher { display: flex; gap: 4px; margin-right: 8px; }
.lang-switcher a {
  padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; color: var(--c-text-light);
  transition: background 0.2s, color 0.2s;
}
.lang-switcher a:hover, .lang-switcher a.active {
  background: rgba(102,126,234,0.1); color: var(--c-primary);
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
  padding: 100px 0 0;
  font-size: 0.82rem;
  color: var(--c-text-light);
}
.breadcrumb a { color: var(--c-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* ═══ HERO ═══ */
.hero {
  position: relative; padding: 32px 0 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(102,126,234,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(118,75,162,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(240,147,251,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 900; line-height: 1.12; letter-spacing: -0.03em;
  margin: 16px 0 24px;
}
.hero-lead {
  font-size: 1.15rem; color: var(--c-text); line-height: 1.75;
  max-width: 680px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: var(--gradient); border: none; cursor: pointer;
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(102,126,234,0.3);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(102,126,234,0.35); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 0.93rem; font-weight: 600;
  color: var(--c-primary); background: rgba(102,126,234,0.06);
  border: 1px solid rgba(102,126,234,0.15); cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: rgba(102,126,234,0.14); transform: translateY(-1px); }

/* ═══ COMMON SECTION ═══ */
section { padding: 80px 0; }
.section-badge { margin-bottom: 14px; }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.18;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.02rem; color: var(--c-text-light);
  max-width: 680px; line-height: 1.7; margin-bottom: 40px;
}
.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ═══ DEFINITION BOX ═══ */
.definition-section { background: var(--c-bg-soft); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.definition-box {
  max-width: 800px; padding: 40px; background: #fff;
  border-radius: 20px; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm);
}
.definition-box h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; color: var(--c-dark); }
.definition-box p { font-size: 1rem; color: var(--c-text); line-height: 1.8; margin-bottom: 14px; }
.definition-box p:last-child { margin-bottom: 0; }
.definition-box strong { color: var(--c-dark); }

/* ═══ IN SHORT BOX ═══ */
.in-short {
  background: var(--gradient-subtle); border: 1px solid rgba(102,126,234,0.15);
  border-radius: var(--radius); padding: 28px 32px; margin: 32px 0;
}
.in-short h3 { font-size: 1rem; font-weight: 700; color: var(--c-primary); margin-bottom: 10px; }
.in-short p { font-size: 0.95rem; color: var(--c-text); line-height: 1.7; }

/* ═══ TABLE OF CONTENTS ═══ */
.toc {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px 32px; margin: 40px 0;
}
.toc h3 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-light); margin-bottom: 16px; }
.toc ol { list-style: decimal; padding-left: 20px; }
.toc ol li { margin-bottom: 8px; }
.toc ol li a { font-size: 0.92rem; color: var(--c-primary); font-weight: 500; }
.toc ol li a:hover { text-decoration: underline; }

/* ═══ CONTENT SECTIONS ═══ */
.content-section { padding: 60px 0; }
.content-section:nth-child(even) { background: var(--c-bg-soft); }
.content-section h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; color: var(--c-dark); }
.content-section h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 12px; color: var(--c-dark); }
.content-section p { font-size: 1rem; color: var(--c-text); line-height: 1.8; margin-bottom: 16px; }
.content-section ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-section ul li { font-size: 0.95rem; color: var(--c-text); line-height: 1.7; margin-bottom: 8px; }
.content-section ol { list-style: decimal; padding-left: 24px; margin-bottom: 16px; }
.content-section ol li { font-size: 0.95rem; color: var(--c-text); line-height: 1.7; margin-bottom: 8px; }

/* ═══ WORKFLOW DIAGRAM ═══ */
.workflow-diagram {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 40px; margin: 32px 0; text-align: center;
}
.workflow-diagram .flow {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin: 20px 0;
}
.workflow-diagram .flow-node {
  padding: 12px 24px; border-radius: 12px; font-size: 0.9rem; font-weight: 600;
  background: var(--gradient-subtle); border: 1px solid rgba(102,126,234,0.2);
  color: var(--c-dark);
}
.workflow-diagram .flow-node.primary {
  background: var(--gradient); color: #fff; border: none;
}
.workflow-diagram .flow-arrow { font-size: 1.2rem; color: var(--c-primary); }
.workflow-diagram .flow-group {
  display: flex; gap: 8px; padding: 8px; border-radius: 12px;
  background: rgba(102,126,234,0.04); border: 1px dashed rgba(102,126,234,0.2);
}

/* ═══ AGENT CARD ═══ */
.agent-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--c-border); margin: 24px 0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.agent-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
}
.agent-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-dark); margin-bottom: 6px; }
.agent-card .agent-role { font-size: 0.85rem; color: var(--c-primary); font-weight: 600; margin-bottom: 10px; }
.agent-card p { font-size: 0.92rem; color: var(--c-text); line-height: 1.7; }

/* ═══ COMPARISON TABLE ═══ */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-border);
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid var(--c-border);
}
.comparison-table th {
  background: var(--c-bg-soft); font-weight: 700; color: var(--c-dark);
}
.comparison-table td { color: var(--c-text); }
.comparison-table tr:last-child td { border-bottom: none; }

/* ═══ FAQ SECTION ═══ */
.faq-section { padding: 80px 0; }
.faq-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 32px; color: var(--c-dark); }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--c-dark);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--c-primary); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 24px 20px; font-size: 0.93rem; color: var(--c-text); line-height: 1.75; }

/* ═══ CTA SECTION ═══ */
.cta-section {
  padding: 80px 0; text-align: center;
  background: var(--gradient-subtle); border-top: 1px solid var(--c-border);
}
.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.05rem; color: var(--c-text); max-width: 600px; margin: 0 auto 32px; }

/* ═══ INTERNAL LINKS SECTION ═══ */
.related-links {
  padding: 60px 0; border-top: 1px solid var(--c-border);
}
.related-links h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--c-dark); }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.related-grid a {
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--c-border);
  font-size: 0.9rem; font-weight: 500; color: var(--c-primary);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.related-grid a:hover { background: var(--c-bg-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ═══ FOOTER ═══ */
.geo-footer {
  padding: 60px 0 40px; border-top: 1px solid var(--c-border); background: var(--c-bg-soft);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; color: var(--c-text-light); line-height: 1.7; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text-light); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--c-text); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom { border-top: 1px solid var(--c-border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--c-text-light); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .workflow-diagram .flow { flex-direction: column; }
  .agent-card { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
