:root {
  --ink-50: #f4f7f5;
  --ink-100: #e6eee9;
  --ink-500: #4a7559;
  --ink-700: #2a4937;
  --ink-900: #15241c;
  --mint: #3ebf74;
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Nav from render_header_nav_ul() */
.agentic-nav .navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .agentic-nav .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.agentic-nav .nav-item { margin: 0; }

.agentic-nav .nav-link {
  display: block;
  padding: 0.45rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.agentic-nav .nav-link:hover,
.agentic-nav .nav-link.active {
  color: #fff;
}

.site-header.is-scrolled {
  background: rgba(12, 22, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

/* Hero */
.hero-shell {
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(62, 191, 116, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 55% at 10% 90%, rgba(74, 117, 89, 0.35), transparent 45%),
    linear-gradient(160deg, #0c1611 0%, #15241c 42%, #1f372a 100%);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* Motions */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes line-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.anim-rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.22s; }
.anim-d3 { animation-delay: 0.34s; }
.anim-d4 { animation-delay: 0.46s; }

.anim-float { animation: float-y 7s ease-in-out infinite; }

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid #c9d9cf;
}
.faq-item[open] .faq-chevron { transform: rotate(45deg); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* UI */
.agentic-input {
  width: 100%;
  border: 1px solid #c9d9cf;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  color: var(--ink-900);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.agentic-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 191, 116, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--mint);
  color: #0c1611;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: #6fd49a;
  color: #0c1611;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-ink:hover {
  background: var(--ink-700);
  color: #fff;
  transform: translateY(-1px);
}

.panel-mock {
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

.footer-lang-selector {
  min-width: 130px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: transparent;
  color: #fff;
}

.alert-message-reponse .alert {
  border-radius: 0.75rem;
  margin-top: 0.75rem;
}

/* Auth pages reuse */
.agentic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: #0c1611;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.agentic-btn:hover {
  background: #6fd49a;
  color: #0c1611;
}
.agentic-btn-ghost {
  background: transparent;
  color: var(--ink-700);
  border: 1px solid #9fb8a8;
}
.agentic-btn-ghost:hover {
  background: var(--ink-100);
  color: var(--ink-900);
}
.hero-plane {
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, rgba(62, 191, 116, 0.2), transparent 50%),
    linear-gradient(160deg, #0c1611 0%, #15241c 50%, #1f372a 100%);
}
.hero-grain { opacity: 0.4; }
.shadow-soft { box-shadow: 0 20px 50px rgba(12, 22, 17, 0.18); }
.font-display { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.text-leaf-900, .text-leaf-800, .text-leaf-700 { color: var(--ink-900); }
.text-leaf-600 { color: var(--ink-500); }
.bg-leaf-50 { background: var(--ink-50); }
.border-leaf-200 { border-color: var(--ink-200); }
.border-leaf-300 { border-color: var(--ink-300); }
