/* Releon CN - Modern Corporate B2B Design */

/* CSS Variables */
:root {
  --brand-primary: #30964E;
  --brand-secondary: #1DB87B;
  --brand-light: #20E295;
  --text-primary: #292929;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --bg-white: #FFFFFF;
  --bg-light: #F9F9F9;
  --border-light: #dee2e6;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-white);
}

/* Chinese text settings */
:lang(zh-CN) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

:lang(zh-CN) body {
  font-size: 16px;
}

:lang(zh-CN) em {
  font-style: normal;
  color: var(--brand-primary);
  font-weight: 500;
}

/* Prevent company name from breaking - only in paragraphs, not headings */
:lang(zh-CN) p .company-name,
:lang(zh-CN) .contact-value .company-name,
:lang(zh-CN) .footer-about .company-name {
  white-space: nowrap;
}

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

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-secondary);
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Container */
.container {
  width: min(100% - 3rem, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 1.25rem;
  }
}

/* Header - Sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  text-transform: uppercase;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.lang-switcher a {
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-switcher a:hover {
  color: var(--brand-primary);
  background: var(--bg-light);
}

.lang-switcher a.active {
  color: var(--brand-primary);
  font-weight: 600;
}

.lang-switcher .separator {
  color: var(--text-muted);
}

.header-cta {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--brand-primary);
  color: var(--bg-white) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
}

.header-cta:hover {
  background: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 968px) {
  .nav-wrapper {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
  }
  
  .nav-wrapper.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .main-nav {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .menu-toggle {
    display: block;
  }
}

/* Hero Section - Full Bleed */
.hero {
  position: relative;
  min-height: clamp(500px, 70vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  overflow: hidden;
  background: linear-gradient(135deg, #1a5c32 0%, var(--brand-primary) 50%, var(--brand-secondary) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 92, 50, 0.85) 0%, rgba(48, 150, 78, 0.75) 50%, rgba(29, 184, 123, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 3rem 1.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: normal;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  margin: 0 0 1rem;
  opacity: 0.95;
}

.hero-slogan {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 0 2.5rem;
  opacity: 0.9;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--bg-white);
  color: var(--brand-primary) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--brand-secondary) !important;
}

/* Section Styles */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

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

.section-header {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

:lang(zh-CN) .section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About Section - Split Layout */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

:lang(zh-CN) .about-text {
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Product/Application Grid */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.tag-grid li {
  background: var(--bg-white);
  border: 2px solid #e8f5ee;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

:lang(zh-CN) .tag-grid li {
  font-size: 14px;
  padding: 0.625rem 1.25rem;
}

.tag-grid li:hover {
  background: #e8f5ee;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.section-alt .tag-grid li {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

/* Why Releon - Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.feature-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-secondary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 700;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

:lang(zh-CN) .feature-text {
  font-size: 15px;
  line-height: 1.75;
}

/* Contact Section */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.contact-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

:lang(zh-CN) .contact-label {
  font-size: 14px;
}

.contact-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

:lang(zh-CN) .contact-value {
  font-size: 15px;
}

.contact-value a {
  color: var(--brand-primary);
}

.contact-value a:hover {
  color: var(--brand-secondary);
  text-decoration: underline;
}

.contact-note {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 2rem 0 0;
  line-height: 1.7;
}

:lang(zh-CN) .contact-note {
  font-size: 15px;
  line-height: 1.75;
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
  color: var(--bg-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.cta-band-subtitle {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  opacity: 0.95;
}

.cta-band .cta-button {
  background: var(--bg-white);
  color: var(--brand-primary) !important;
}

/* Footer */
.site-footer {
  background: #1f2a24;
  color: #d7dde0;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-about h3 {
  color: var(--bg-white);
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.footer-about p {
  line-height: 1.7;
  color: #b8c1c8;
  margin: 0.75rem 0;
}

.footer-links h4 {
  color: var(--bg-white);
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #b8c1c8;
  display: block;
  padding: 0.4rem 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #8a9499;
}

@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Scroll reveal animations - Progressive enhancement */
/* Only hide content when JS is available and page is loaded */
@media (prefers-reduced-motion: no-preference) {
  html.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  html.js-loaded .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Ensure content is visible without JS or before JS loads */
  html:not(.js-loaded) .reveal {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
