/* ===========================
   ChatGPT AI — Main Stylesheet
   Palette: deep navy + teal gradient
=========================== */

:root {
  --bg-dark: #050d15;
  --bg-card: #0a1a26;
  --teal-1: #21b6c4;
  --teal-2: #17747f;
  --teal-3: #0e4a54;
  --accent: #22d3e3;
  --text-primary: #e8f4f7;
  --text-secondary: #9bbbc8;
  --text-muted: #5a7a87;
  --border: rgba(33, 182, 196, 0.2);
  --gradient-main: linear-gradient(135deg, #23bbc9 0%, #050d15 70%);
  --gradient-btn: linear-gradient(135deg, #21b6c4 0%, #0e4a54 100%);
  --shadow-glow: 0 0 30px rgba(33, 182, 196, 0.15);
  --radius: 12px;
  --radius-lg: 24px;
  --font-display: 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo span { color: var(--teal-1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(33, 182, 196, 0.12);
}

.nav-cta {
  background: var(--gradient-btn) !important;
  color: var(--text-primary) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
  background: var(--gradient-btn) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(33, 182, 196, 0.18) 0%, transparent 70%),
    var(--bg-dark);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(33, 182, 196, 0.12);
  border: 1px solid rgba(33, 182, 196, 0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--teal-1);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--teal-1), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(33, 182, 196, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33, 182, 196, 0.4);
  color: #fff;
}

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

.btn-secondary:hover {
  background: rgba(33, 182, 196, 0.08);
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-1);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ========== CHAT PREVIEW ========== */
.chat-preview-section {
  padding: 2rem 1.5rem 4rem;
}

.chat-window {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0,0,0,0.4);
}

.chat-header {
  background: linear-gradient(135deg, var(--teal-3), var(--bg-dark));
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.chat-dots { display: flex; gap: 0.4rem; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; }
.chat-dot:nth-child(1) { background: #ff5f57; }
.chat-dot:nth-child(2) { background: #febc2e; }
.chat-dot:nth-child(3) { background: #28c840; }

.chat-title { font-size: 0.9rem; color: var(--text-secondary); margin-left: 0.5rem; }

.chat-body {
  padding: 1.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  animation: fadeIn 0.4s ease;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-msg.ai .chat-avatar {
  background: var(--gradient-btn);
  color: #fff;
}

.chat-msg.user .chat-avatar {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg.ai .chat-bubble {
  background: rgba(33, 182, 196, 0.1);
  border: 1px solid rgba(33, 182, 196, 0.2);
  border-top-left-radius: 4px;
  color: var(--text-primary);
}

.chat-msg.user .chat-bubble {
  background: var(--teal-3);
  border-top-right-radius: 4px;
  color: var(--text-primary);
}

.chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--teal-1); }
.chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  background: var(--gradient-btn);
  border: none;
  border-radius: 10px;
  color: #fff;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-size: 1rem;
}

.chat-send:hover { opacity: 0.85; transform: scale(0.97); }

/* ========== FEATURES ========== */
.section {
  padding: 4rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(33, 182, 196, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(33, 182, 196, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== LANGUAGES ========== */
.languages-section {
  padding: 4rem 1.5rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-card:hover {
  border-color: var(--teal-1);
  color: var(--text-primary);
  background: rgba(33, 182, 196, 0.08);
}

.lang-flag { font-size: 1.2rem; }

/* ========== HOW IT WORKS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}

.step {
  text-align: center;
  counter-increment: steps;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--teal-3);
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p { font-size: 0.9rem; color: var(--text-secondary); }

/* ========== FAQ ========== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
  font-family: inherit;
}

.faq-q:hover { background: rgba(33, 182, 196, 0.06); }

.faq-q .arrow {
  color: var(--teal-1);
  transition: transform 0.25s;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

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

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, rgba(33,182,196,0.15), rgba(14,74,84,0.2));
  border: 1px solid rgba(33,182,196,0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 0 1.5rem 4rem;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

/* ========== CHAT PAGE ========== */
.chat-page {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

.chat-page-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.chat-page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.chat-page-header p { color: var(--text-secondary); font-size: 0.95rem; }

.chat-frame-wrapper {
  flex: 1;
  padding: 0 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.chat-fullscreen {
  width: 100%;
  max-width: 800px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 40px 80px rgba(0,0,0,0.4);
  min-height: 600px;
}

.chat-fullscreen .chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--teal-3), rgba(5,13,21,0.8));
  border-bottom: 1px solid var(--border);
}

.chat-fullscreen .chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-fullscreen .chat-input-area {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(33, 182, 196, 0.1);
  border: 1px solid rgba(33, 182, 196, 0.2);
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-1);
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ========== CONTENT PAGES ========== */
.page-hero {
  background: linear-gradient(135deg, rgba(33,182,196,0.08), transparent);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p { color: var(--text-secondary); font-size: 0.95rem; }

.content-page {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.content-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal-1);
  margin: 2rem 0 0.75rem;
}

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

.content-page p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-page ul {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 1rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  background: rgba(33,182,196,0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-1);
  box-shadow: 0 0 0 3px rgba(33,182,196,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  background: rgba(33,182,196,0.1);
  border: 1px solid rgba(33,182,196,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--teal-1);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(135deg, rgba(33,182,196,0.08) 0%, rgba(5,13,21,0.8) 100%);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--teal-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease both;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5,13,21,0.98); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero { padding: 3.5rem 1.5rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { margin: 0 0 3rem; border-radius: var(--radius); }
  .chat-fullscreen { min-height: 500px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; justify-content: center; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 1.5rem; }
}

/* ========== CHAT API IMPROVEMENTS ========== */
.chat-error {
  background: rgba(220, 50, 50, 0.1);
  border: 1px solid rgba(220, 50, 50, 0.3);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 0.75rem 1rem;
  color: #ff8080;
  font-size: 0.9rem;
  max-width: 80%;
}

.chat-thinking {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  font-style: italic;
}

.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

.chat-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
}

.clear-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.clear-btn:hover {
  border-color: rgba(220, 50, 50, 0.4);
  color: #ff8080;
}

/* ========== GEO LANGUAGE SWITCHER ========== */
.lang-banner {
  background: rgba(33,182,196,0.08);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.lang-banner a {
  color: var(--teal-1);
  font-weight: 600;
}
.lang-banner button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.3rem;
  opacity: 0.6;
}

/* ========== ABOUT US PAGE ========== */
.about-hero-img {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.team-card h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-secondary); }

.mission-box {
  background: linear-gradient(135deg, rgba(33,182,196,0.12), rgba(14,74,84,0.15));
  border: 1px solid rgba(33,182,196,0.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.mission-box h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.mission-box p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== BLOG PAGE ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--teal-3), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-tag {
  display: inline-block;
  background: rgba(33,182,196,0.12);
  color: var(--teal-1);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

/* ========== SITEMAP ========== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.sitemap-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sitemap-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.sitemap-section ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.sitemap-section ul a:hover { color: var(--teal-1); }
.sitemap-section ul a::before { content: '→'; font-size: 0.75rem; color: var(--teal-1); }

/* ========== STREAMING CURSOR ========== */
.streaming-cursor::after {
  content: '▋';
  animation: blink 0.7s infinite;
  color: var(--teal-1);
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========== RESPONSIVE ADDITIONS ========== */
@media (max-width: 768px) {
  .about-hero-img { margin: 1rem auto; }
  .mission-box { padding: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ========== LUCIDE ICONS ========== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon inside buttons / badges */
.btn .icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.hero-badge .icon { width: 1em; height: 1em; vertical-align: -0.15em; }
.feature-icon .icon { width: 1.5em; height: 1.5em; }
.contact-item-icon .icon { width: 1.2em; height: 1.2em; }
.stat-num .icon { width: 1.6rem; height: 1.6rem; }
.blog-card-img .icon { width: 3rem; height: 3rem; opacity: 0.7; }
.mission-box .icon { width: 1.4em; height: 1.4em; vertical-align: -0.2em; }
.nav-cta .icon { width: 1em; height: 1em; }

/* chat specific */
.chat-send .icon { width: 1.1em; height: 1.1em; }
.clear-btn .icon { width: 1.1em; height: 1.1em; }
.key-btn .icon { width: 1em; height: 1em; }
.chat-disclaimer .icon { width: .85em; height: .85em; vertical-align: -0.1em; }
.team-avatar .icon { width: 1.8em; height: 1.8em; }
.footer-col h4 .icon { width: .9em; height: .9em; }

/* ========== CHAT AVATAR ICON ADJUSTMENTS ========== */
.chat-avatar .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

.chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon-only buttons */
.clear-btn .icon,
.chat-send .icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

/* Blog card icons */
.blog-card-img .icon {
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.5;
  color: var(--teal-1);
}

/* Online status icon */
.icon-status {
  width: .6rem;
  height: .6rem;
  fill: var(--teal-1);
  stroke: var(--teal-1);
}

/* Feature card icons */
.feature-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--teal-1);
}

/* Contact item icons */
.contact-item-icon .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--teal-1);
}

/* Mission box icon */
.mission-box h2 .icon {
  width: 1.4rem;
  height: 1.4rem;
  vertical-align: -.2em;
  margin-right: .3rem;
}

/* Error icon in chat bubble */
.chat-error .icon {
  width: 1rem;
  height: 1rem;
  vertical-align: -.15em;
  color: #ff8080;
}

/* Alert/warning icon */
i[data-lucide="alert-triangle"].icon {
  color: #ff8080;
}

/* Key-round icon */
i[data-lucide="key-round"].icon,
i[data-lucide="key-round"] {
  color: inherit;
}

.logo img{
  filter: brightness(0) invert(1);
}

html{
  overflow-x: hidden;
}

.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-hero-svg {
  width: 100%;
  display: block;
  background: var(--bg-card);
}

.article-meta-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem;
}

.article-meta-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(33,182,196,.12);
  color: var(--teal-1);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.article-meta-item .icon {
  width: .9rem;
  height: .9rem;
}

.article-body {
  max-width: 780px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.article-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 .9rem;
  padding-top: .5rem;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-1);
  margin: 1.75rem 0 .6rem;
}

.article-body p {
  color: var(--text-secondary);
  font-size: .97rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body li {
  color: var(--text-secondary);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: .4rem;
}

.article-body strong { color: var(--text-primary); }

.article-body a { color: var(--teal-1); }
.article-body a:hover { color: var(--accent); }

.article-callout {
  background: rgba(33,182,196,.07);
  border-left: 3px solid var(--teal-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}

.article-callout strong { color: var(--teal-1); }

.article-code {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: .85rem;
  line-height: 1.6;
  color: #a8d8e0;
  overflow-x: auto;
  white-space: pre;
}

.article-code .cmt { color: var(--text-muted); }
.article-code .kw  { color: #79d4e0; }
.article-code .str { color: #a8e8a0; }
.article-code .fn  { color: #e0c97a; }

.article-tip {
  background: rgba(33,182,196,.06);
  border: 1px solid rgba(33,182,196,.2);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.article-tip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(33,182,196,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-1);
}

.article-tip-icon .icon { width: 1rem; height: 1rem; }

.article-tip p { margin: 0; font-size: .9rem; }

.article-img-block {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-img-block svg,
.article-img-block img {
  width: 100%;
  display: block;
}

.article-img-caption {
  background: var(--bg-card);
  padding: .6rem 1rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.article-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-secondary);
  font-size: .88rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
  max-width: 48%;
}

.article-nav a:hover {
  border-color: var(--teal-1);
  color: var(--text-primary);
}

.article-nav .icon { width: 1rem; height: 1rem; flex-shrink: 0; }

.article-cta {
  background: linear-gradient(135deg, rgba(33,182,196,.12), rgba(14,74,84,.18));
  border: 1px solid rgba(33,182,196,.25);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}

.article-cta h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.article-cta p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: .95rem; }

/* Blog index card links */
.blog-card-link { text-decoration: none; display: block; color: inherit; }
.blog-card-link .blog-card { cursor: pointer; }
.blog-card-link .blog-card h3 { transition: color .2s; }
.blog-card-link .blog-card:hover h3 { color: var(--teal-1); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: var(--teal-1);
  font-weight: 600;
  margin-top: .75rem;
}
.read-more .icon { width: .85rem; height: .85rem; transition: transform .2s; }
.blog-card:hover .read-more .icon { transform: translateX(3px); }

@media (max-width: 640px) {
  .article-title { font-size: 1.6rem; }
  .article-nav a { max-width: 100%; }
  .article-cta { padding: 1.5rem; }
}