﻿/* ============================================
   LusoNexo — ln(x)
   Scientific minimalism. Research meets product.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- Variables --- */
:root {
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg: #FAFAF8;
  --color-bg-alt: #F0EFEB;
  --color-bg-dark: #1A1A1A;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A56;
  --color-text-light: #8A8A86;
  --color-text-on-dark: #FAFAF8;
  --color-accent: #2D5F2D;
  --color-accent-hover: #1E4A1E;
  --color-accent-light: #E8F0E8;
  --color-border: #D8D8D4;
  --color-border-light: #EAEAE6;

  --max-width: 1200px;
  --content-width: 720px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --radius: 6px;
  --radius-lg: 12px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

p {
  max-width: var(--content-width);
}

p + p {
  margin-top: var(--space-sm);
}

.mono {
  font-family: var(--font-mono);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-light {
  color: var(--color-text-light);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-lg {
  padding: var(--space-2xl) 0;
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark .text-secondary {
  color: #A0A09C;
}

.section-alt {
  background: var(--color-bg-alt);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-logo img {
  height: 70px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--color-text);
}

.nav-lang {
  position: relative;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-sm);
  margin-left: var(--space-xs);
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown summary {
  list-style: none;
}

.lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-lang-toggle {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  user-select: none;
}

.nav-lang-toggle:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.lang-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.lang-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.lang-caret {
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.lang-dropdown[open] .lang-caret {
  transform: rotate(180deg);
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  padding: 8px;
  display: none;
  z-index: 120;
}

.lang-dropdown[open] .nav-lang-menu {
  display: grid;
  gap: 2px;
}

.nav-lang-menu a {
  display: block;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.nav-lang-menu a:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav-lang-menu a.active {
  color: var(--color-text);
  font-weight: 500;
  background: var(--color-bg-alt);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 20px;
  background: var(--color-text);
  color: var(--color-bg) !important;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  padding-top: calc(64px + var(--space-xl));
  padding-bottom: var(--space-xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 4px 10px;
  background: var(--color-bg-alt);
  border-radius: 3px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent);
}

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

.btn-outline:hover {
  border-color: var(--color-text);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* --- Grid layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* --- Cards --- */
.card {
  padding: var(--space-md);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

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

.card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--color-accent-hover);
}

/* Product card variant */
.card-product {
  padding: var(--space-md) var(--space-md) var(--space-md);
}

.card-product .card-screenshot {
  width: 100%;
  height: 180px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.card-product .card-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Domain tags --- */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* --- Clients logos carousel --- */
.clients-logos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
  justify-content: center;
  align-items: center;
  max-height: 320px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-logos__grid::before,
.clients-logos__grid::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.clients-logos__grid::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.clients-logos__grid::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.clients-logos__grid.index-carousel {
  --logo-gap: 32px;
  height: auto;
  overflow: hidden;
}

.clients-logos__grid.index-carousel .clients-logos__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logos-marquee 36s linear infinite;
}

.clients-logos__grid.index-carousel:hover .clients-logos__track {
  animation-play-state: paused;
}

.clients-logos__grid.index-carousel .clients-logos__item {
  width: 140px;
  flex: 0 0 auto;
  margin-right: var(--logo-gap);
}

@keyframes logos-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.clients-logos__item {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients-logos__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Section headers --- */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-header .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* --- Research / Publication list --- */
.pub-group {
  margin-bottom: var(--space-xl);
}

.pub-group h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.pub-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: start;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.pub-citations {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--color-accent-light);
  border-radius: 3px;
  height: fit-content;
}

/* --- Two column text --- */
.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.two-col-text h3 {
  font-size: 1.2rem;
}

/* --- Feature rows --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: start;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row .feature-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

/* --- Founder / Team --- */
.founder-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.founder-photo {
  width: 200px;
  height: 240px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* --- Investor block --- */
.investor-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.investor-block h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

/* --- CTA section --- */
.cta-section {
  text-align: center;
  padding: var(--space-xl) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .btn-primary {
  background: var(--color-bg);
  color: var(--color-text);
}

.section-dark .btn-primary:hover {
  background: var(--color-accent-light);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-brand img {
  height: 80px;
  width: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

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

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: var(--color-text-light);
}

.footer-legal a:hover {
  color: var(--color-text-secondary);
}

/* --- Contact form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.form-status {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
}

.contact-info {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  height: fit-content;
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.contact-detail {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}

/* --- Page hero (smaller for subpages) --- */
.page-hero {
  padding-top: calc(64px + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
}

/* --- Product detail --- */
.product-detail {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-light);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  column-gap: var(--space-lg);
  row-gap: var(--space-sm);
  align-items: start;
}

.product-detail:last-of-type {
  border-bottom: none;
}

.product-detail > :not(.product-screenshot) {
  grid-column: 1;
}

.product-detail h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.product-detail .product-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.product-detail p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.product-screenshot {
  grid-column: 2;
  grid-row: 1 / span 8;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  height: auto;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-top: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.product-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* --- Tool list (smaller products) --- */
.tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.tool-item {
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.tool-item h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tool-item p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* --- In development badge --- */
.badge-dev {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 3px;
  margin-bottom: var(--space-sm);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger > .fade-in:nth-child(4) { transition-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .hero { min-height: auto; padding-top: calc(64px + var(--space-lg)); padding-bottom: var(--space-lg); }
  .section { padding: var(--space-lg) 0; }
  .section-lg { padding: var(--space-xl) 0; }

  .grid-2, .grid-3, .grid-4, .two-col-text, .feature-row, .contact-grid, .tool-list {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-screenshot {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: 360px;
    margin-top: var(--space-md);
    justify-self: start;
  }

  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }

  .nav-links { display: none; }
  .nav-lang { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-sm);
  }

  .nav-links.open .nav-lang {
    display: block;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border-light);
  }

  .nav-links.open .nav-lang-menu {
    position: static;
    display: grid;
    box-shadow: none;
    border: none;
    padding: 4px 0 0;
    margin-top: 4px;
  }

  .nav-logo img {
    height: 70px;
  }

  .founder-section { grid-template-columns: 1fr; }
  .founder-photo { width: 140px; height: 170px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .footer-brand img { height: 100px; }

  .hero-meta { flex-wrap: wrap; }

  .pub-item { grid-template-columns: 1fr; }
  .pub-citations { width: fit-content; }

  .clients-logos__grid.index-carousel {
    height: auto;
    overflow: hidden;
  }

  .clients-logos__grid.index-carousel::-webkit-scrollbar {
    display: none;
  }

  .clients-logos__grid.index-carousel::before,
  .clients-logos__grid.index-carousel::after {
    display: none;
  }

  .clients-logos__grid.index-carousel .clients-logos__track {
    animation: logos-marquee 30s linear infinite;
    padding-inline: 8px;
  }

  .clients-logos__grid.index-carousel .clients-logos__item {
    min-width: 120px;
    width: 120px;
    margin-right: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; text-align: center; }
  .stat + .stat { padding-top: var(--space-sm); border-top: 1px solid var(--color-border-light); }
  .btn-group { flex-direction: column; }
  .btn-group .btn { text-align: center; }

  .clients-logos__grid {
    margin-top: 32px;
    margin-bottom: 32px;
  }
}

