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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #f3f4f6;
}
.nav-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.nav-logo { font-size: 1.125rem; font-weight: 600; color: #111827; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.875rem; color: #4b5563; transition: color 0.15s; }
.nav-links a:hover { color: #111827; }
.nav-login {
  font-size: 0.875rem; font-weight: 500; color: #fff !important;
  background: #2563eb; padding: 0.375rem 1rem; border-radius: 0.5rem;
  transition: background 0.15s;
}
.nav-login:hover { background: #1d4ed8; color: #fff !important; }
.nav-lang {
  font-size: 0.875rem; color: #4b5563; background: #fff;
  border: 1px solid #d1d5db; border-radius: 0.375rem;
  padding: 0.25rem 0.5rem; cursor: pointer;
}

/* NAV - HOME */
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.125rem; font-weight: 700; color: #fff;
}
.nav-logo svg { flex-shrink: 0; }
.nav.nav-home {
  background: transparent; border-bottom: none;
}
.nav.nav-home .nav-links a { color: #c8d0f0; }
.nav.nav-home .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); border-radius: 0.5rem; }
.nav.nav-home .nav-lang { color: #c8d0f0; border-color: rgba(255,255,255,0.25); background: transparent; }
.nav.nav-home .nav-login { background: #ffd98a; color: #2a2105 !important; }
.nav.nav-home .nav-login:hover { background: #f5cc6e; }
.nav.nav-home .nav-hamburger { color: #fff; }

/* HERO */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 78% 8%, #1c2a74 0%, #0d1230 62%);
  padding: 8rem 1.5rem 5rem;
}
.hero-inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center; position: relative;
}
.hero-text { max-width: none; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  color: #fff; letter-spacing: -0.01em; line-height: 1.18;
  margin: 0 0 1.25rem;
}
.hero p {
  margin: 0 0 2rem; font-size: 1.125rem;
  color: #c3cdf3; line-height: 1.7;
}
.hero-btns {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.btn-hero-primary {
  display: inline-block; padding: 0.625rem 1.25rem;
  background: #ffd98a; color: #2a2105;
  font-weight: 700; font-size: 0.9375rem; border-radius: 0.625rem;
  transition: transform 0.15s;
}
.btn-hero-primary:hover { transform: translateY(-1px); }
.btn-hero-ghost {
  display: inline-block; padding: 0.625rem 1.25rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 500; font-size: 0.9375rem; border-radius: 0.625rem;
  transition: background 0.15s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-chips {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.hero-chips span {
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8125rem; color: #dbe2ff;
}

/* HERO CHAT DEMO */
.hero-chat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1.25rem; padding: 1.375rem;
  backdrop-filter: blur(10px);
}
.hero-chat-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 600;
  color: #aab5e6; margin-bottom: 0.875rem;
}
.chat-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #59e0a5; flex-shrink: 0;
}
.chat-bubble {
  max-width: 88%; padding: 0.6875rem 0.9375rem;
  border-radius: 1rem; font-size: 0.9375rem;
  line-height: 1.55; margin-bottom: 0.875rem;
}
.chat-bubble.visitor {
  background: #fff; color: #161c3d;
  border-bottom-left-radius: 0.25rem;
}
.chat-bubble.agent {
  margin-left: auto;
  background: #4a6bff; color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.chat-bubble.agent small {
  display: block; margin-top: 0.375rem;
  font-size: 0.75rem; opacity: 0.75;
}
.chat-translation {
  display: none; margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px dashed #9aa5d2; color: #3358f4;
  font-size: 0.875rem;
}
.chat-bubble.visitor.open .chat-translation { display: block; }
.chat-bubble button {
  display: block; margin-top: 0.375rem;
  border: none; background: none; padding: 0;
  font-size: 0.78125rem; color: #4863e8; cursor: pointer;
  font-family: inherit;
}
.chat-bubble button:hover { text-decoration: underline; }
.btn-primary {
  padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500;
  color: #fff; background: #2563eb; border-radius: 0.5rem;
  transition: background 0.15s; display: inline-block;
}
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-secondary {
  padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500;
  color: #374151; background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 0.5rem; transition: background 0.15s; display: inline-block;
}
.btn-secondary:hover { background: #f3f4f6; }

/* SECTION */
.section { padding: 5rem 1.5rem; }
.section-gray { background: #f9fafb; }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 3.5rem;
}
.section-title h2 { font-size: 1.875rem; font-weight: 700; color: #111827; }
.section-title p { margin-top: 0.75rem; font-size: 1.125rem; color: #4b5563; }

/* FEATURES GRID */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem;
}
.feature-card {
  background: #fff; padding: 1.75rem; border-radius: 0.75rem;
  border: 1px solid #f3f4f6; transition: border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover { border-color: #bfdbfe; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.feature-icon {
  width: 2.75rem; height: 2.75rem; background: #eff6ff;
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; color: #2563eb; stroke: #2563eb; fill: none; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: #4b5563; line-height: 1.6; }

/* FEATURES GRID 6-COL (home page) */
.features-grid6 {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.125rem;
}
.f6 {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 1.25rem;
  padding: 1.75rem; grid-column: span 2; position: relative; overflow: hidden;
  transition: box-shadow 0.15s;
}
.f6:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.f6-big {
  grid-column: span 4;
  background: linear-gradient(135deg, #1c2a74, #0d1230);
  color: #fff; border-color: transparent;
}
.f6-wide { grid-column: span 3; }
.f6-ic {
  width: 2.875rem; height: 2.875rem; border-radius: 0.8125rem;
  background: #eff6ff; color: #2563eb;
  display: grid; place-items: center; margin-bottom: 1.25rem;
}
.f6-ic svg { width: 1.375rem; height: 1.375rem; stroke: currentColor; fill: none; }
.f6-big .f6-ic { background: rgba(255,255,255,0.12); color: #ffd98a; }
.f6 h3 { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 600; color: #111827; }
.f6 p { margin: 0; font-size: 0.9375rem; color: #4b5563; line-height: 1.65; }
.f6-big h3 { color: #fff; }
.f6-big p { color: #c3cdf3; }
.f6-tag {
  display: inline-block; margin-top: 1rem;
  padding: 0.1875rem 0.75rem; border-radius: 9999px;
  background: rgba(255,255,255,0.12); font-size: 0.8125rem; color: #e7ecff;
}
.f6-flow {
  display: flex; align-items: center; gap: 0.625rem;
  flex-wrap: wrap; margin-top: 1rem;
}
.f6-flow i {
  font-style: normal; padding: 0.1875rem 0.75rem; border-radius: 9999px;
  background: #eff6ff; color: #2563eb; font-size: 0.84375rem;
}
.f6-flow s { text-decoration: none; color: #9ca3af; }

/* STEPS */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem;
}
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 1.125rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: #4b5563; line-height: 1.6; max-width: 18rem; margin: 0 auto; }

/* CTA BAND */
.cta-band { background: #2563eb; padding: 5rem 1.5rem; text-align: center; }
.cta-band-inner { max-width: 48rem; margin: 0 auto; }
.cta-band h2 { font-size: 1.875rem; font-weight: 700; color: #fff; }
.cta-band p { margin-top: 0.75rem; font-size: 1.125rem; color: #bfdbfe; }
.btn-cta {
  display: inline-block; margin-top: 2rem;
  padding: 0.75rem 2rem; font-size: 1rem; font-weight: 500;
  color: #1d4ed8; background: #fff; border-radius: 0.5rem;
  transition: background 0.15s;
}
.btn-cta:hover { background: #eff6ff; }

/* FOOTER */
.footer { background: #111827; color: #9ca3af; padding: 3rem 1.5rem; }
.footer-inner { max-width: 72rem; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem;
}
.footer-brand-name { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.875rem; color: #6b7280; line-height: 1.6; max-width: 20rem; }
.footer-col-title { font-size: 0.875rem; font-weight: 500; color: #d1d5db; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1f2937; padding-top: 1.5rem;
  font-size: 0.875rem; color: #4b5563; text-align: center;
}

/* DOCS PAGE */
.docs-layout { display: grid; grid-template-columns: 14rem 1fr; gap: 3rem; align-items: start; }
.docs-sidebar { position: sticky; top: 5rem; }
.docs-nav { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.docs-nav a {
  display: block; font-size: 0.875rem; color: #4b5563;
  padding: 0.375rem 0.75rem; border-radius: 0.375rem; transition: all 0.15s;
}
.docs-nav a:hover { color: #111827; background: #f3f4f6; }
.docs-section { margin-bottom: 3rem; }
.docs-section h2 {
  font-size: 1.5rem; font-weight: 700; color: #111827;
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e5e7eb;
}
.docs-section h3 { font-size: 1.0625rem; font-weight: 600; color: #111827; margin: 1.5rem 0 0.5rem; }
.docs-section p { font-size: 0.9375rem; color: #374151; line-height: 1.7; margin-bottom: 0.75rem; }
.docs-section pre {
  background: #1e293b; color: #e2e8f0; padding: 1rem 1.25rem;
  border-radius: 0.5rem; font-size: 0.875rem; overflow-x: auto;
  margin: 1rem 0; line-height: 1.6;
}
.docs-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.docs-table th {
  text-align: left; padding: 0.625rem 0.75rem;
  background: #f9fafb; color: #374151; font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}
.docs-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
.docs-table tr:last-child td { border-bottom: none; }
.tag-node { font-size: 0.75rem; font-weight: 600; color: #166534; background: #dcfce7; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.tag-mysql { font-size: 0.75rem; font-weight: 600; color: #1e40af; background: #dbeafe; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.tag-ali { font-size: 0.75rem; font-weight: 600; color: #92400e; background: #fef3c7; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 700;
  margin-right: 0.5rem; flex-shrink: 0;
}
.install-step { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.install-step-content { flex: 1; }
.alert-box {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 0.5rem;
  padding: 0.875rem 1rem; font-size: 0.875rem; color: #92400e; margin: 0.75rem 0;
}

/* PRICING */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem;
}
.pricing-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 0.75rem;
  padding: 2rem; position: relative; transition: box-shadow 0.15s;
}
.pricing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.pricing-card.featured { border-color: #2563eb; box-shadow: 0 0 0 2px #bfdbfe; }
.pricing-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; font-weight: 600; color: #fff; background: #2563eb;
  padding: 0.25rem 0.875rem; border-radius: 9999px;
}
.pricing-name { font-size: 1.0625rem; font-weight: 600; color: #111827; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.25rem; font-weight: 700; color: #111827; line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: #6b7280; }
.pricing-desc { font-size: 0.875rem; color: #6b7280; margin: 0.75rem 0 1.25rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.75rem; }
.pricing-features li { font-size: 0.875rem; color: #374151; display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li::before { content: ""; width: 0.875rem; height: 0.875rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z'/%3E%3C/svg%3E") center/contain no-repeat; flex-shrink: 0; }
.btn-plan {
  display: block; text-align: center; width: 100%;
  padding: 0.625rem 1rem; font-size: 0.9375rem; font-weight: 500;
  border-radius: 0.5rem; transition: all 0.15s;
}
.btn-plan-primary { background: #2563eb; color: #fff; }
.btn-plan-primary:hover { background: #1d4ed8; color: #fff; }
.btn-plan-outline { border: 1px solid #d1d5db; color: #374151; }
.btn-plan-outline:hover { background: #f9fafb; }

/* FEATURES PAGE */
.feat-hero {
  background: radial-gradient(120% 120% at 78% 0%, #1c2a74 0%, #0d1230 62%);
  padding: 8rem 1.5rem 5rem; text-align: center; color: #fff;
}
.feat-hero-inner { max-width: 48rem; margin: 0 auto; }
.feat-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  color: #fff; margin: 0 0 1rem; letter-spacing: -0.01em;
}
.feat-hero p { font-size: 1.125rem; color: #c3cdf3; margin: 0; }
.feat-rows { display: flex; flex-direction: column; gap: 1.375rem; }
.feat-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.25rem;
  align-items: center; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 1.5rem; padding: 2.5rem;
}
.feat-row:nth-child(even) { grid-template-columns: 0.9fr 1.1fr; }
.feat-row:nth-child(even) .feat-vis { order: -1; }
.feat-ic {
  width: 3rem; height: 3rem; border-radius: 0.875rem;
  background: #eff6ff; color: #2563eb;
  display: grid; place-items: center; margin-bottom: 1.125rem;
}
.feat-ic svg { width: 1.4375rem; height: 1.4375rem; stroke: currentColor; fill: none; }
.feat-row h2 { margin: 0 0 0.625rem; font-size: 1.5625rem; font-weight: 700; color: #111827; line-height: 1.3; }
.feat-row p { margin: 0; color: #4b5563; font-size: 1rem; line-height: 1.7; }
.feat-vis {
  background: linear-gradient(160deg, #1c2a74, #0d1230);
  border-radius: 1.125rem; padding: 1.375rem; color: #fff;
  min-height: 13rem; display: flex; flex-direction: column;
  justify-content: center; gap: 0.625rem; font-size: 0.9375rem;
}
.feat-bub {
  max-width: 90%; padding: 0.5625rem 0.875rem;
  border-radius: 0.875rem; line-height: 1.5;
}
.feat-bub.visitor { background: #fff; color: #161c3d; border-bottom-left-radius: 0.25rem; }
.feat-bub.agent {
  margin-left: auto; background: #4a6bff; color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.feat-tr {
  display: none; margin-top: 0.4375rem; padding-top: 0.4375rem;
  border-top: 1px dashed #9aa5d2; color: #3358f4; font-size: 0.875rem;
}
.feat-bub.open .feat-tr { display: block; }
.feat-bub button {
  display: block; margin-top: 0.3125rem; border: none; background: none;
  padding: 0; font-size: 0.78125rem; color: #4863e8; cursor: pointer; font-family: inherit;
}
.feat-bub button:hover { text-decoration: underline; }
.feat-note { text-align: center; color: #c3cdf3; font-size: 0.84375rem; margin-top: 0.5rem; }
.feat-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.feat-tags span {
  padding: 0.25rem 0.8125rem; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
}
.feat-tags span.hi { background: #ffd98a; color: #2a2105; border-color: transparent; font-weight: 600; }
.feat-sw { display: flex; align-items: center; justify-content: center; }
.feat-tog {
  position: relative; width: 12.5rem; height: 2.875rem;
  border-radius: 9999px; background: rgba(255,255,255,0.12);
  border: none; cursor: pointer; display: flex; padding: 0;
  color: #fff; font: inherit; font-weight: 700; font-size: 0.9375rem;
}
.feat-tog span { flex: 1; display: grid; place-items: center; position: relative; z-index: 1; }
.feat-tog i {
  position: absolute; top: 0.25rem; left: 0.25rem;
  width: calc(50% - 0.25rem); height: 2.375rem;
  border-radius: 9999px; background: #4a6bff; transition: transform 0.25s;
}
.feat-tog.h i { transform: translateX(100%); }
.feat-typing {
  display: flex; gap: 0.25rem; align-items: center;
  color: #aab5e6; font-size: 0.8125rem;
}
.feat-typing b {
  width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: #ffd98a; animation: featBlink 1.2s infinite;
}
.feat-typing b:nth-child(2) { animation-delay: 0.2s; }
.feat-typing b:nth-child(3) { animation-delay: 0.4s; }
@keyframes featBlink { 0%,60%,100%{ opacity:.25 } 30%{ opacity:1 } }
.feat-draft {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.75rem; padding: 0.625rem 0.875rem; font-size: 0.9375rem;
}
.feat-draft small { display: block; color: #aab5e6; margin-bottom: 0.125rem; font-size: 0.75rem; }
.feat-files { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.feat-files span {
  padding: 0.25rem 0.75rem; border-radius: 0.5rem;
  background: #fff; color: #161c3d; font-weight: 700; font-size: 0.8125rem;
}
.feat-arrow { text-align: center; color: #ffd98a; font-size: 1.25rem; }
.feat-idx {
  background: rgba(255,255,255,0.1); border-radius: 0.75rem;
  padding: 0.625rem 0.875rem; font-size: 0.875rem; color: #e7ecff;
}

@media (max-width: 768px) {
  .feat-hero { padding: 6rem 1.25rem 3.5rem; }
  .feat-row, .feat-row:nth-child(even) { grid-template-columns: 1fr; padding: 1.625rem; }
  .feat-row:nth-child(even) .feat-vis { order: 0; }
}

/* ABOUT PAGE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.about-card {
  background: #f9fafb; border-radius: 0.75rem; padding: 2rem;
  border: 1px solid #e5e7eb;
}
.about-card h3 { font-size: 1.125rem; font-weight: 600; color: #111827; margin-bottom: 0.75rem; }
.about-card p { font-size: 0.9375rem; color: #4b5563; line-height: 1.7; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-list li { font-size: 0.9375rem; color: #4b5563; }
.contact-list strong { color: #374151; }

/* PAGE HERO */
.page-hero { padding: 6rem 1.5rem 3.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: #111827; }
.page-hero p { margin-top: 0.75rem; font-size: 1.0625rem; color: #4b5563; }

/* LANG SWITCHER */
.lang-switcher { position: relative; display: inline-block; }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  padding-top: 0.5rem;
  background: transparent;
}
.lang-dropdown-inner {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); min-width: 10rem;
  padding: 0.25rem 0;
}
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown { display: block; }
.lang-dropdown a {
  display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: #374151;
  transition: background 0.1s;
}
.lang-dropdown a:hover { background: #f3f4f6; color: #111827; }

/* NAV-HOME LANG DROPDOWN — keep light background in desktop dropdown */
.nav.nav-home .lang-dropdown-inner {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.nav.nav-home .lang-dropdown a { color: #374151; }
.nav.nav-home .lang-dropdown a:hover { background: #f3f4f6; color: #111827; }

/* HAMBURGER BUTTON */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.25rem; color: #374151; line-height: 1;
}
.nav-hamburger svg { display: block; }

@media (max-width: 768px) {
  /* NAV */
  .nav-hamburger { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: fixed; top: 4rem; left: 0; right: 0; bottom: 0;
    background: #fff; border-top: 1px solid #f3f4f6;
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 2rem; gap: 0;
    overflow-y: auto; z-index: 49;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav.nav-home.nav-open { background: #0d1230; }
  .nav.nav-home .nav-links { background: #0d1230; border-top-color: rgba(255,255,255,0.1); }
  .nav.nav-home .nav-links > a { color: #c8d0f0; border-bottom-color: rgba(255,255,255,0.1); }
  .nav.nav-home .nav-lang { color: #c8d0f0; }
  .nav-links > a {
    padding: 0.875rem 0; font-size: 1rem; color: #374151;
    border-bottom: 1px solid #f3f4f6;
  }
  .nav-links > a:last-of-type { border-bottom: none; }
  .nav-login {
    display: block; text-align: center;
    margin-top: 1rem; padding: 0.75rem 1rem;
    border-radius: 0.5rem;
  }
  .nav.nav-home .nav-login { background: #ffd98a; color: #2a2105 !important; }
  /* lang switcher inside mobile nav */
  .lang-switcher { width: 100%; border-bottom: 1px solid #f3f4f6; }
  .nav.nav-home .lang-switcher { border-bottom-color: rgba(255,255,255,0.1); }
  .nav-lang {
    display: block; width: 100%;
    padding: 0.875rem 0; font-size: 1rem; cursor: pointer;
  }
  .lang-dropdown {
    position: static; padding-top: 0;
    background: transparent;
    display: none !important;
  }
  .lang-switcher.lang-open .lang-dropdown { display: block !important; }
  .lang-dropdown-inner {
    border: none; border-radius: 0; box-shadow: none;
    background: #f9fafb; margin: 0; padding: 0;
    min-width: unset;
  }
  .nav.nav-home .lang-dropdown-inner { background: rgba(255,255,255,0.07); }
  .nav.nav-home .lang-dropdown a { color: #c8d0f0; }
  .lang-dropdown a {
    padding: 0.75rem 1rem; font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
  }
  .lang-dropdown a:last-child { border-bottom: none; }

  /* HERO */
  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero p { font-size: 1rem; }

  /* FEATURES 6-COL */
  .features-grid6 { grid-template-columns: 1fr; }
  .f6, .f6-big, .f6-wide { grid-column: auto; }

  /* SECTIONS */
  .section { padding: 3rem 1.25rem; }
  .section-title { margin-bottom: 2rem; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: 1rem; }

  /* STEPS */
  .steps-grid { gap: 1.5rem; }

  /* CTA BAND */
  .cta-band { padding: 3rem 1.25rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .cta-band p { font-size: 1rem; }

  /* FOOTER */
  .footer { padding: 2.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* OTHER PAGES */
  .about-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 5rem 1.25rem 2.5rem; }
}
