﻿:root {
  --bg: #f4f1ea;
  --bg-alt: #efe8dd;
  --surface: #ffffff;
  --surface-2: #f6f2eb;
  --text: #1b1b1b;
  --muted: #5e5e5e;
  --accent: #1f7a7a;
  --accent-2: #e27a3f;
  --accent-3: #2d6cdf;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --code-bg: #10151f;
  --code-text: #e6edf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 10%, #fbf9f5 0%, #f4f1ea 50%, #ede4d8 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

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

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

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  background: radial-gradient(circle, #d5f1f0, transparent 70%);
  top: -200px;
  left: -120px;
}

.orb-2 {
  background: radial-gradient(circle, #ffe3d0, transparent 70%);
  bottom: -240px;
  right: -140px;
  animation-delay: 1.5s;
}

.orb-3 {
  background: radial-gradient(circle, #d7e8ff, transparent 70%);
  top: 40%;
  right: -220px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(24px) translateX(12px);
  }
}

.hero {
  padding: 80px 32px 56px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
}

.badge {
  background: var(--accent-2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-lead {
  font-size: 18px;
  max-width: 720px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 122, 122, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: var(--surface);
  border-color: var(--border);
}

.btn.ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.hero-snippet pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.layout {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.sidebar-inner {
  position: sticky;
  top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.content {
  min-width: 0;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin-top: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 28px;
}

.section h3 {
  margin: 24px 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.feature-card h3 {
  margin-top: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.steps {
  padding-left: 20px;
  margin-bottom: 16px;
}

.steps li {
  margin-bottom: 8px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.cli-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.callout {
  background: linear-gradient(120deg, rgba(31, 122, 122, 0.1), rgba(226, 122, 63, 0.1));
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px;
  border-radius: 16px;
  overflow-x: auto;
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 13px;
}

code {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.95em;
  background: rgba(16, 21, 31, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

pre code {
  background: transparent;
  padding: 0;
}

.bullet {
  padding-left: 20px;
}

.bullet li {
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 18px 0 60px;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lang {
  display: none;
}

.lang-inline {
  display: none;
}

body.lang-en .lang-en {
  display: block;
}

body.lang-vi .lang-vi {
  display: block;
}

body.lang-en span.lang-en {
  display: inline;
}

body.lang-vi span.lang-vi {
  display: inline;
}

body.lang-en .lang-inline.lang-en {
  display: inline;
}

body.lang-en .lang-inline.lang-vi {
  display: none;
}

body.lang-vi .lang-inline.lang-vi {
  display: inline;
}

body.lang-vi .lang-inline.lang-en {
  display: none;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-inner {
    position: relative;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav a {
    background: var(--surface-2);
    padding: 6px 10px;
    border-radius: 999px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 60px 20px 40px;
  }

  .layout {
    padding: 0 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .reveal {
    animation: none;
    transition: none;
  }
}
