/* ============ Apex Power Tech — Global Styles ============ */
:root {
  --blue-900: #0a2e5c;
  --blue-800: #0d3d7c;
  --blue-700: #0f5bb5;
  --blue-600: #1565c0;
  --blue-100: #e3eefb;
  --accent: #f5a623;
  --accent-dark: #d98e0f;
  --ink: #17263a;
  --muted: #5b6b7e;
  --line: #e3e9f1;
  --bg: #f5f8fc;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(13, 61, 124, 0.10);
  --radius: 14px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo-full { height: 40px; width: auto; }
.brand img.logo-mark { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.main-nav a:hover { background: var(--blue-100); color: var(--blue-700); }
.main-nav a.active { background: var(--blue-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--blue-800); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--blue-900);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,46,92,.92) 0%, rgba(13,61,124,.72) 45%, rgba(13,61,124,.30) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 110px 24px; }
.hero .eyebrow {
  display: inline-block; background: rgba(245,166,35,.18); color: var(--accent);
  border: 1px solid rgba(245,166,35,.55); padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { margin-top: 22px; font-size: 19px; color: #dce7f5; max-width: 620px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 10px;
  font-weight: 700; font-size: 15px; transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: #231a05; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-800); }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-800); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; color: #fff; padding: 96px 0 72px;
  background: linear-gradient(115deg, var(--blue-900), var(--blue-700));
  overflow: hidden;
}
.page-banner img.banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 40px; font-weight: 800; }
.page-banner p { margin-top: 12px; color: #cfe0f5; font-size: 17px; max-width: 720px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--accent-dark); font-weight: 800;
  letter-spacing: 2.5px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; line-height: 1.2; font-weight: 800; color: var(--blue-900); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16.5px; }

/* ---------- Stats ---------- */
.stats-band { background: var(--blue-900); color: #fff; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 38px; color: var(--accent); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: #b9cde8; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(13,61,124,.16); }
.card .card-img { height: 220px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; color: var(--blue-900); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card .card-link { margin-top: 16px; font-weight: 700; color: var(--blue-700); font-size: 14px; }
.card .card-link:hover { color: var(--accent-dark); }

/* feature list with check icons */
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink); font-size: 15.5px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split .split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product detail blocks ---------- */
.product-block {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 44px;
  display: grid; grid-template-columns: 1fr 1.15fr;
}
.product-block.flip { grid-template-columns: 1.15fr 1fr; }
.product-block.flip .product-img { order: 2; }
.product-img { position: relative; min-height: 320px; background: #fff; }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-img img.contain { object-fit: contain; padding: 24px; }
.product-info { padding: 40px 44px; }
.product-info .tag {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px; margin-bottom: 14px;
}
.product-info h3 { font-size: 26px; color: var(--blue-900); margin-bottom: 12px; }
.product-info p { color: var(--muted); font-size: 15px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.spec-table th { background: var(--blue-100); color: var(--blue-900); width: 38%; white-space: nowrap; }
.spec-note { margin-top: 14px; font-size: 13px; color: var(--accent-dark); font-weight: 600; }

/* ---------- Timeline / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-size: 30px; font-weight: 800; color: var(--blue-100);
  -webkit-text-stroke: 1.5px var(--blue-600); margin-bottom: 12px;
}
.step h4 { font-size: 16px; color: var(--blue-900); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Partner logo wall ---------- */
.logo-wall {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.logo-wall .ph {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  min-height: 74px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--blue-800); font-size: 14px; letter-spacing: .5px;
  padding: 10px; text-align: center;
}

/* ---------- Case cards ---------- */
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s; }
.case-card:hover img { transform: scale(1.06); }
.case-card .case-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(8,34,66,.92)); color: #fff;
}
.case-card .case-cap b { font-size: 16px; display: block; }
.case-card .case-cap span { font-size: 13px; color: #cfe0f5; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-card { background: var(--blue-900); color: #fff; border-radius: var(--radius); padding: 36px; }
.info-card h3 { font-size: 20px; margin-bottom: 22px; color: var(--accent); }
.info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-item .ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px;
  background: rgba(245,166,35,.15); display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.info-item b { display: block; font-size: 14px; color: #cfe0f5; margin-bottom: 2px; }
.info-item span { font-size: 15px; }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--blue-900); }
.form-field label em { color: #d64545; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fbfdff;
  transition: border-color .2s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600); background: #fff;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-msg { font-size: 14px; font-weight: 600; color: #1a8f4d; display: none; }
.form-msg.err { color: #d64545; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(110deg, var(--blue-800), var(--blue-600));
  border-radius: 20px; color: #fff; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 30px; font-weight: 800; max-width: 640px; }
.cta-band p { color: #cfe0f5; margin-top: 10px; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cde8; margin-top: 90px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding: 64px 0 44px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 1px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: #b9cde8; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero h1 { font-size: 40px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .product-block, .product-block.flip { grid-template-columns: 1fr; }
  .product-block.flip .product-img { order: 0; }
  .product-img { min-height: 260px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; background: #fff;
    box-shadow: 0 14px 30px rgba(13,61,124,.15);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 12px 18px 18px; gap: 2px; }
  .grid-3, .grid-4, .steps, .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-content { padding: 80px 24px; }
  .page-banner h1 { font-size: 30px; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
}
