*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void: #0f0f0f;
  --black: #000000;
  --white: #ffffff;
  --cyan: #00ffff;
  --blue: #0089ff;
  --ocean: #0096ff;
  --cobalt: #0007cd;
  --charcoal: #2c2c2c;
  --ghost: rgba(255,255,255,0.6);
  --whisper: rgba(255,255,255,0.5);
  --phantom: rgba(255,255,255,0.2);
  --b12: rgba(255,255,255,0.12);
  --b10: rgba(255,255,255,0.10);
  --b08: rgba(255,255,255,0.08);
  --b06: rgba(255,255,255,0.06);
  --b04: rgba(255,255,255,0.04);
  --sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,255,255,0.25);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--ghost);
  line-height: 1.65;
  max-width: 560px;
}

section { padding: 72px 0; }

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--void);
  border-bottom: 1px solid var(--b06);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--ghost);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: var(--void);
  border-bottom: 1px solid var(--b08);
  padding: 12px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  color: var(--ghost);
  padding: 10px 0;
  border-bottom: 1px solid var(--b04);
}
.nav-mobile a:last-child { border-bottom: none; }

/* HERO */
.hero {
  position: relative;
  padding: 88px 24px 72px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 360px;
  background: radial-gradient(ellipse, rgba(0,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 60px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.5px;
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero h1 em { font-style: normal; color: var(--cyan); }

.hero-sub {
  font-size: 17px;
  color: var(--ghost);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.btn {
  display: inline-block;
  padding: 9px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s;
}
.btn-white {
  background: var(--white);
  color: #111;
}
.btn-white:hover { opacity: 0.86; }
.btn-outline {
  background: rgba(0,255,255,0.07);
  color: var(--white);
  border: 1px solid var(--ocean);
}
.btn-outline:hover { background: rgba(0,255,255,0.13); }

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-img {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--b10);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.5) 0 8px 32px;
}
.hero-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* STATS */
.stats {
  border-top: 1px solid var(--b06);
  border-bottom: 1px solid var(--b06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 36px 20px;
  border-right: 1px solid var(--b06);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--cyan); }
.stat-label { font-size: 13px; color: var(--ghost); line-height: 1.4; }

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 40px;
}
.card {
  background: var(--black);
  border: 1px solid var(--b08);
  border-radius: 2px;
  padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--b12); }
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--ghost);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--ghost); line-height: 1.65; }
.card-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }
.split-img {
  border: 1px solid var(--b10);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.4) 0 6px 24px;
}
.split-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.split-body h2 {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 14px;
}
.split-body p {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.65;
  margin-bottom: 14px;
}
.split-body p:last-of-type { margin-bottom: 0; }

/* TIPS */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 40px;
}
.tip {
  background: var(--black);
  border: 1px solid var(--b08);
  border-radius: 2px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
}
.tip-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ghost);
  text-transform: uppercase;
  letter-spacing: 0.55px;
  flex-shrink: 0;
  padding-top: 3px;
}
.tip h3 { font-size: 15px; font-weight: 500; margin-bottom: 7px; line-height: 1.2; }
.tip p { font-size: 14px; color: var(--ghost); line-height: 1.63; }

/* SCALE */
.scale-section { background: var(--black); border-top: 1px solid var(--b06); border-bottom: 1px solid var(--b06); }
.scale-bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ghost);
  margin-bottom: 6px;
}
.scale-bar {
  height: 6px;
  background: linear-gradient(to right, var(--blue), var(--cyan), #44ff88, rgba(255,200,0,0.85), rgba(255,70,0,0.85));
  border-radius: 4px;
  position: relative;
  margin-bottom: 20px;
}
.scale-marker {
  position: absolute;
  top: -5px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 2px solid var(--void);
  border-radius: 50%;
  transform: translateX(-50%);
}
.scale-zones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.scale-zone {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--b06);
  border-radius: 2px;
  padding: 14px;
}
.zone-range {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.zone-label { font-size: 12px; color: var(--ghost); }
.zone-low  .zone-range { color: var(--blue); }
.zone-ok   .zone-range { color: #44ff88; }
.zone-high .zone-range { color: rgba(255,200,0,0.9); }
.zone-crit .zone-range { color: rgba(255,70,0,0.9); }

/* ARTICLE PAGE */
.article-hero {
  padding: 60px 24px 48px;
  border-bottom: 1px solid var(--b06);
}
.article-hero h1 {
  font-size: clamp(26px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 0.95;
  max-width: 820px;
  margin-bottom: 16px;
}
.article-hero .article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ghost);
  letter-spacing: 0.3px;
}
.article-hero .article-desc {
  font-size: 17px;
  color: var(--ghost);
  max-width: 640px;
  margin-top: 14px;
  line-height: 1.65;
}

.article-img-hero {
  margin: 0 0 48px;
  border-bottom: 1px solid var(--b06);
  overflow: hidden;
}
.article-img-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.article-body h2 {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.0;
  margin: 40px 0 12px;
  padding-top: 2px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 26px 0 8px;
}
.article-body p {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.72;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.article-body li {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.7;
  margin-bottom: 7px;
}
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body strong { color: var(--white); font-weight: 500; }
.article-body .note {
  background: var(--black);
  border: 1px solid var(--b10);
  border-left: 3px solid var(--cyan);
  border-radius: 2px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ghost);
  line-height: 1.65;
}

.article-img {
  margin: 28px 0;
  border: 1px solid var(--b10);
  border-radius: 4px;
  overflow: hidden;
}
.article-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.article-img figcaption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ghost);
  padding: 10px 14px;
  border-top: 1px solid var(--b06);
  letter-spacing: 0.3px;
}

/* RELATED */
.related { background: var(--black); border-top: 1px solid var(--b06); }
.related h2 { font-size: 22px; font-weight: 400; margin-bottom: 24px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.related-card {
  background: var(--void);
  border: 1px solid var(--b08);
  border-radius: 2px;
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: var(--b12); }
.related-card .tag { margin-bottom: 10px; }
.related-card h3 { font-size: 15px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--ghost); line-height: 1.55; }
.related-card a { display: block; }

/* PAGE (about, privacy, terms) */
.page-header {
  padding: 72px 24px 52px;
  border-bottom: 1px solid var(--b06);
}
.page-header h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.0;
  margin-bottom: 10px;
}
.page-header .page-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ghost);
}
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 10px;
  line-height: 1.2;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.72;
  margin-bottom: 16px;
}
.page-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.page-content li {
  font-size: 15px;
  color: var(--ghost);
  line-height: 1.7;
  margin-bottom: 7px;
}
.page-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.page-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 2px;
}

/* CONTACT FORM */
.contact-form {
  background: var(--black);
  border: 1px solid var(--b10);
  border-radius: 4px;
  padding: 32px;
  margin-top: 36px;
  box-shadow: rgba(0,0,0,0.15) 4px 4px 0 0;
}
.contact-form h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.3px;
  color: var(--ghost);
  text-transform: uppercase;
}
.form-field input,
.form-field textarea {
  background: transparent;
  border: 1px solid var(--b10);
  border-radius: 2px;
  padding: 9px 12px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-submit {
  margin-top: 16px;
}
.form-note {
  font-size: 12px;
  color: var(--whisper);
  margin-top: 10px;
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid var(--b08);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--ghost);
  line-height: 1.6;
  max-width: 220px;
  margin-top: 10px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: var(--ghost); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-meta { font-size: 13px; color: var(--ghost); }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--b04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--whisper); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { font-size: 12px; color: var(--whisper); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--ghost); }

/* COOKIE */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 480px;
  background: var(--black);
  border: 1px solid var(--b12);
  border-radius: 4px;
  padding: 18px 22px;
  box-shadow: rgba(0,0,0,0.5) 0 8px 32px;
  z-index: 9999;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.cookie-banner.hidden { display: none; }
.cookie-text { flex: 1; }
.cookie-text p { font-size: 13px; color: var(--ghost); line-height: 1.5; }
.cookie-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-direction: column; flex-shrink: 0; }
.cookie-accept {
  background: var(--white);
  color: #111;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-reject {
  background: transparent;
  color: var(--ghost);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-reject:hover { border-color: var(--b10); color: var(--white); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--b06); }
  .stat:nth-child(4) { border-top: 1px solid var(--b06); border-right: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev { direction: ltr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scale-zones { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 52px 16px 52px; }
  .hero-img img { height: 220px; }
  .cards-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; left: 12px; right: 12px; max-width: none; }
  .cookie-actions { flex-direction: row; }
  section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
