:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ink: #0f1729;
  --ink-2: #475067;
  --muted: #6b7280;
  --line: #e6e9ef;
  --accent: #1b4ef5;
  --accent-hover: #143ae1;
  --accent-soft: #eef2ff;
  --accent-text: #2563eb;
}

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

body {
  font-family: "Inter", "Geist", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", "Geist", system-ui, sans-serif;
  color: var(--ink);
  font-weight: 600;
}

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

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
}
.site-nav-logo {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav-logo:hover { color: var(--ink); }
.site-nav-logo span { color: var(--accent); }
.site-nav-links { display: flex; align-items: center; gap: 2px; }
.site-nav-links > a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.site-nav-links > a:hover { background: var(--bg-alt); color: var(--ink); }
.site-nav-links a.active { color: var(--accent); }
.site-nav-links .btn-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 100px;
  margin-left: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.15s;
}
.site-nav-links .btn-cta:hover { background: var(--accent-hover); color: #ffffff; }

/* nav dropdown */
.nav-drop { position: relative; }
.nav-drop-trigger {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-drop-trigger:hover { background: var(--bg-alt); color: var(--ink); }
.nav-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s;
  opacity: 0.6;
}
.nav-drop:hover .nav-caret { transform: rotate(180deg); }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,41,0.1);
  padding: 6px;
  z-index: 200;
  margin-top: 6px;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
}
.nav-drop-menu a:hover { background: var(--accent-soft); color: var(--accent-text); }

/* === BUTTONS === */
.site-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.site-btn:hover { background: var(--accent-hover); transform: translateY(-1px); color: #ffffff; }
.site-btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.site-btn-outline:hover { background: var(--bg-alt); border-color: #cfd6e4; color: var(--ink); }

/* === HERO === */
.site-hero {
  padding: 96px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 70%);
}
.site-hero h1 {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-hero h1 span { color: var(--accent); }
.site-hero .subline {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.site-hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === SECTIONS === */
.site-section { padding: 72px 0; }
.site-section-alt { background: var(--bg-alt); }
.site-section-header { text-align: center; margin-bottom: 48px; }
.site-section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.site-section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.site-section-header p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CARDS === */
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.site-card:hover {
  border-color: #cfd6e4;
  box-shadow: 0 12px 28px rgba(15,23,41,0.08);
  transform: translateY(-2px);
}
.site-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border: 1px solid #dbe3fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: var(--accent);
}
.site-card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.site-card p { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.site-card-link { color: var(--accent-text); font-weight: 600; font-size: 14px; }
.site-card-link:hover { color: var(--accent-hover); }

/* === STATS === */
.site-stats { display: flex; gap: 60px; justify-content: center; padding: 8px 0; flex-wrap: wrap; }
.site-stat { text-align: center; }
.site-stat-number { font-size: 44px; font-weight: 700; color: var(--ink); }
.site-stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* === CTA === */
.site-cta { padding: 80px 0; text-align: center; background: var(--accent-soft); }
.site-cta h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.site-cta p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* === NETWORK NOTE === */
.site-network { padding: 40px 0; text-align: center; font-size: 14px; color: var(--muted); }
.site-network a { color: var(--accent-text); font-weight: 600; }

/* === SEPARATOR === */
.site-sep { display: block; width: 100%; height: 1px; background: var(--line); }

/* === FOOTER === */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  padding: 56px 0 0;
}
.site-footer-top { margin-bottom: 36px; max-width: 360px; }
.site-footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.site-footer-brand span { color: var(--accent); }
.site-footer-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.site-footer-col h4 { margin-bottom: 14px; }
.site-footer-col h4 a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-footer-col h4 a:hover { color: var(--accent-text); }
.site-footer-col a {
  display: block;
  color: var(--ink-2);
  font-size: 13.5px;
  padding: 4px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.site-footer-col a:hover { color: var(--accent-text); }
.site-footer-bottom {
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer-bottom .site-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer-bottom a { color: var(--ink-2); text-decoration: none; }
.site-footer-bottom a:hover { color: var(--accent-text); }
.site-footer-legal a { margin-left: 16px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .site-cards { grid-template-columns: 1fr 1fr; }
  .site-hero h1 { font-size: 40px; }
  .site-footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .site-hero { padding: 64px 0 48px; }
  .site-hero h1 { font-size: 32px; }
  .site-cards { grid-template-columns: 1fr; }
  .site-stats { gap: 28px; }
  .site-footer-cols { grid-template-columns: 1fr 1fr; }
  .site-footer-bottom .site-container { flex-direction: column; text-align: center; }
  .site-footer-legal a { margin: 0 8px; }
}

@media (max-width: 480px) {
  .site-container { padding: 0 16px; }
  .site-hero h1 { font-size: 28px; }
  .site-section { padding: 56px 0; }
  .site-section-header h2 { font-size: 28px; }
}

/* === MOBILE BOTTOM TAB BAR (light, sliding blue glow) === */
.site-tabbar { display: none; }
.tabbar-indicator { display: none; }

@media (max-width: 768px) {
  .site-nav-links { display: none !important; }
  .site-nav-inner { justify-content: center; padding: 0 16px; min-height: 56px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .site-tabbar {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99;
    min-height: 62px;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(15,23,41,0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .tabbar-indicator {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 100%;
    background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(27,78,245,0.18) 0%, rgba(27,78,245,0.05) 45%, transparent 75%);
    transform: translateX(0);
    transition: transform 0.34s cubic-bezier(0.22,1,0.36,1), width 0.34s cubic-bezier(0.22,1,0.36,1), opacity 0.25s;
    pointer-events: none;
  }

  .site-tabbar a {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px 6px;
    text-decoration: none;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
  }
  .site-tabbar a svg {
    width: 22px; height: 22px; display: block;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), filter 0.25s, color 0.2s;
  }
  .site-tabbar a span { display: block; line-height: 1.1; }
  .site-tabbar a:hover { color: var(--ink-2); }
  .site-tabbar a.active { color: var(--accent-text); }
  .site-tabbar a.active svg {
    color: var(--accent);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px rgba(27,78,245,0.4));
  }
  .site-tabbar a:active svg { transform: scale(0.9); }
}
