@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Theme tokens ── */
:root {
  --bg:           #0a0a0a;
  --nav-bg:       rgba(10,10,10,0.85);
  --surface:      #111;
  --surface-2:    #1a1a1a;
  --text:         #fff;
  --text-muted:   rgba(255,255,255,0.55);
  --text-nav:     rgba(255,255,255,0.82);
  --border:       rgba(255,255,255,0.1);
  --border-card:  rgba(255,255,255,0.08);
  --btn-bg:       rgba(255,255,255,0.07);
  --btn-hover:    rgba(255,255,255,0.13);
  --pill-bg:      rgba(255,255,255,0.08);
  --pill-border:  rgba(255,255,255,0.15);
  --accent:       #4a9eff;
  --accent-dim:   rgba(74,158,255,0.15);
  --hero-grad-1:  #0a3a5c;
  --hero-grad-2:  #0a0a0a;
}
[data-theme="light"] {
  --bg:           #fafafa;
  --nav-bg:       rgba(250,250,250,0.85);
  --surface:      #fff;
  --surface-2:    #f2f2f2;
  --text:         #0a0a0a;
  --text-muted:   rgba(0,0,0,0.5);
  --text-nav:     rgba(0,0,0,0.78);
  --border:       rgba(0,0,0,0.1);
  --border-card:  rgba(0,0,0,0.07);
  --btn-bg:       rgba(0,0,0,0.05);
  --btn-hover:    rgba(0,0,0,0.1);
  --pill-bg:      rgba(0,0,0,0.05);
  --pill-border:  rgba(0,0,0,0.12);
  --accent:       #0a5fd4;
  --accent-dim:   rgba(10,95,212,0.1);
  --hero-grad-1:  #d4e8f8;
  --hero-grad-2:  #fafafa;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* ─────────────────────────────────
   NAVBAR
───────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s, border-color 0.3s;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 28px;
  flex-shrink: 0;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 42px;
  padding: 0 10px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-nav);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
  user-select: none;
}
.ctrl-btn:hover {
  background: var(--btn-hover);
  border-color: var(--text-muted);
}
.ctrl-btn svg {
  width: 14px;
  height: 14px;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-brand {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-right: 36px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.nav-brand:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-nav);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background: var(--btn-bg);
  color: var(--text);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 7px;
  color: var(--text-nav);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-icon-btn:hover {
  background: var(--btn-bg);
  color: var(--text);
}
.nav-icon-btn svg { width: 18px; height: 18px; }

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--hero-grad-1), transparent 70%),
              radial-gradient(ellipse 40% 30% at 20% 80%, rgba(74,158,255,0.06), transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--pill-border);
  border-radius: 100px;
  background: var(--pill-bg);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 36px;
  position: relative;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 24px;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 44px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-secondary:hover {
  background: var(--btn-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ─────────────────────────────────
   PAGE SECTIONS (shared by inner pages)
───────────────────────────────── */
.services {
  padding: 100px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 600px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 36px 32px 40px;
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.card-arrow svg { width: 14px; height: 14px; transition: transform 0.15s; }
.card:hover .card-arrow svg { transform: translateX(3px); }

/* ─────────────────────────────────
   TRUST / NOTES BAR
───────────────────────────────── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
}
.trust-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
@media (max-width: 640px) {
  .trust-inner { grid-template-columns: 1fr; gap: 28px; }
}
.trust-item h4 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
footer {
  padding: 52px 24px 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-nav);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─────────────────────────────────
   SEARCH OVERLAY
───────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-box {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
}
.search-input::placeholder { color: var(--text-muted); }
.search-hint {
  padding: 14px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
