/* ===== Design tokens ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ink: #0f1729;
  --ink-soft: #4a5568;
  --ink-faint: #8a94a6;
  --line: #e7ebf2;
  --brand: #3257ff;
  --brand-dark: #2342cc;
  --brand-soft: #eef1ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --maxw: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(50, 87, 255, 0.25);
}
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 26px rgba(50, 87, 255, 0.32); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #cdd5e3; background: #fcfdff; }
.btn-block { width: 100%; }
.btn-light {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
}
.btn-light:hover { background: #f4f6ff; }
.btn-lg { padding: 15px 28px; font-size: 1rem; margin-top: 28px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s ease; }

/* ===== Hero ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-light { background: rgba(255,255,255,0.16); color: #fff; }

.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(50, 87, 255, 0.08), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 600px;
  font-size: 1.12rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-lead { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Service cards ===== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9e0ec; }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--brand-soft);
  border-radius: 12px;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 18px; }
.about-text { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.about-grid .btn { margin-top: 8px; }
.about-points { display: grid; gap: 14px; }
.about-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.about-points strong { display: block; font-size: 1rem; }
.about-points span { color: var(--ink-soft); font-size: 0.93rem; }

/* ===== Community CTA ===== */
.community { padding-bottom: 100px; }
.community-card {
  background:
    radial-gradient(120% 120% at 0% 0%, #3257ff 0%, #1b2a6b 60%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.community-card h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 14px; }
.community-card p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 48px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.footer-brand { display: grid; gap: 6px; }
.footer-brand .brand-mark { color: var(--brand); }
.footer-brand { font-weight: 800; }
.footer-brand p { font-weight: 400; color: var(--ink-faint); font-size: 0.9rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 18px;
  }
  .hero { padding: 64px 0 50px; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .community-card { padding: 44px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
