/* ============================================
   HENGPAI WEBSITE - MINIMALIST MODERN DESIGN
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables */
:root {
  --background: #FAFAFA;
  --foreground: #0F172A;
  --muted: #F1F5F9;
  --muted-foreground: #64748B;
  --accent: #0052FF;
  --accent-secondary: #4D7CFF;
  --accent-foreground: #FFFFFF;
  --border: #E2E8F0;
  --card: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 14px rgba(0,82,255,0.25);
  --shadow-accent-lg: 0 8px 24px rgba(0,82,255,0.35);
}

.dark {
  --background: #0F172A;
  --foreground: #F1F5F9;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --border: #334155;
  --card: #1E293B;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-display { font-family: 'Calistoga', Georgia, serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

h1, h2 { font-family: 'Calistoga', Georgia, serif; letter-spacing: -0.02em; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #0052FF, #4D7CFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gradient Underline */
.gradient-underline {
  position: relative;
  display: inline-block;
}
.gradient-underline::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  height: 0.75rem;
  width: 100%;
  border-radius: 0.125rem;
  background: linear-gradient(to right, rgba(0, 82, 255, 0.15), rgba(77, 124, 255, 0.1));
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #0052FF, #4D7CFF);
  color: white;
  font-weight: 500;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-accent);
  transition: all 0.2s ease-out;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
  filter: brightness(1.1);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--foreground);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s ease-out;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: rgba(0, 82, 255, 0.3);
  box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease-out;
}
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Featured Card with Gradient Border */
.card-featured {
  background: var(--card);
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #0052FF, #4D7CFF, #0052FF);
}
.card-featured-inner {
  background: var(--card);
  border-radius: calc(1rem - 2px);
  padding: 1.5rem;
  height: 100%;
}

/* Section Labels */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 82, 255, 0.3);
  background: rgba(0, 82, 255, 0.05);
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.section-label .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
.dark .section-label {
  background: rgba(0, 82, 255, 0.1);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.dark .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.nav-link:hover { color: var(--foreground); background: var(--muted); }
.nav-link.active { color: var(--accent); background: rgba(0, 82, 255, 0.1); }

/* Hero Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-1 { animation: float 5s ease-in-out infinite; }
.float-2 { animation: float 4s ease-in-out infinite 0.5s; }
.float-3 { animation: float 4.5s ease-in-out infinite 1s; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.rotate-slow { animation: rotate 60s linear infinite; }

/* Inverted Section */
.section-inverted {
  background: var(--foreground);
  color: var(--background);
}
.section-inverted .muted-foreground { color: rgba(255,255,255,0.7); }

/* Product Card */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

/* Grid Pattern */
.bg-grid-pattern {
  background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.03;
}

/* Container */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 0.75rem; }
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utilities */
.text-muted { color: var(--muted-foreground); }
.bg-muted { background: var(--muted); }
.border-default { border-color: var(--border); }
