/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2952e3;
  --blue-dark: #1d3fc4;
  --navy: #1b2440;
  --text: #2c3552;
  --text-light: #626a85;
  --bg-alt: #f5f7fd;
  --border: #e6e9f4;
  --green: #1fa971;
  --orange: #ea7a1f;
  --purple: #7c4fe0;
  --red: #e0344c;
  --teal: #0d8a86;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(20, 30, 70, 0.06);
  --shadow-hover: 0 10px 26px rgba(20, 30, 70, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input { font: inherit; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { color: var(--navy); font-weight: 800; line-height: 1.2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.logo-sub { font-size: 0.68rem; color: var(--text-light); font-weight: 500; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  padding: 8px 0;
}

.main-nav a:hover { color: var(--blue); }
.chev { opacity: 0.55; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--navy);
  flex-shrink: 0;
}
.icon-btn:hover { background: #e8edfc; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f4f7fe 0%, #ffffff 100%);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
}
.text-accent { color: var(--blue); }

.hero-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px 6px 6px 18px;
  gap: 10px;
  max-width: 560px;
  margin-bottom: 22px;
}
.hero-search svg { color: var(--text-light); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  min-width: 0;
  padding: 10px 0;
  font-size: 0.95rem;
}
.hero-search button {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 7px;
  flex-shrink: 0;
  transition: background .2s;
}
.hero-search button:hover { background: var(--blue-dark); }

.disclaimer-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  max-width: 560px;
}
.disclaimer-box svg { flex-shrink: 0; margin-top: 2px; }
.disclaimer-box p { font-size: 0.88rem; color: var(--text-light); }
.disclaimer-box strong { color: var(--navy); }

/* ---------- Hero Art ---------- */
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1rem;
}

.card-grid { display: grid; gap: 20px; }

/* Topic cards */
.topic-grid { grid-template-columns: repeat(6, 1fr); }

.topic-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.topic-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.topic-icon {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 16px;
}
.topic-icon img { width: 100%; height: 100%; }

.topic-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.topic-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }

.link-arrow {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(3px); }

/* Company cards */
.company-grid { grid-template-columns: repeat(7, 1fr); gap: 14px; }

.company-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  transition: box-shadow .2s, transform .2s;
}
.company-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.company-card h3 { font-size: 0.98rem; margin-bottom: 12px; }

.check-list { margin-bottom: 14px; }
.check-list li {
  font-size: 0.76rem;
  color: var(--text-light);
  padding: 3px 0 3px 18px;
  position: relative;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 7px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.company-card .btn-outline {
  font-size: 0.74rem;
  padding: 7px 10px;
  gap: 4px;
  white-space: nowrap;
}

.view-all-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-alt);
  border-style: dashed;
}
.view-all-card .dots { color: var(--blue); margin-bottom: 12px; }
.view-all-card p { font-weight: 800; color: var(--navy); margin-bottom: 12px; }

/* Guide cards */
.guide-grid { grid-template-columns: repeat(4, 1fr); }

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.guide-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.guide-thumb {
  height: 140px;
  overflow: hidden;
}
.guide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.guide-card:hover .guide-thumb img { transform: scale(1.05); }

.guide-body { padding: 18px 20px 22px; }
.guide-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 8px; }
.tag-blue { color: var(--blue); }
.tag-orange { color: var(--orange); }
.tag-dark { color: var(--navy); }

.guide-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.35; }
.guide-desc { font-size: 0.86rem; color: var(--text-light); margin-bottom: 14px; }

.center-btn { text-align: center; margin-top: 36px; }

/* Trust strip */
.trust-strip { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.trust-item p { color: var(--text-light); font-size: 0.85rem; }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--blue) 0%, #1d3fc4 100%); padding: 40px 0 18px; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-copy { display: flex; gap: 14px; align-items: center; color: #fff; }
.newsletter-copy strong { font-size: 1.15rem; display: block; margin-bottom: 4px; }
.newsletter-copy p { font-size: 0.88rem; opacity: 0.9; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  border: none;
  border-radius: 7px;
  padding: 13px 16px;
  min-width: 260px;
  outline: none;
  font-size: 0.9rem;
}
.newsletter-form button {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 7px;
  transition: background .2s;
}
.newsletter-form button:hover { background: #0f1730; }

.newsletter-note {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Footer */
.site-footer { background: var(--navy); color: #b9c0dd; padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.85rem; margin: 14px 0 18px; line-height: 1.6; }
.footer-brand .logo-title { color: #fff; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s;
}
.social-links a:hover { background: var(--blue); }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.85rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 22px;
  color: #8790b3;
}

/* ---------- Mobile Bottom Nav ---------- */
.bottom-nav {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 10px 20px rgba(20,30,70,0.08);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 16px; }
  .main-nav ul li { width: 100%; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); justify-content: space-between; }

  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; padding: 0 0 20px; }

  body { padding-bottom: 62px; }

  .bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(20, 30, 70, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px 8px;
    color: var(--text-light);
  }
  .bottom-nav-item span { font-size: 0.65rem; font-weight: 600; }
  .bottom-nav-item.active,
  .bottom-nav-item:active { color: var(--blue); }
}

@media (max-width: 640px) {
  .header-inner { height: 66px; }
  .logo-sub { display: none; }
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search input { flex: 1 1 100%; width: 100%; order: 1; }
  .hero-search svg { order: 0; }
  .hero-search button { width: 100%; order: 2; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }

  .topic-grid,
  .company-grid,
  .guide-grid,
  .trust-grid { grid-template-columns: 1fr; }

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

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; min-width: 0; }
  .newsletter-form button { width: 100%; }
}
