/* =============================================
   OpenClaw.ge — Georgian Summit Brand
   Colors: Obsidian Black / Georgian Red / Electric Cyan / Warm Sand
   ============================================= */

/* BPG MravalTavi — Georgian headings (with Noto Sans Georgian fallback) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
/* BPG MravalTavi via CDN */
@font-face {
  font-family: 'BPG MravalTavi';
  src: url('https://cdn.jsdelivr.net/gh/web-fonts/bpg-fonts@main/BPGMravalTavi.woff2') format('woff2'),
       url('https://fonts.ge/fonts/BPGMravalTavi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --primary: #C8102E;
  --primary-dark: #a00d25;
  --accent: #00F0FF;
  --secondary: #E8D5B7;
  --text: #E8D5B7;
  --text-muted: #888;
  --text-dim: #555;
  --border: #222;
  --border-accent: #333;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-heading-ka: 'BPG MravalTavi', 'Noto Sans Georgian', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* =============================================
   LAYOUT
   ============================================= */

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: -1px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.nav-ai-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

/* Georgian Summit hero enhancements */
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}
.hero-mountains svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-neural {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Slogan watermark */
.hero-slogan-watermark {
  position: absolute;
  bottom: 20px;
  right: 28px;
  font-family: var(--font-heading-ka);
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 240, 255, 0.18);
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .hero-slogan-watermark { display: none; }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 12px;
  color: #fff;
}

.hero-title .dot-ge {
  color: var(--primary);
}

.hero-tagline {
  margin: 24px 0 12px;
}

.hero-tagline .ka {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 6px;
}

.hero-tagline .en {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
}

.hero-tagline-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* AI Statement Banner */
.ai-statement {
  margin: 40px auto;
  max-width: 640px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(200, 16, 46, 0.05));
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px 28px;
  position: relative;
  overflow: hidden;
}

.ai-statement::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.ai-statement-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.ai-statement h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.ai-statement p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ai-statement p strong {
  color: var(--secondary);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

/* =============================================
   SECTION HEADERS
   ============================================= */

.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

/* Georgian headings get BPG MravalTavi */
:lang(ka) .section-title,
.section-title.ka,
[data-lang="ka"] .section-title {
  font-family: var(--font-heading-ka);
}

.section-subtitle {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
}

/* =============================================
   BLOG CARDS
   ============================================= */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(200, 16, 46, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 16, 46, 0.18), 0 0 0 1px rgba(200, 16, 46, 0.12);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-card-lang {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-card-date {
  font-size: 13px;
  color: var(--text-dim);
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
  flex-grow: 1;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.post-card-read-more:hover {
  color: var(--accent);
}

/* =============================================
   SINGLE POST
   ============================================= */

.post-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-lang-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}

.post-date {
  font-size: 14px;
  color: var(--text-dim);
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.post-content {
  max-width: 720px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-heading);
  color: #fff;
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.post-content h2 {
  font-size: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 22px;
  color: var(--secondary);
}

.post-content p {
  margin-bottom: 1.2em;
  color: var(--text);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.3);
}

.post-content a:hover {
  color: var(--primary);
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 1.2em;
}

.post-content li {
  margin-bottom: 0.5em;
}

.post-content strong {
  color: var(--secondary);
  font-weight: 600;
}

.post-content em {
  color: var(--text-muted);
}

.post-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.post-content code {
  font-size: 13px;
  background: var(--bg-hover);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.post-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.about-content {
  padding: 60px 0;
  max-width: 760px;
}

.about-content h2 {
  font-family: var(--font-heading-ka), var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.about-content strong {
  color: var(--secondary);
  font-weight: 600;
}

/* Agent Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
  border-color: rgba(200, 16, 46, 0.5);
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.15);
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--bg-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}

.agent-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.agent-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   DIVIDERS & ACCENTS
   ============================================= */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.accent-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 16px 0;
  border-radius: 2px;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.footer-logo span {
  color: var(--primary);
}

.footer-tagline {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-powered {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* =============================================
   UTILITY
   ============================================= */

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .nav-inner {
    min-height: 56px;
    height: auto;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    font-size: 13px;
  }

  .nav-ai-badge {
    display: none;
  }

  .lang-switcher-link {
    font-size: 11px;
    padding: 2px 8px;
    flex-shrink: 0;
    display: inline-flex !important;
  }

  .hero {
    padding: 60px 0 50px;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .site-nav {
    gap: 10px;
  }

  .site-nav a:not(.lang-switcher-link) {
    font-size: 12px;
  }

  .lang-switcher-link {
    font-size: 11px;
    padding: 2px 7px;
    margin-left: 2px;
  }

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

/* ── Agent model badges ── */
.agent-model {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11px;
  color: #999;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}
.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */

/* Default: show KA, hide EN */
.en-only { display: none !important; }
.ka-only { display: inline; }

/* When lang=en: hide KA, show EN */
[data-lang="en"] .en-only { display: inline !important; }
[data-lang="en"] .ka-only { display: none !important; }

/* Block-level variants */
.en-only-block { display: none !important; }
.ka-only-block { display: block; }
[data-lang="en"] .en-only-block { display: block !important; }
[data-lang="en"] .ka-only-block { display: none !important; }

/* Hero tagline — already uses .ka / .en, add lang-mode overrides */
[data-lang="en"] .hero-tagline .ka { display: none; }
[data-lang="en"] .hero-tagline .en {
  font-size: clamp(18px, 3vw, 24px);
  font-style: normal;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 6px;
}
[data-lang="ka"] .hero-tagline .en {
  /* keep default italic/muted styling — already defined */
}

/* Language switcher link (header nav) */
.lang-switcher-link {
  display: inline-flex !important;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: all 0.2s;
  margin-left: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-switcher-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--secondary);
  color: var(--secondary) !important;
}

/* Language switcher button */
.lang-switcher,
.lang-switcher-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.2s;
  margin-left: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.lang-switcher:hover,
.lang-switcher-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}
.lang-sep { opacity: 0.4; }

/* Active language label highlight */
[data-lang="ka"] .lang-label-ka { color: var(--secondary); }
[data-lang="en"] .lang-label-en { color: var(--secondary); }
