:root {
  --paper: #f7f8fa;
  --ink: #23272f;
  --ink-soft: #697180;
  --muted: #9aa3b2;
  --silver-1: #e4e8ee;
  --silver-2: #c9cfd9;
  --card: rgba(255, 255, 255, 0.84);
  --blue: #8fb0ff;
  --violet: #c8aaff;
  --pink: #ffa9dd;
  --green: #92dfc4;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(159, 184, 255, 0.3); }

#dotgrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255,255,255,.92) 0%, transparent 60%),
    radial-gradient(ellipse at 12% 110%, rgba(176,196,235,.12) 0%, transparent 45%),
    radial-gradient(ellipse at 88% 108%, rgba(214,186,240,.10) 0%, transparent 45%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 32px;
  background: rgba(250, 251, 253, 0.74);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 207, 217, 0.45);
}

.brand {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  background: linear-gradient(120deg, #3a404c, #7b8494 55%, #3a404c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.nav-links a:hover { color: #425fba; }

.topbar-badge {
  padding: 4px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--silver-1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--silver-1);
  background: rgba(255, 255, 255, 0.84);
  color: #5c6470;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.3px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 28, 38, 0.04);
}

.lang-toggle:hover {
  color: #425fba;
  border-color: #bfcaf0;
}

.page {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #a8b0bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 4.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver-2));
}

.main-title {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 950;
  background: linear-gradient(115deg, #2c313a 0%, #59616f 22%, #b3bcca 42%, #69707d 58%, #cfd5de 78%, #3a404c 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleSheen 9s ease-in-out infinite alternate;
}

@keyframes titleSheen {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
  margin: 0;
}

.hero-panel,
.article-panel {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--silver-1);
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(23, 28, 38, 0.04), 0 18px 48px rgba(23, 28, 38, 0.06);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 28px;
}

.hero-panel::before,
.article-card::before,
.article-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--violet), var(--blue), transparent);
  background-size: 220% 100%;
  opacity: 0.8;
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--silver-1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.stat b {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.article-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--silver-1);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(23, 28, 38, 0.04), 0 14px 36px rgba(23, 28, 38, 0.05);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 207, 217, 0.92);
  box-shadow: 0 2px 8px rgba(23, 28, 38, 0.05), 0 22px 56px rgba(74, 98, 150, 0.13);
}

.card-num {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-card h2 {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fbfcfe;
  border: 1px solid var(--silver-1);
  color: #5c6470;
  font-size: 11px;
  font-weight: 750;
}

.read-link {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4565c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.article-panel {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
}

.article-panel h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.article-panel p,
.article-panel li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.article-panel h2 {
  margin: 36px 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.article-panel ul {
  padding-left: 24px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.tool-list a,
.cta-box {
  display: block;
  padding: 18px;
  border: 1px solid var(--silver-1);
  border-radius: 18px;
  background: rgba(255,255,255,.70);
}

.tool-list a:hover {
  border-color: #bfcaf0;
  color: #425fba;
}

.cta-box {
  margin-top: 34px;
  background: linear-gradient(135deg, rgba(143, 176, 255, 0.18), rgba(255, 169, 221, 0.16), rgba(255,255,255,.76));
}

.cta-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-note {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: -52px auto 38px;
  color: #b9c0cc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .main-title { animation: none; }
  .article-card { transition: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .tool-list { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .topbar-actions { gap: 6px; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 18px; }
  .page { width: min(100% - 28px, 1180px); padding-top: 96px; }
  .hero-panel { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
}
