:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-elev: #ffffff;
  --fg: #1a2332;
  --fg-soft: #2d3a4d;
  --muted: #6b7785;
  --border: #e5e9ef;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --accent-soft: #e6f0fb;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #151b23;
    --bg-elev: #1a212b;
    --fg: #e8ecf2;
    --fg-soft: #cbd2dc;
    --muted: #8a93a3;
    --border: #232a35;
    --accent: #4a9eff;
    --accent-hover: #6cb4ff;
    --accent-soft: #1a2b40;
    --shadow-sm: none;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.muted { color: var(--muted); }

/* === Header === */
.site-header {
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(13, 17, 23, .85); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark { font-size: 1.25rem; line-height: 1; }
.nav {
  display: flex;
  gap: 1.75rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--fg); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all .15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--muted);
}

/* === Hero === */
.hero {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, var(--accent-soft), transparent 65%);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-soft);
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Sections === */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* === Cards === */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--muted);
}
.card .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* === Features === */
.feature {
  padding: 0.5rem 0.25rem;
}
.feature-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* === Table === */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-alt); }
tbody td:first-child { font-weight: 500; color: var(--fg); }
tbody td:not(:first-child) { color: var(--fg-soft); white-space: nowrap; }

/* === Contact === */
.contact-grid h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.contact-line {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.contact-grid a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: border-color .15s ease;
}
.contact-grid a:hover { border-bottom-color: var(--accent); }
.contact-grid .muted {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === Responsive === */
@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { padding: 0.75rem 1.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
