/* ============================================
   WPC Solutions - Design System v2
   Light theme, Playfair Display + Inter
   ============================================ */

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

:root {
  --primary-500: #E8413C;
  --primary-600: #D42A25;
  --primary-50: #FEF2F1;
  --primary-100: #FDE6E4;
  --neutral-0: #FFFFFF;
  --neutral-50: #F5F5F4;
  --neutral-100: #EBEBEA;
  --neutral-200: #D6D5D3;
  --neutral-300: #B8B6B3;
  --neutral-400: #9A9894;
  --neutral-500: #7C7A75;
  --neutral-600: #5E5C58;
  --neutral-700: #48463F;
  --neutral-800: #33312C;
  --neutral-900: #1E1D1A;
  --neutral-950: #0F0E0C;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  background: #FAFAFA;
  color: var(--neutral-900);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 99;
  background: rgba(250,250,250,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-100);
  padding: 0 40px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  transition: height 0.35s ease;
}
.navbar.scrolled {
  height: 68px;
}
.navbar.scrolled .nav-logo img {
  height: 48px;
}
.navbar-inner {
  max-width: 1200px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 70px; width: auto; transition: height 0.35s ease; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a { font-size: 14px; color: var(--neutral-500); text-decoration: none; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover { color: var(--neutral-900); }
.nav-cta {
  padding: 9px 22px; border-radius: 10px; border: none;
  background: var(--primary-500); color: #fff !important;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.nav-cta:hover { background: var(--primary-600); box-shadow: 0 4px 12px rgba(232,65,60,0.25); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-900);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  padding: 100px 40px 120px;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 72px; align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-500); margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display); font-size: 76px; font-weight: 400;
  line-height: 1.1; color: var(--neutral-900); margin-bottom: 32px;
  letter-spacing: -0.035em;
}
.hero-line { width: 48px; height: 3px; background: var(--primary-500); border-radius: 2px; margin-bottom: 28px; }
.hero p {
  font-size: 18px; color: var(--neutral-600); line-height: 1.7;
  max-width: 480px; margin-bottom: 40px;
}
.hero-buttons { display: flex; gap: 12px; }
.btn-primary {
  padding: 14px 32px; border-radius: 10px; border: none;
  background: var(--neutral-900); color: #fff;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--neutral-800); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-outline {
  padding: 14px 32px; border-radius: 10px;
  border: 1.5px solid var(--neutral-200); background: transparent;
  color: var(--neutral-700); font-size: 15px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--neutral-900); color: var(--neutral-900); }

.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(145deg, var(--neutral-950) 0%, var(--neutral-800) 100%);
  min-height: 460px; display: flex; align-items: flex-end; padding: 36px;
}
.hero-visual::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,65,60,0.15), transparent 70%);
}
.hero-visual-grid {
  position: absolute; top: 28px; right: 28px;
  display: grid; grid-template-columns: repeat(5,18px); gap: 5px; opacity: 0.3;
}
.hero-visual-grid span { width: 18px; height: 18px; border-radius: 3px; }
.hero-visual-text { position: relative; z-index: 1; }
.hero-visual-text .stat {
  font-family: var(--font-display); font-size: 44px; color: #fff; margin-bottom: 4px;
}
.hero-visual-text .stat-label { font-size: 14px; color: rgba(255,255,255,0.4); }
.hero-photo-note {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 13px; color: rgba(255,255,255,0.25); text-align: center;
  border: 1px dashed rgba(255,255,255,0.15); padding: 16px 24px; border-radius: 12px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  border-top: 1px solid var(--neutral-100);
  border-bottom: 1px solid var(--neutral-100);
  padding: 28px 40px; background: var(--neutral-0);
}
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 48px;
}
.trust-label { font-size: 12px; color: var(--neutral-400); font-weight: 500; white-space: nowrap; }
.trust-logos { display: flex; gap: 40px; align-items: center; }
.trust-logo {
  font-size: 15px; font-weight: 700; color: var(--neutral-300);
  letter-spacing: -0.02em; opacity: 0.6;
}

/* ===== SECTIONS COMMON ===== */
.section-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-500); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: 48px; font-weight: 400;
  color: var(--neutral-900); line-height: 1.1; margin-bottom: 12px;
  letter-spacing: -0.035em;
}
.section-subtitle {
  font-size: 16px; color: var(--neutral-500); max-width: 480px; margin-bottom: 48px; line-height: 1.6;
}
.section-divider { width: 40px; height: 2px; background: var(--primary-500); border-radius: 1px; margin-bottom: 24px; }

/* ===== SERVICES ===== */
.services { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  padding: 32px 24px; border-radius: 14px;
  background: var(--neutral-0); border: 1px solid var(--neutral-100);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); cursor: default;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06);
  border-color: var(--primary-500);
}
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-50); display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--primary-500); margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-body); font-size: 17px; font-weight: 600;
  color: var(--neutral-900); margin-bottom: 8px; letter-spacing: -0.035em;
}
.service-card p { font-size: 14px; color: var(--neutral-500); line-height: 1.6; margin-bottom: 16px; }
.service-link { font-size: 14px; font-weight: 600; color: var(--primary-500); text-decoration: none; }
.service-link:hover { color: var(--primary-600); }

/* ===== AI HIGHLIGHT ===== */
.ai-highlight {
  background: var(--neutral-950); padding: 100px 40px; position: relative; overflow: hidden;
}
.ai-highlight::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 500px; height: 500px; opacity: 0.04;
  background: radial-gradient(circle, var(--primary-500), transparent 70%);
}
.ai-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ai-highlight .section-tag { color: var(--primary-500); }
.ai-highlight .section-title { color: #fff; font-size: 48px; }
.ai-highlight p { color: var(--neutral-500); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.ai-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ai-stat {
  padding: 24px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.ai-stat .number { font-family: var(--font-display); font-size: 32px; color: #fff; margin-bottom: 4px; }
.ai-stat .label { font-size: 13px; color: var(--neutral-500); }
.ai-features { display: flex; flex-direction: column; gap: 16px; }
.ai-feature {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.ai-feature:hover { border-color: rgba(232,65,60,0.3); }
.ai-feature-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: rgba(232,65,60,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--primary-500);
}
.ai-feature h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.ai-feature p { font-size: 13px; color: var(--neutral-500); margin: 0; line-height: 1.5; }

/* ===== ABOUT ===== */
.about { padding: 100px 40px; max-width: 1200px; margin: 0 auto; }
.about-grid { max-width: 720px; }
.about-text p { font-size: 16px; color: var(--neutral-600); line-height: 1.7; margin-bottom: 16px; }
.about-stats { display: flex; gap: 40px; margin-top: 36px; }
.about-stat h4 { font-family: var(--font-display); font-size: 44px; color: var(--primary-500); margin-bottom: 2px; }
.about-stat p { font-size: 13px; color: var(--neutral-400); margin: 0; }

/* ===== CONTACT ===== */
.contact { padding: 100px 40px; background: var(--neutral-0); border-top: 1px solid var(--neutral-100); }
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--neutral-800); margin-bottom: 6px; }
.form-input {
  padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--neutral-200);
  font-size: 14px; font-family: var(--font-body); color: var(--neutral-900);
  background: var(--neutral-0); transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary-500); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  grid-column: 1 / -1; padding: 14px 32px; border-radius: 10px; border: none;
  background: var(--neutral-900); color: #fff;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--neutral-800); }

/* ===== FOOTER ===== */
.footer {
  background: var(--neutral-950); padding: 64px 40px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--neutral-500); max-width: 260px; line-height: 1.6; margin-top: 16px; }
.footer-logo img { height: 48px; width: auto; }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--neutral-400); margin-bottom: 16px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { font-size: 14px; color: var(--neutral-500); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-size: 13px; color: var(--neutral-600); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px 80px; }
  .hero h1 { font-size: 52px; }
  .hero-visual { min-height: 340px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .navbar { padding: 0 20px; height: 68px; }
  .navbar.scrolled { height: 60px; }
  .nav-logo img { height: 50px; }
  .navbar.scrolled .nav-logo img { height: 36px; }

  .nav-toggle { display: flex; z-index: 1001; }
  .nav-links {
    position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: var(--neutral-0); flex-direction: column; padding: 80px 32px 32px;
    gap: 24px; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 16px; color: var(--neutral-700); }

  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.3); z-index: 999;
  }
  .nav-overlay.active { display: block; }

  .hero { padding: 40px 20px 60px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .hero-buttons { flex-direction: column; }
  .hero-visual { min-height: 280px; }

  .trust-bar { padding: 20px; }
  .trust-bar-inner { flex-direction: column; gap: 16px; }
  .trust-logos { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .services { padding: 60px 20px; }
  .services-grid { grid-template-columns: 1fr; }

  .ai-highlight { padding: 60px 20px; }
  .ai-stats { grid-template-columns: 1fr 1fr; }
  .ai-highlight .section-title { font-size: 36px; }

  .about { padding: 60px 20px; }
  .about-stats { flex-direction: row; gap: 20px; justify-content: space-between; }
  .section-title { font-size: 36px; }

  .contact { padding: 60px 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }

  .footer { padding: 40px 20px 24px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
