/* ============================================
   LEFUNSMART — Corporate Static Website
   styles.css
   ============================================ */

/* ── Variables ── */
:root {
  --bg:       #060912;
  --bg2:      #0a0f1e;
  --surface:  #111827;
  --surface2: #1a2236;
  --border:   #1e2d45;
  --accent:   #00C853;
  --accent2:  #00e676;
  --text:     #e8eaf0;
  --text2:    #8b95a8;
  --text3:    #4a5578;
  --white:    #ffffff;
  --radius:   12px;
  --shadow:   0 8px 32px rgba(0,0,0,.45);
  --max-w:    1200px;
  --pad:      24px;
  --ff:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ── Typography ── */
.accent { color: var(--accent); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,83,.1);
  border: 1px solid rgba(0,200,83,.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6,9,18,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo span { color: var(--white); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.06); }
.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  margin-left: 8px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,83,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,83,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,200,83,.1);
  border: 1px solid rgba(0,200,83,.2);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
  animation: pulse-badge 3s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,.2); }
  50% { box-shadow: 0 0 0 8px rgba(0,200,83,0); }
}
.hero-text h1 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.03em;
}
.hero-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: 10px;
  transition: all .25s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,83,.35); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-val { font-size: 22px; font-weight: 800; color: var(--white); }
.stat-lbl { font-size: 11px; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-camera-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow), 0 0 60px rgba(0,200,83,.06);
  animation: float-card 6s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.camera-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(0,200,83,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,200,83,.08) 0%, transparent 70%);
}
.camera-lens {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #0d1520;
  border: 2px solid rgba(0,200,83,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.camera-lens::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,83,.2);
}
.camera-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #001a0a;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(0,200,83,.6);
}
.camera-info { width: 100%; }
.camera-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.camera-model { font-size: 12px; color: var(--text3); font-weight: 500; }

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.feat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
  padding: 100px 0;
  background: var(--bg2);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.product-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0,200,83,.9);
  color: var(--bg);
}
.product-badge.new { background: rgba(255,165,0,.9); }
.product-body { padding: 24px; }
.product-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.product-body p {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
}
.product-specs {
  margin-bottom: 20px;
}
.product-specs li {
  font-size: 13px;
  color: var(--text2);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.product-specs li:last-child { border-bottom: none; }
.btn-outline {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0,200,83,.35);
  border-radius: 8px;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(0,200,83,.08); border-color: var(--accent); }

/* ============================================
   WHY US
   ============================================ */
.why-us { padding: 100px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-text .section-header { text-align: left; }
.why-text h2 { font-size: clamp(30px, 3.5vw, 48px); }
.why-features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.why-icon { font-size: 24px; flex-shrink: 0; width: 36px; text-align: center; }
.why-item h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--text2); line-height: 1.6; }

.why-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.why-visual img { width: 100%; height: 480px; object-fit: cover; display: block; }
.why-stats-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
}
.stat-ov {
  flex: 1;
  background: rgba(6,9,18,.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.sov-val { display: block; font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
.sov-lbl { font-size: 11px; color: var(--text2); }

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 100px 0; background: var(--bg2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-img-wrap img { width: 100%; height: 480px; object-fit: cover; display: block; }
.about-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(6,9,18,.92));
  padding: 40px 24px 24px;
}
.about-year {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.about-tagline {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.about-text .section-header { text-align: left; margin-bottom: 24px; }
.about-text p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-highlights {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.high-item { display: flex; flex-direction: column; gap: 4px; }
.high-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.high-lbl { font-size: 12px; color: var(--text2); }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color .25s;
}
.contact-card:hover { border-color: rgba(0,200,83,.4); }
.contact-icon { font-size: 32px; margin-bottom: 12px; }
.contact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 8px;
}
.contact-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.contact-val a:hover { color: var(--accent); }
.contact-sub { font-size: 13px; color: var(--text2); }

.contact-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group:last-of-type { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--ff);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(0,200,83,.5); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b95a8' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ff);
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s;
}
.btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}
.footer-links { display: contents; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom span { font-size: 12px; color: var(--text3); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  color: var(--text3);
  transition: color .2s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--accent); }

/* ============================================
   RESPONSIVE — Desktop first, tablet+ OK
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(6,9,18,.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 10px 14px; font-size: 15px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .mobile-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-highlights { flex-wrap: wrap; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
}
/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* Form shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake .45s ease; }
