:root {
  --brand: #212c82;
  --brand-light: #87ceeb;
  --brand-dark: #161d57;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --header: #0a0f2c;
  --header-bg: #ffffff;
  --header-text: #334155;
  --header-text-hover: #212c82;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-links a {
  color: var(--header-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--header-text-hover);
}

.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--brand-light);
  color: var(--brand-dark) !important;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #f8fafc;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--header-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--brand);
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(135, 206, 235, 0.18), transparent 60%),
    linear-gradient(160deg, #0a0f2c 0%, #161d57 55%, #212c82 100%);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.hero-text h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-text h1 span {
  color: var(--brand-light);
}

.hero-text p {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: #cbd5e1;
  max-width: 540px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-inner span {
  opacity: 0.85;
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 44, 130, 0.25);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(33, 44, 130, 0.08);
  color: var(--brand);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Products ---------- */
.products {
  background: var(--bg-soft);
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(33, 44, 130, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.product-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- About / strengths ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
}

.check-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
  margin-top: 2px;
}

.about-panel {
  background: linear-gradient(160deg, #0a0f2c, #212c82);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  box-shadow: var(--shadow);
}

.about-panel .metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-panel .metric:last-child {
  border-bottom: 0;
}

.about-panel .metric strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-light);
}

.about-panel .metric span {
  color: #cbd5e1;
  text-align: right;
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(135, 206, 235, 0.18), transparent 60%),
    linear-gradient(135deg, #161d57, #0a0f2c);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta p {
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header);
  color: #cbd5e1;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 280px;
  color: #94a3b8;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
