/* Lianli Technology - Custom CSS replacing Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --surface: #0C0C0C;
  --surface-alt: #161616;
  --surface-raised: #1E1E1E;
  --border: #262626;
  --border-light: #333333;
  --accent: #00C853;
  --accent-hover: #00E676;
  --accent-muted: rgba(0, 200, 83, 0.15);
  --accent-warm: #FFB300;
  --content: #E8E8E8;
  --content-secondary: #999999;
  --content-muted: #666666;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--surface);
  color: var(--content);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

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

/* Layout */
.container-custom { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) {
  .container-custom { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding { padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) {
  .section-padding { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Typography utilities */
.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; }
.font-sans { font-family: 'DM Sans', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

.text-display-xl { font-size: 4.5rem; line-height: 1.05; letter-spacing: -0.03em; }
.text-display-lg { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.025em; }
.text-display-md { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.text-display-sm { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em; }

@media (max-width: 768px) {
  .text-display-xl { font-size: 2.75rem; }
  .text-display-lg { font-size: 2.25rem; }
  .text-display-md { font-size: 1.75rem; }
  .text-display-sm { font-size: 1.375rem; }
}

.text-content { color: var(--content); }
.text-content-secondary { color: var(--content-secondary); }
.text-content-muted { color: var(--content-muted); }
.text-accent { color: var(--accent); }
.text-accent-hover:hover { color: var(--accent-hover); }

.bg-surface { background-color: var(--surface); }
.bg-surface-alt { background-color: var(--surface-alt); }
.bg-surface-raised { background-color: var(--surface-raised); }
.bg-accent { background-color: var(--accent); }
.bg-accent-muted { background-color: var(--accent-muted); }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-border-light { border-color: var(--border-light); }

.section-label-center {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}
.section-label-center::before,
.section-label-center::after {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  opacity: 0.5;
}
.section-label-center::before { margin-right: 0.75rem; }
.section-label-center::after { margin-left: 0.75rem; }

.section-label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2.5rem;
  color: var(--content);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-heading { font-size: 1.75rem; }
}

.section-subheading { color: var(--content-secondary); font-size: 1.125rem; max-width: 42rem; }

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
}

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

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--content);
  background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  color: var(--content-secondary);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}
.btn-ghost:hover { color: var(--content); background-color: var(--surface-alt); }

/* Cards */
.card {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Circuit pattern background */
.bg-circuit {
  background-image: radial-gradient(circle, rgba(0, 200, 83, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--content);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
  font-family: 'DM Sans', system-ui, sans-serif;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--content-muted); }

label { display: block; font-size: 0.75rem; font-weight: 500; color: var(--content-secondary); margin-bottom: 0.375rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo svg { width: 32px; height: 32px; }
.logo-text { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; font-size: 0.875rem; color: var(--accent); letter-spacing: -0.02em; }

.site-logo {
  filter: drop-shadow(0 0 5px rgba(0, 200, 83, 0.3));
}

.nav-desktop { display: none; align-items: center; gap: 0.125rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--content-secondary);
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--content); }
.nav-link svg { width: 14px; height: 14px; margin-left: 0.25rem; opacity: 0.5; }

.dropdown {
  position: absolute;
  top: 100%; left: 0;
  margin-top: 0.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.375rem;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s ease;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--content-secondary);
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}
.dropdown a:hover { color: var(--content); background-color: var(--surface-alt); }

.mobile-toggle { display: block; padding: 0.5rem; color: var(--content-secondary); background: none; border: none; cursor: pointer; }
.mobile-toggle:hover { color: var(--content); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu { display: none; background: var(--surface); border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu-link { display: block; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--content-secondary); border-radius: 0.375rem; transition: all 0.15s ease; }
.mobile-menu-link:hover { color: var(--content); background-color: var(--surface-alt); }
.mobile-submenu { padding-left: 1rem; font-size: 0.8125rem; }

/* Hero section */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle hero glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}
.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.25), transparent 70%);
  top: 15%;
  left: 20%;
  animation: hero-glow-drift 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.18), transparent 70%);
  bottom: 20%;
  right: 15%;
  animation: hero-glow-drift 14s ease-in-out infinite reverse;
}
@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-bg { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.hero-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 10; width: 100%; padding-top: 2rem; padding-bottom: 1rem; }
.hero-title { margin-bottom: 1.5rem; }
.hero-desc { color: var(--content-secondary); font-size: 1.25rem; max-width: 36rem; margin-bottom: 2.5rem; line-height: 1.6; }
@media (max-width: 768px) { .hero-desc { font-size: 1.125rem; } }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
@media (min-width: 640px) { .hero-stats { display: flex; justify-content: center; gap: 0; padding-top: 2rem; } }
.hero-stats .stat-item { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 640px) { .hero-stats .stat-item { padding: 0 2rem; border-right: 1px solid var(--border); } .hero-stats .stat-item:last-child { border-right: none; } }
.hero-stats .stat-number { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.75rem; color: var(--accent); font-weight: 700; line-height: 1.2; }
.hero-stats .stat-label { color: var(--content-muted); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.375rem; }

/* Responsive grid utilities */
@media (min-width: 640px) {
  .sm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg-flex-row { flex-direction: row; }
  .lg-col-span-2 { grid-column: span 2 / span 2; }
}

/* Positioning utilities */
.sticky { position: sticky; }
.top-24 { top: 6rem; }
.lg-w-56 { width: 100%; }
@media (min-width: 1024px) { .lg-w-56 { width: 14rem; } }
.lg-order-1 { order: 1; }
.lg-order-2 { order: 2; }
@media (min-width: 1024px) {
  .lg-order-1 { order: 1; }
  .lg-order-2 { order: 2; }
}

/* Focus/hover state utilities */
.focus-outline-none:focus { outline: none; }
.focus-border-accent:focus { border-color: var(--accent); }
.hover-bg-surface-alt:hover { background-color: var(--surface-alt); }
.hover-bg-accent-hover:hover { background-color: var(--accent-hover); }
.hover-text-content:hover { color: var(--content); }

/* Divider */
.divider { border-top: 1px solid var(--border); margin-top: 0; margin-bottom: 0; }

/* Additional spacing utilities */
.py-1-5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2-5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.mb-1-5 { margin-bottom: 0.375rem; }
.mt-1-5 { margin-top: 0.375rem; }
.mt-0-5 { margin-top: 0.125rem; }
.mr-1-5 { margin-right: 0.375rem; }
.space-y-0-5 > * + * { margin-top: 0.125rem; }
.space-y-1-5 > * + * { margin-top: 0.375rem; }
.h-64 { height: 16rem; }
.w-56 { width: 14rem; }

/* Grids */
.grid { display: grid; gap: 1rem; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

.gap-0-5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1-5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2-5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-8 { margin-right: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 3rem; }
.pt-32 { padding-top: 4rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3-5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Stack spacing utilities */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2-5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-2-5 { gap: 0.625rem; }

/* Width / height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-21-9 { aspect-ratio: 21 / 9; }
.aspect-21-8 { aspect-ratio: 21 / 8; }
@media (min-width: 768px) {
  .md-aspect-21-8 { aspect-ratio: 21 / 8; }
}
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 50%; }
.object-cover { width: 100%; height: 100%; object-fit: cover; }
.object-contain { width: 100%; height: 100%; object-fit: contain; }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }

/* Footer */
.site-footer { background-color: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }
.footer-heading { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; font-size: 0.875rem; color: var(--content); margin-bottom: 1.25rem; }
.footer-link { color: var(--content-muted); font-size: 0.875rem; transition: color 0.2s ease; }
.footer-link:hover { color: var(--content); }
.footer-social {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  background-color: var(--surface-raised);
  color: var(--content-muted);
  transition: all 0.2s ease;
}
.footer-social:hover { color: var(--accent); background-color: var(--surface-alt); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; padding-top: 2rem; margin-top: 3rem; } }

/* Floating contact — 4 fixed icons (WhatsApp, Call, Email, WeChat) */
.floating-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-end;
}
@media (min-width: 768px) {
  .floating-contact { bottom: 2rem; right: 2rem; gap: 0.75rem; }
}
.floating-contact-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}
.floating-contact-label {
  font-size: 0.75rem;
  color: var(--content);
  background: var(--surface-raised);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.floating-contact-item:hover .floating-contact-label {
  opacity: 1;
}
.floating-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.floating-contact-icon:hover {
  transform: scale(1.1);
}
.floating-contact-icon svg {
  width: 1rem;
  height: 1rem;
}

/* WeChat QR popup */
.floating-contact-wechat .wechat-qr-popup {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.75rem;
  width: 160px;
  padding: 0.75rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  pointer-events: none;
  text-align: center;
}
.floating-contact-wechat:hover .wechat-qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Contact page contact method grid */
@media (max-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.wechat-qr-popup img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}
.wechat-qr-popup p {
  font-size: 0.75rem;
  color: var(--content-secondary);
  margin: 0;
}

/* Product card */
.product-card { display: block; }
.product-card .card-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background-color: var(--surface-raised); }
.product-card .card-image img { transition: transform 0.5s ease; }
.product-card:hover .card-image img { transform: scale(1.05); }
.product-card .card-overlay {
  position: absolute; inset: 0;
  background: rgba(12, 12, 12, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; padding: 1rem;
}
.product-card:hover .card-overlay { opacity: 1; }
.product-card .category { font-size: 0.75rem; color: var(--accent); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card .title { font-size: 0.875rem; font-weight: 500; margin-top: 0.375rem; color: var(--content); min-height: 2.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card:hover .title { color: var(--accent); }
.product-card .meta { color: var(--content-muted); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; margin-top: 0.5rem; }

/* Product detail */
.breadcrumb { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--content-muted); font-family: 'JetBrains Mono', monospace; }
.breadcrumb a:hover { color: var(--content); }
.spec-table { width: 100%; }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--content-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.spec-value { color: var(--content); font-size: 0.875rem; font-family: 'JetBrains Mono', monospace; margin-left: 1rem; text-align: right; }

.product-description { color: var(--content-secondary); font-size: 0.9375rem; line-height: 1.75; max-width: 72ch; }
.product-description > *:first-child { margin-top: 0; }
.product-description > *:last-child { margin-bottom: 0; }
.product-description p { margin: 0 0 1rem; }
.product-description h1, .product-description h2, .product-description h3, .product-description h4 { color: var(--content); font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 600; margin: 1.5rem 0 0.75rem; line-height: 1.3; }
.product-description h1 { font-size: 1.5rem; }
.product-description h2 { font-size: 1.3rem; }
.product-description h3 { font-size: 1.1rem; }
.product-description ul, .product-description ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.product-description ul { list-style: disc; }
.product-description ol { list-style: decimal; }
.product-description li { margin: 0.25rem 0; }
.product-description a { color: var(--accent); text-decoration: underline; }
.product-description a:hover { color: var(--accent-hover); }
.product-description strong { color: var(--content); font-weight: 600; }
.product-description img { max-width: 100%; height: auto; border-radius: 0.375rem; margin: 1rem 0; }
.product-description table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.product-description th, .product-description td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.product-description th { background: var(--surface-raised); color: var(--content); font-weight: 600; }
.product-description blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1rem 0; color: var(--content-secondary); font-style: italic; }

/* Legal content */
.legal-content h2 { color: var(--content); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; line-height: 1.3; }
.legal-content p { margin-bottom: 1rem; line-height: 1.7; color: var(--content-secondary); }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.375rem; margin-top: 3rem; padding: 1rem 0; }
.page-arrow,
.page-number {
  min-width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  background-color: var(--surface-alt);
  color: var(--content-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0 0.75rem;
  border: none;
}
.page-arrow svg { width: 1rem; height: 1rem; }
.page-number:hover,
.page-arrow:hover { color: var(--content); background-color: var(--surface-raised); }
.page-number.current { background-color: var(--accent); color: var(--surface); font-weight: 600; }
.page-number.current:hover { background-color: var(--accent-hover); }
.page-arrow.disabled { opacity: 0.3; pointer-events: none; }
.page-ellipsis { display: flex; align-items: center; justify-content: center; min-width: 1.5rem; color: var(--content-muted); font-size: 0.875rem; }
.page-select-wrap { display: flex; align-items: center; }
.page-select {
  width: auto; min-width: 4rem;
  padding: 0 2rem 0 0.75rem; cursor: pointer;
  font-size: 0.875rem; font-weight: 500; line-height: 2.5rem;
  appearance: none; -webkit-appearance: none;
  background-color: var(--surface-alt);
  border: none;
  border-radius: 0.5rem;
  color: var(--content-secondary);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.875rem;
  height: 2.5rem;
  transition: all 0.2s ease;
}
.page-select:hover { color: var(--content); background-color: var(--surface-raised); }
.page-select:focus { outline: none; box-shadow: 0 0 0 2px var(--accent-muted); }

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--content-muted);
  transition: all 0.2s ease;
}
.sidebar-link:hover {
  color: var(--content);
  background-color: var(--surface-alt);
}
.sidebar-link.active {
  background-color: var(--accent-muted);
  color: var(--accent);
  font-weight: 500;
}
.sidebar-link + .sidebar-link {
  margin-top: 0.125rem;
}

/* Sidebar */
.sidebar { width: 100%; }
@media (min-width: 1024px) { .sidebar { width: 14rem; flex-shrink: 0; } }
.sidebar-nav a { display: block; padding: 0.5rem 0.75rem; border-radius: 0.375rem; font-size: 0.875rem; color: var(--content-muted); transition: all 0.2s ease; }
.sidebar-nav a:hover { color: var(--content); background-color: var(--surface-alt); }
.sidebar-nav a.active { background-color: var(--accent-muted); color: var(--accent); }

/* Admin */
.admin-body { background-color: var(--surface-alt); font-family: 'DM Sans', system-ui, sans-serif; }
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.admin-login-box { background-color: var(--surface); border: 1px solid var(--border); border-radius: 0.75rem; padding: 2rem; width: 100%; max-width: 24rem; }
.admin-login-box h1 { color: var(--accent); font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 16rem; background-color: var(--surface); border-right: 1px solid var(--border); flex-shrink: 0; }
.admin-sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-sidebar a { display: block; padding: 0.75rem 1.5rem; color: var(--content-secondary); font-size: 0.875rem; transition: all 0.2s ease; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--content); background-color: var(--surface-raised); border-left: 3px solid var(--accent); }
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-title { font-size: 1.5rem; color: var(--content); }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--content-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.admin-table td { color: var(--content-secondary); }
.admin-table a { color: var(--accent); }
.admin-table a:hover { color: var(--accent-hover); }

.admin-card { background-color: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1.5rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .admin-form-grid { grid-template-columns: repeat(2, 1fr); } }
.admin-form-grid-full { grid-column: 1 / -1; }

.admin-btn { display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s ease; }
.admin-btn-primary { background-color: var(--accent); color: var(--surface); }
.admin-btn-primary:hover { background-color: var(--accent-hover); }
.admin-btn-danger { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }
.admin-btn-danger:hover { background-color: rgba(239, 68, 68, 0.25); }
.admin-btn-secondary { background-color: var(--surface-raised); color: var(--content); }
.admin-btn-secondary:hover { background-color: var(--border-light); }

.status-badge { display: inline-flex; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.status-published { background-color: var(--accent-muted); color: var(--accent); }
.status-draft { background-color: rgba(255, 179, 0, 0.15); color: var(--accent-warm); }
.status-new { background-color: var(--accent-muted); color: var(--accent); }
.status-read { background-color: var(--surface-raised); color: var(--content-muted); }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .media-grid { grid-template-columns: repeat(6, 1fr); } }
.media-thumb { aspect-ratio: 1 / 1; border-radius: 0.375rem; overflow: hidden; background-color: var(--surface-raised); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Flash messages */
.flash-messages { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; }
.flash-success { background-color: var(--accent-muted); color: var(--accent); border: 1px solid var(--accent); }
.flash-error { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid #ef4444; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.block { display: block; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.01em; }
.tracking-wide { letter-spacing: 0.05em; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.whitespace-pre-line { white-space: pre-line; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resize-vertical { resize: vertical; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.pointer-events-none { pointer-events: none; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.2s ease; }
.group { position: relative; }
.hover-text-accent:hover { color: var(--accent); }
.hover-border-accent:hover { border-color: var(--accent); }
.hover-bg-surface-alt:hover { background-color: var(--surface-alt); }
.group-hover-text-accent .group:hover & { color: var(--accent); }
.hover-scale:hover { transform: scale(1.05); }

/* Mobile helpers */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .text-center-mobile { text-align: center; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* Products page layout */
.products-layout { display: flex; flex-direction: row; gap: 2rem; }
.products-sidebar { width: 16rem; flex-shrink: 0; }
.products-main { width: 100%; min-width: 0; flex: 1; }
@media (max-width: 899px) {
  .products-layout { flex-direction: column; }
  .products-sidebar { width: 100%; }
}

/* Sidebar link */
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--content-muted);
  transition: all 0.2s ease;
}
.sidebar-link:hover { color: var(--content); background-color: var(--surface-alt); }
.sidebar-link.active { background-color: var(--accent-muted); color: var(--accent); font-weight: 500; }
.sidebar-link + .sidebar-link { margin-top: 0.125rem; }
.products-sidebar .card form .flex { flex-wrap: nowrap; }
.products-sidebar .card form input { min-width: 0; }

/* Product grid within sidebar layout: 2 cols on tablet/laptop, 3 on desktop */
.products-main .product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .products-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .products-main .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sidebar sticky container */
.sidebar-sticky {
  position: sticky;
  top: 5rem;
}

/* Header spacer for fixed header */
.header-spacer { height: 64px; }

/* Admin nav toggle for mobile */
.admin-nav-toggle { display: none; }
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; display: none; }
  .admin-sidebar.open { display: block; }
  .admin-nav-toggle { display: block; margin-bottom: 1rem; }
}

/* ================================================================
   UI POLISH — Focus, Hover, Gradients, Animations
   ================================================================ */

/* Focus-visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Buttons — lift effect + ripple on click */
.btn-primary,
.btn-outline {
  position: relative;
  transition: all 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 8px rgba(0, 200, 83, 0.15);
}
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.1);
}
.btn-outline:active {
  transform: translateY(0);
}

/* Card hover lift — subtle glow, no shift (prevents layout jank) */
.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--border-light);
}

/* Hero gradient accent glow */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 200, 83, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Stat number animation on scroll (used by hero stats) */
.stat-number {
  transition: color 0.3s ease;
}

/* Section labels — underline accent */
.section-label::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  margin-left: 0.75rem;
  vertical-align: middle;
  opacity: 0.5;
}

/* Product card — elevate on hover */
.product-card .card {
  transition: all 0.25s ease, border-color 0.25s ease;
}
.product-card:hover .card {
  border-color: rgba(0, 200, 83, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Floating contact — pulse on first icon (WhatsApp) */
.floating-contact-item:first-child .floating-contact-icon {
  animation: fc-pulse 3s infinite;
}
@keyframes fc-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* Flash messages — slide-in animation */
.flash-messages {
  animation: flash-in 0.3s ease;
}
@keyframes flash-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Scroll-to-top button (added via JS) */
.scroll-top {
  position: fixed;
  bottom: 5rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--content-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { color: var(--accent); border-color: var(--accent); }

/* Mobile nav — slide-in transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
}

/* Breadcrumb — hover underline */
.breadcrumb a {
  position: relative;
}
.breadcrumb a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.breadcrumb a:hover::after {
  width: 100%;
}

/* Spec table — alternating subtle background */
.spec-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
  border-radius: 0.25rem;
}

/* Footer social — gradient hover */
.footer-social {
  position: relative;
  overflow: hidden;
}
.footer-social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 200, 83, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.footer-social:hover::before {
  opacity: 1;
}

/* Admin buttons — consistent hover */
.admin-btn {
  transition: all 0.2s ease, transform 0.15s ease;
}
.admin-btn:hover {
  transform: translateY(-1px);
}
.admin-btn:active {
  transform: translateY(0);
}

/* Admin stat cards — gradient border top */
.admin-stat-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

/* Smooth page transitions */
main {
  animation: page-enter 0.3s ease;
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Better scrollbar for dark theme */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--surface);
}

/* Loading spinner for form submits */
.btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-primary.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.5rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
