@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #0087F7;
  --brand-hover: #006fd6;
  --brand-light: #e8f4ff;
  --bg-base: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-code: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --muted-lt: #94a3b8;
  --border: #e2e8f0;
  --border-md: #cbd5e1;
  --radius: .875rem;
  --radius-sm: .5rem;
  --shadow-sm: 0 1px 4px rgba(15,23,42,.07);
  --shadow: 0 6px 24px rgba(15,23,42,.10);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gradient-brand: linear-gradient(135deg, #0087F7 0%, #00c6ff 100%);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 2.5rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 100; gap: 1rem;
}
.site-nav__left { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.site-nav__brand {
  font-size: 1.3rem; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -.03em; white-space: nowrap;
  background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.site-nav__search { flex: 1; max-width: 340px; }
.site-nav__search-input {
  width: 100%; padding: .5rem 1rem; border: 1.5px solid var(--border);
  border-radius: 2rem; font-size: .875rem; background: var(--bg-subtle);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.site-nav__search-input:focus {
  border-color: var(--brand); background: var(--bg-base);
  box-shadow: 0 0 0 3px rgba(0,135,247,.12);
}
.site-nav__search-input::placeholder { color: var(--muted-lt); }
.site-nav__links { display: flex; gap: .25rem; align-items: center; flex-shrink: 0; }
.nav-link { color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; padding: .45rem .8rem; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-subtle); }
@media (max-width: 768px) { .site-nav__search { display: none; } }

/* Buttons */
.btn-brand {
  background: var(--gradient-brand); color: #fff; border: none;
  padding: .55rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  display: inline-block; transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,135,247,.30);
}
.btn-brand:hover { opacity: .88; color: #fff; box-shadow: 0 4px 16px rgba(0,135,247,.40); }
.btn-brand-lg { padding: .8rem 2rem; font-size: 1.05rem; border-radius: .625rem; }
.btn-outline { border: 1.5px solid var(--border-md); color: var(--text); background: transparent; padding: .55rem 1.4rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; text-decoration: none; display: inline-block; transition: border-color .15s, background .15s; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn-outline-lg { padding: .8rem 2rem; font-size: 1.05rem; border-radius: .625rem; }

/* Sections */
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .875rem; }
.section-title { font-size: 2.25rem; font-weight: 800; color: var(--text); margin-bottom: .875rem; letter-spacing: -.03em; }
.section-sub { color: var(--muted); margin-bottom: 3.5rem; font-size: 1.075rem; line-height: 1.7; }

/* Card */
.card-base {
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s;
  border-top: 3px solid var(--brand);
}
.card-base:hover { box-shadow: var(--shadow); border-color: var(--border-md); }
.feature-card__icon { margin-bottom: 1.125rem; }
.feature-card__link { font-size: .8rem; color: var(--brand); font-weight: 600; margin-top: .875rem; display: inline-block; }
.feature-card__img { border-radius: .625rem; overflow: hidden; margin-bottom: 1.375rem; aspect-ratio: 16/10; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.card-base:hover .feature-card__img img { transform: scale(1.04); }

/* Code */
.code-block { background: #0f172a; border: 1px solid #1e293b; border-radius: var(--radius); padding: 1.75rem; overflow-x: auto; }
.code-block pre { margin: 0; font-family: var(--font-mono); font-size: .875rem; line-height: 1.75; color: #e2e8f0; }
.code-comment { color: #475569; }
.code-string { color: #4ade80; }
.code-key { color: #60a5fa; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; background: var(--bg-subtle); }
.site-footer p, .site-footer a { color: var(--muted); font-size: .875rem; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Page hero (inner pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.page-hero__title { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.page-hero__sub { color: var(--muted); font-size: 1.075rem; margin: 0; }

@media (max-width: 576px) {
  .site-nav { padding: .75rem 1rem; }
  .site-nav__links .nav-link { display: none; }
}
