:root {
  --bg: #071018;
  --panel: #101a26;
  --panel-2: #142235;
  --line: #263548;
  --text: #eef6ff;
  --muted: #9eb1c5;
  --cyan: #21d4fd;
  --blue: #3578ff;
  --green: #41d394;
  --yellow: #ffd166;
  --red: #ff6b6b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 0%, rgba(33, 212, 253, 0.15), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(65, 211, 148, 0.12), transparent 30%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.82);
  border-bottom: 1px solid rgba(158, 177, 197, 0.16);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: 0; }
.brand-logo { width: 164px; height: 40px; object-fit: contain; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #061018;
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #061018; }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(158, 177, 197, 0.24); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #061018; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 44px;
  align-items: center;
  padding: 70px 0 42px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  background: rgba(33, 212, 253, 0.09);
  border: 1px solid rgba(33, 212, 253, 0.22);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
h1, h2, h3 { line-height: 1.05; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); margin: 18px 0 20px; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
h3 { font-size: 22px; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.visual-card, .card {
  background: linear-gradient(180deg, rgba(20, 34, 53, 0.92), rgba(16, 26, 38, 0.92));
  border: 1px solid rgba(158, 177, 197, 0.18);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
}
.visual-card { overflow: hidden; }
.visual-card img { height: 240px; width: 100%; object-fit: cover; border-bottom: 1px solid rgba(158, 177, 197, 0.18); }
.visual-body { padding: 22px; }
.meter { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow), var(--red)); }

.section { padding: 58px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { padding: 24px; }
.card p, .muted { color: var(--muted); }
.tag { color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.price { font-size: 34px; font-weight: 900; margin: 12px 0; }
.list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.list li { display: flex; gap: 10px; }
.list li:before { content: "OK"; color: var(--green); font-weight: 900; font-size: 12px; line-height: 1.9; }

.tool-panel { padding: 26px; }
.dropzone {
  border: 1px dashed rgba(158, 177, 197, 0.45);
  background: rgba(0, 0, 0, .18);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
input, select, textarea {
  width: 100%;
  background: rgba(0, 0, 0, .24);
  color: var(--text);
  border: 1px solid rgba(158, 177, 197, 0.28);
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  color-scheme: dark;
}
select {
  appearance: auto;
  background-color: rgba(0, 0, 0, .24);
}
select option {
  background: #101a26;
  color: var(--text);
}
select option:checked {
  background: #1b3760;
  color: #ffffff;
}
label { display: block; color: var(--muted); font-weight: 700; font-size: 13px; margin: 0 0 7px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result { margin-top: 18px; display: none; }
.result.show { display: block; }
.score { font-size: 48px; font-weight: 900; }
.risk-low { color: var(--green); }
.risk-med { color: var(--yellow); }
.risk-high { color: var(--red); }

.article-list { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.article-card { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.article-card.featured { background-image: linear-gradient(180deg, rgba(7,16,24,.18), rgba(7,16,24,.92)), url("blog_hero.png"); background-size: cover; background-position: center; }

.article { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0; }
.article p, .article li { color: #c2cfdd; font-size: 18px; }
.article h1 { font-size: clamp(36px, 5vw, 58px); }
.article h2 { margin-top: 36px; }
.article ul { padding-left: 22px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.82);
  border-bottom: 1px solid rgba(158, 177, 197, 0.16);
}
.article-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 24px;
}
.article-page h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 18px 0;
}
.article-hero {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(158, 177, 197, 0.18);
  margin: 32px 0;
}
.article-body p, .article-body li {
  color: #c2cfdd;
  font-size: 18px;
}
.article-body h2 {
  margin-top: 36px;
  font-size: clamp(26px, 3vw, 36px);
}
.callout {
  margin: 36px 0 0;
  padding: 24px;
  border: 1px solid rgba(33, 212, 253, 0.25);
  border-radius: 12px;
  background: rgba(33, 212, 253, 0.08);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 750;
}
.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #061018;
}

.site-footer {
  border-top: 1px solid rgba(158, 177, 197, 0.18);
  padding: 34px max(20px, calc((100vw - 1180px) / 2));
  margin-top: 42px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); margin-left: 16px; }
.site-footer a:hover { color: var(--text); }

.footer { border-top: 1px solid rgba(158, 177, 197, 0.18); padding: 38px 0; margin-top: 42px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer small { display: block; color: #7890a8; line-height: 1.55; margin-top: 10px; }
.company-details { color: var(--muted); font-size: 14px; line-height: 1.7; }
.company-details strong { color: var(--text); }
.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.resource-card p { margin-bottom: 18px; }

@media (max-width: 860px) {
  .nav-inner { flex-wrap: wrap; padding: 14px 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .grid-2, .grid-3, .article-list, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .section-head { display: block; }
  .site-header { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .site-footer a { margin-left: 0; margin-right: 16px; }
}
