/* ============================================
   Gokko World B2B - Styles
   Based on Gokko Land Japan design language
   ============================================ */

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

:root {
  --primary: #F26B2A;
  --primary-light: #FF8C4B;
  --primary-dark: #D45A1E;
  --accent: #FFD700;
  --accent-light: #FFF3B0;
  --bg-cream: #FFF9F0;
  --bg-white: #FFFFFF;
  --bg-light: #FEF7EC;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;
  --border: #E8E0D8;
  --shadow: rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --nav-height: 80px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans', 'Noto Sans JP', 'Noto Sans Thai', 'Noto Sans Vietnamese', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.3s;
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .nav-logo-img { height: 36px; }
}

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

.nav-links a {
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(242,107,42,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,107,42,0.4);
}

.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 28px;
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.lang-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-medium);
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, var(--bg-cream) 0%, #FFF5E6 50%, #FFE8D0 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242,107,42,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; }

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--text-medium);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tablet-mockup {
  width: 100%;
  max-width: 520px;
}

.hero-video-wrapper {
  width: 100%;
  max-width: 560px;
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  background: #000;
}

.hero-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.tablet-bezel {
  background: #2C2C2E;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.tablet-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.tablet-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Carousel */
.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .carousel-dots { bottom: 6px; gap: 6px; }
  .carousel-dot { width: 7px; height: 7px; }
}

/* ============================================
   Stats Banner
   ============================================ */
.stats-banner {
  background: white;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.ranking-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #FFF9F0 0%, #FFF3E0 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ranking-badge__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(242, 107, 42, 0.15);
}

.ranking-badge__text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .ranking-badge {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 20px;
  }

  .ranking-badge__number {
    font-size: 1.6rem;
  }

  .ranking-badge__text {
    font-size: 0.8rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(242, 107, 42, 0.15);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item .stat-num.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-top: 10px;
  font-weight: 600;
}

.stats-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-medium);
  opacity: 0.7;
  margin-top: 16px;
  margin-bottom: 0;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 80px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-title .subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title .subtitle::before,
.section-title .subtitle::after {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--text-light);
}

/* ============================================
   Issues / Challenges
   ============================================ */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.issue-card {
  background: var(--accent-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  border: 1px solid rgba(255,215,0,0.2);
}

.issue-card .case-num {
  display: inline-block;
  background: var(--text-dark);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.issue-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ============================================
   Purpose Section
   ============================================ */
.purpose-desc {
  text-align: center;
  max-width: 800px;
  margin: -30px auto 48px;
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.purpose-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.purpose-step {
  background: white;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px var(--shadow);
}

.purpose-step .step-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.purpose-step .step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.purpose-step h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.purpose-step p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.step-arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.5rem;
  z-index: 2;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.about-stat {
  text-align: center;
}

.about-stat .stat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
}

.about-stat .stat-circle .label {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 6px;
}

.about-stat .stat-circle .number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.about-stat .stat-sub {
  font-size: 0.85rem;
  color: var(--text-medium);
  font-weight: 600;
}

/* ============================================
   Countries / Expansion
   ============================================ */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.country-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s;
}

.country-card:hover {
  transform: translateY(-4px);
}

.country-header {
  padding: 28px 24px 20px;
  text-align: center;
  position: relative;
}

.country-flag {
  font-size: 3rem;
  margin-bottom: 12px;
}

.country-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.country-dl {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 8px;
}

.country-body {
  padding: 0 24px 28px;
}

.country-body p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================
   Value / Features
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.value-card .value-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.value-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================
   Flow / Process
   ============================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.flow-step {
  text-align: center;
  position: relative;
}

.flow-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(242,107,42,0.3);
}

.flow-step h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.flow-connector {
  position: absolute;
  top: 32px;
  right: -14px;
  color: var(--primary);
  font-size: 1.2rem;
  z-index: 1;
}

/* ============================================
   Case Study
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cases-grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.case-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.case-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  background: #f0f0f0;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Fallback background colors (used when image is absent) */
.case-visual.kewpie-bg {
  background: linear-gradient(135deg, #FFE0CC, #FFCCB3);
}

.case-visual.rohto-bg {
  background: linear-gradient(135deg, #DCEEFF, #B8D8FF);
}

.case-visual.yakult-bg {
  background: linear-gradient(135deg, #FFE8E8, #FFD4D4);
}

.case-visual.aqua-bg {
  background: linear-gradient(135deg, #D4F0FF, #B8E6FF);
}

.case-body {
  padding: 28px;
}

.case-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.case-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.case-body p {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--accent);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 28px;
}

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

/* HubSpot Form Wrapper */
.hs-form-wrapper {
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.hs-form-wrapper.open {
  max-height: 1400px;
  opacity: 1;
  margin-top: 36px;
  padding-bottom: 8px;
}

.hs-form-inner {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 28px 36px;
}

.form-note {
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hs-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.hs-input::placeholder { color: rgba(255,255,255,0.55); }
.hs-input:focus {
  border-color: white;
  background: rgba(255,255,255,0.22);
}

.hs-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .footer-logo {
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-accordion-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-accordion-toggle:hover {
  color: white;
  text-decoration-color: rgba(255,255,255,0.4);
}

.footer-accordion-toggle.active {
  color: white;
}

/* Footer Accordion Panels */
.footer-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.footer-accordion-panel.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 24px;
}

.footer-accordion-body {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0;
}

.footer-accordion-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.legal-text {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 800px;
}

.legal-text p {
  margin-bottom: 14px;
}

.legal-text strong {
  color: rgba(255,255,255,0.9);
}

.legal-text em {
  color: rgba(255,255,255,0.5);
}

/* App Store / Google Play Badges */
.app-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.app-badges--stats {
  justify-content: center;
  margin-top: 20px;
}

.app-badge-link {
  display: flex;
  align-items: center;
  height: 52px;
  transition: opacity 0.2s;
}

.app-badge-link:hover {
  opacity: 0.8;
}

.app-badge {
  height: 52px;
  width: auto;
  display: block;
}

/* Google Play badge has built-in transparent padding that varies by language.
   Render larger then clip to visually match App Store badge height. */
#badge-googleplay {
  height: 52px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#badge-googleplay .app-badge {
  height: 76px;
  width: auto;
}

.footer-copyright {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}

/* ============================================
   Floating CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-cta .btn {
  box-shadow: 0 4px 20px rgba(242,107,42,0.4);
  padding: 14px 32px;
}

/* ============================================
   Partner Logos
   ============================================ */
.partner-logos {
  padding: 20px 0;
  background: white;
  overflow: hidden;
}

.logos-track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: scroll-logos 30s linear infinite;
}

.logos-track .logo-item {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.6;
  white-space: nowrap;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .mobile-toggle { display: flex; }

  .hero-inner { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { justify-content: center; }

  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .purpose-steps { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-connector { display: none; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .hero { padding: 48px 0 40px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-tablet-mockup { max-width: 100%; }
  .hero-video-wrapper { max-width: 100%; border-radius: 12px; }
  .tablet-bezel { padding: 10px 14px; border-radius: 14px; }

  .section { padding: 56px 0; }
  .section-title h2 { font-size: 1.5rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item .stat-num { font-size: 2.2rem; }

  .issues-grid { grid-template-columns: 1fr; }
  .purpose-steps { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .about-stat .stat-circle { width: 100px; height: 100px; }
  .about-stat .stat-circle .number { font-size: 1.3rem; }

  .cases-grid { grid-template-columns: 1fr; }

  .cta-section h2 { font-size: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .lang-switcher { gap: 2px; }
  .lang-btn { padding: 3px 7px; font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.4rem; }
  .btn { padding: 10px 22px; font-size: 0.88rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   Mobile Navigation Menu
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: var(--primary); }

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

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

/* ============================================
   Topics / News
   ============================================ */
.topics-section {
  padding: 80px 0 64px;
  background: var(--bg-white);
}

.topics-section h2 {
  text-align: center;
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.topics-section .section-subtitle {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 40px;
}

.topics-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.topic-card:first-child {
  border-top: 1px solid var(--border);
}

a.topic-card { cursor: pointer; }
div.topic-card { cursor: default; }

.topic-card:hover {
  background: var(--bg-light);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
  border-radius: var(--radius-sm);
}

.topic-date {
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 90px;
}

.topic-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.topic-tag--news {
  background: #FFF3E0;
  color: var(--primary);
}

.topic-tag--partner {
  background: #E8F5E9;
  color: #2E7D32;
}

.topic-tag--update {
  background: #E3F2FD;
  color: #1565C0;
}

.topic-title {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .topics-section {
    padding: 56px 0 48px;
  }

  .topic-card {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
  }

  .topic-date {
    min-width: auto;
  }

  .topic-title {
    width: 100%;
    font-size: 0.9rem;
  }
}
