/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Colors ===== */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #e85d26;
  --accent-hover: #d14e1a;
  --bg-light: #f5f6f8;
  --text-muted: #666;
  --border: #e2e4e8;
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26,58,92,0.97);
  backdrop-filter: blur(10px);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 20px; border-radius: 4px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(15,37,64,0.92) 0%, rgba(26,58,92,0.85) 100%), url('../assets/hero-bg.jpg') center/cover no-repeat;
  padding: 120px 24px 80px;
}
.hero-content { max-width: 1280px; margin: 0 auto; width: 100%; }
.hero-tag {
  display: inline-block;
  background: rgba(232,93,38,0.15);
  color: var(--accent);
  padding: 6px 16px; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; color: #fff; line-height: 1.1;
  max-width: 800px; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 18px; color: rgba(255,255,255,0.8);
  max-width: 600px; margin-bottom: 40px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Inner page header ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 150px 24px 70px;
  text-align: center;
}
.page-hero .section-tag { margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; color: #fff;
}
.page-hero p {
  color: rgba(255,255,255,0.75); max-width: 620px; margin: 16px auto 0; font-size: 16px;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  transition: background 0.2s; display: inline-block;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  padding: 12px 32px; border-radius: 4px;
  font-weight: 600; font-size: 15px;
  transition: border-color 0.2s; display: inline-block;
}
.btn-outline:hover { border-color: #fff; }
.btn-cta { padding: 16px 44px; font-size: 17px; }

/* ===== Stats Bar ===== */
.stats-bar { background: var(--primary-dark); padding: 40px 24px; }
.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Section Base ===== */
.section { padding: 80px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  color: var(--accent); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800;
  color: var(--primary); line-height: 1.2;
}
.section-desc { color: var(--text-muted); max-width: 600px; margin: 16px auto 0; font-size: 16px; }

/* ===== Products Grid ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 32px 24px; text-align: center;
  transition: all 0.25s; cursor: pointer;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(232,93,38,0.1);
  transform: translateY(-2px);
}
.product-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: rgba(26,58,92,0.06); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.product-icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.product-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== Spec table ===== */
.spec-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border);
}
.spec-table th { background: var(--bg-light); color: var(--primary); font-weight: 700; width: 30%; }
.spec-table tr:last-child td { border-bottom: none; }

/* ===== Advantages ===== */
.advantages { background: var(--bg-light); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.adv-item {
  background: #fff; padding: 36px 28px; border-radius: 8px;
  border-top: 3px solid var(--accent);
}
.adv-item h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.adv-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== About prose ===== */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--text-muted); font-size: 16px; line-height: 1.9; margin-bottom: 20px; }
.prose h2 { color: var(--primary); font-size: 24px; margin: 36px 0 16px; }

/* ===== Contact cards ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 32px 28px; text-align: center;
}
.contact-card .contact-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  background: rgba(26,58,92,0.06); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-card .contact-icon svg { width: 26px; height: 26px; stroke: var(--primary); }
.contact-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.contact-card p, .contact-card a { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.contact-card a:hover { color: var(--accent); }
.contact-note {
  max-width: 820px; margin: 48px auto 0; background: var(--bg-light);
  border-radius: 8px; padding: 28px 32px;
}
.contact-note h3 { font-size: 17px; color: var(--primary); margin-bottom: 12px; }
.contact-note ul { list-style: disc; padding-left: 20px; }
.contact-note li { font-size: 14px; color: var(--text-muted); line-height: 2; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 24px; text-align: center;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 32px; font-size: 16px; }
.cta-contact {
  margin-top: 32px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px;
}
.cta-contact a { color: #fff; }
.cta-contact a:hover { color: var(--accent); }
.cta-sep { color: rgba(255,255,255,0.4); }

/* ===== Copy Toast ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: #111; color: #fff; padding: 13px 26px;
  border-radius: 6px; font-size: 14px; z-index: 300;
  transition: transform 0.3s, opacity 0.3s; opacity: 0;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== Contact / Footer ===== */
.footer {
  background: #0a1a2e; color: rgba(255,255,255,0.7);
  padding: 60px 24px 30px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer p, .footer li { font-size: 14px; line-height: 2; }
.footer-brand .logo { margin-bottom: 16px; display: inline-block; }
.footer-bottom {
  max-width: 1280px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ===== Product Detail ===== */
.detail-wrap {
  display: grid; grid-template-columns: 380px 1fr; gap: 40px;
  max-width: 1000px; margin: 0 auto; align-items: start;
}
.detail-image {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 12px; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.detail-image svg { width: 120px; height: 120px; stroke: var(--primary); }
.detail-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; color: var(--primary); margin: 8px 0 16px; }
.detail-desc { color: var(--text-muted); font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.detail-subtitle { font-size: 17px; font-weight: 700; color: var(--primary); margin: 24px 0 12px; }
.detail-apps { list-style: disc; padding-left: 20px; }
.detail-apps li { font-size: 14px; color: var(--text-muted); line-height: 2; }
.detail-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.detail-btn { border-color: var(--border); color: var(--primary) !important; padding: 10px 20px; font-size: 14px; }
.detail-btn:hover { border-color: var(--primary); }
.detail-contact { margin-top: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary-dark); padding: 20px; gap: 16px;
  }
  .hamburger { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 100px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}
