/* ==================================================
   ZSNIUER — Tech & Gadgets
   Design system: charcoal-navy + signal teal + amber
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0B0E14;
  --surface: #121722;
  --surface-2: #1A2130;
  --glass: rgba(26, 33, 48, 0.55);
  --teal: #2BD9C4;
  --teal-dim: #1EA995;
  --amber: #F0A857;
  --text: #EDEFF4;
  --muted: #7C8699;
  --line: #232B3A;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.gradient-text {
  background: linear-gradient(100deg, var(--teal), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Background grid + blob ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(43,217,196,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,217,196,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 70%);
}
.blob {
  position: absolute;
  z-index: -1;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  background: radial-gradient(circle at 30% 30%, var(--teal), transparent 60%);
  animation: drift 16s ease-in-out infinite alternate;
}
.blob.two {
  background: radial-gradient(circle at 70% 70%, var(--amber), transparent 60%);
  animation-duration: 20s;
  opacity: 0.22;
}
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,-40px) scale(1.1); }
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.logo { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }
.logo span { color: var(--teal); }
nav.main-nav ul { display: flex; gap: 30px; align-items: center; }
nav.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  position: relative; padding-bottom: 4px; transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }
nav.main-nav a.active::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 2px;
}
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  padding: 10px 18px; border-radius: 999px;
  background: var(--teal); color: #05201C; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,217,196,0.35); }
.nav-toggle { display: none; }

/* ---------- Ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 40px;
  padding: 10px 0;
  animation: scroll-left 32s linear infinite;
}
.ticker-track span {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 8px;
}
.ticker-track span::before { content: '▲'; color: var(--teal); font-size: 9px; }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 100px 24px 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-bg .overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,20,0.35) 0%, var(--bg) 92%),
    radial-gradient(circle at 25% 15%, rgba(43,217,196,0.18), transparent 55%);
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); max-width: 16ch; }
.hero p.lede { margin-top: 22px; max-width: 56ch; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--teal); color: #05201C; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(43,217,196,0.3); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--glass); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- Stats ---------- */
.stats-bar {
  margin-top: 60px;
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(8px);
  overflow: hidden;
}
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--display); font-size: 32px; color: var(--teal); }
.stat .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- Section shell ---------- */
.section { padding: 90px 24px; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head .see-all {
  font-family: var(--mono); font-size: 13px; color: var(--amber);
  border-bottom: 1px solid var(--amber); padding-bottom: 2px;
}

/* ---------- Featured split (hero article + list) ---------- */
.featured-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.feature-primary {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature-primary:hover { border-color: var(--teal); transform: translateY(-4px); }
.feature-primary .thumb {
  height: 320px;
  position: relative;
  overflow: hidden;
}
.feature-primary .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.feature-primary:hover .thumb img { transform: scale(1.04); }
.feature-primary .thumb::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(11,14,20,0.75) 0%, rgba(11,14,20,0.05) 55%);
}
.thumb-icon { font-family: var(--mono); font-size: 46px; color: var(--line); z-index: 1; }
.feature-primary .body { padding: 28px; }
.feature-primary h3 { font-size: 26px; margin-bottom: 12px; }
.feature-primary p { color: var(--muted); font-size: 15px; }

.feature-list { display: flex; flex-direction: column; gap: 18px; }
.mini-article {
  display: flex; gap: 16px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.2s ease, transform 0.2s ease;
}
.mini-article:hover { border-color: var(--amber); transform: translateX(4px); }
.mini-thumb {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: 10px;
  overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-article h4 { font-size: 15px; margin-bottom: 6px; }
.mini-article .meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- Tags ---------- */
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.card-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

/* ---------- Category strip ---------- */
.cat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-pill {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; transition: all 0.2s ease; background: transparent;
}
.cat-pill:hover, .cat-pill.active { border-color: var(--teal); color: var(--text); background: rgba(43,217,196,0.08); }

/* ---------- Article grid (articles.html) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.card-cover {
  height: 170px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-cover img { transform: scale(1.05); }
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0) 60%);
}
.card-body { padding: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.card-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 26px 16px;
  margin: 40px 0;
}
.ad-slot .label { color: var(--amber); display: block; margin-bottom: 4px; }

/* ---------- CTA / newsletter ---------- */
.cta {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 80px 24px; text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(43,217,196,0.08), transparent 60%);
}
.cta h2 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta-form { display: flex; gap: 12px; justify-content: center; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cta-form input {
  flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); padding: 14px 18px; border-radius: 999px; font-family: var(--body);
}
.cta-form input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 60px 24px 30px; border-top: 1px solid var(--line); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--teal); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px;
  color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ---------- Legal / static page ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 90px 24px 100px; }
.legal .eyebrow { margin-bottom: 10px; }
.legal h1 { font-size: clamp(36px, 6vw, 54px); margin-bottom: 30px; }
.legal h2 { font-family: var(--body); font-weight: 700; font-size: 21px; color: var(--amber); margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text); opacity: 0.9; font-size: 15px; margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal a.inline-link { color: var(--teal); border-bottom: 1px solid var(--teal-dim); }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 40px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: var(--max); margin: 0 auto; padding: 90px 24px 100px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: -8px; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 10px; font-family: var(--body); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-info { border-left: 1px solid var(--line); padding-left: 48px; }
.contact-info h3 { font-size: 24px; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }
.contact-info .info-item { margin-bottom: 20px; }
.contact-info .info-item .label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--amber); letter-spacing: 0.1em; display: block; margin-bottom: 4px; }

/* ---------- Single article ---------- */
.article-hero { padding: 70px 24px 30px; max-width: 820px; margin: 0 auto; }
.article-hero .meta-row { display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; flex-wrap: wrap; }
.article-hero h1 { font-size: clamp(34px, 5.5vw, 52px); margin-top: 16px; }
.article-cover {
  max-width: 900px; margin: 30px auto 0; height: 380px; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; position: relative;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; padding: 50px 24px 100px; }
.article-body h2 { font-size: 26px; margin: 40px 0 16px; color: var(--text); }
.article-body h3 { font-size: 20px; margin: 30px 0 12px; color: var(--text); }
.article-body p { margin-bottom: 20px; color: var(--text); opacity: 0.92; font-size: 16.5px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 10px; opacity: 0.92; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.pull-quote {
  border-left: 3px solid var(--teal); padding: 6px 0 6px 24px; margin: 34px 0;
  font-family: var(--display); font-size: 22px; color: var(--amber); font-weight: 500;
}
.spec-table { width: 100%; border-collapse: collapse; margin: 30px 0; font-family: var(--mono); font-size: 13.5px; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.author-box {
  display: flex; gap: 16px; align-items: center; margin-top: 50px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--amber)); flex-shrink: 0; }
.author-box .name { font-weight: 600; }
.author-box .bio { color: var(--muted); font-size: 13px; }
.related-strip { max-width: 900px; margin: 0 auto; padding: 0 24px 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured-split { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  nav.main-nav {
    position: fixed; top: 65px; left: 0; right: 0; bottom: 0; background: var(--bg);
    transform: translateX(100%); transition: transform 0.25s ease; padding: 30px 24px; z-index: 90;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 24px; align-items: flex-start; }
  nav.main-nav a { font-size: 18px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 20px 50px; }
}
