:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-100: #e0e7ff;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 8px 28px rgba(2, 6, 23, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f5f9;
    --muted: #cbd5e1;
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --card: #0f172a;
    --border: #1f2937;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
main { flex: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
}

.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.app-badge {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6 52%, #f43f5e);
  color: white;
  font-size: 13px;
  font-weight: 850;
}
.menu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.link {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}
.link:hover,
.link[aria-current="page"] { color: var(--text); background: var(--bg-soft); }

.hero {
  padding: 72px 0 32px;
  background: radial-gradient(1000px 360px at 50% -10%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 64%);
}
.hero-inner { max-width: 760px; }
.eyebrow { color: var(--primary); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
h1 { margin-top: 8px; font-size: clamp(34px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.hero p { margin-top: 14px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 750;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary-100); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: white; }

section { padding: 34px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }
.card {
  grid-column: span 4;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card i { color: var(--primary); font-size: 22px; margin-bottom: 12px; }
.card h2 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }

footer { padding: 42px 0; border-top: 1px solid var(--border); background: var(--bg-soft); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.links a { color: var(--muted); font-weight: 500; }
.links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 14px; white-space: nowrap; }
.lang-switch { display: flex; gap: 8px; align-items: center; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.lang-btn.active { border-color: var(--primary); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

@media (max-width: 860px) {
  .card { grid-column: span 12; }
}

@media (max-width: 640px) {
  .menu { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .mobile-open .menu {
    display: flex;
    position: absolute;
    inset: 64px 12px auto 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
  }
}
