:root {
  /* Color tokens derived from pewter + teal palette */
  --bg: #0b0f12;
  --bg-2: #0e1a1e;
  --text: #eaffff;
  --muted: #96d6d6;
  --accent: #2ee8c0;
  --accent-2: #1aa89c;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif; }

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  /* Layered background: gradient + cyan scanlines + subtle glow */
  background:
    linear-gradient(135deg, rgba(10,12,14,0.98) 0%, rgba(14,26,26,0.98) 60%, rgba(0,0,0,0.98) 100%),
    linear-gradient(to bottom, rgba(46, 224, 198, 0.08) 0.5px, transparent 0.5px),
    linear-gradient(to right, rgba(46, 224, 198, 0.08) 0.5px, transparent 0.5px),
    radial-gradient(circle at 60% -10%, rgba(0,0,0,0.0), rgba(0,0,0,0.04) 40%);
  background-size: 4px 4px, 4px 4px, 100% 100%, 100% 100%;
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header, main, footer {
  width: min(1100px, 92vw);
  margin: 0 auto;
  border-radius: 14px;
  padding: 1rem;
  /* Glass panel fallback + backdrop-filter */
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  header, main, footer {
    background: rgba(255, 255, 255, 0.14);
  }
}

header { display: grid; gap: 0.5rem; place-items: center; text-align: center; margin-block: 0.5rem; }

header h1 {
  font-size: clamp(1.25rem, 1rem + 2.5vw, 2.25rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: 0.2px;
  color: var(--text);
}

nav { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 2px; background: rgba(255,255,255,0.12); outline: none; }

main { padding: 1.25rem 0 2rem; display: grid; place-items: center; }

article { width: 100%; max-width: clamp(640px, 90vw, 900px); padding: 0.75rem; }

.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.25);
  background: #0a0a0a;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.image-frame:focus-within img { transform: scale(1.02); }

.content { padding: 0.75rem 0 0; color: var(--text); line-height: 1.5; font-size: clamp(0.95rem, 0.75vw + 0.9rem, 1.15rem); }

.product-ad, .sponsored-page { padding: 0.5rem; display: inline-block; margin: 0.25rem; border-radius: 10px; }

.product-ad a, .sponsored-page a { display: inline-block; padding: 0.6rem 0.9rem; border-radius: 999px; text-decoration: none; color: var(--text); border: 1px solid rgba(255,255,255,0.25); background: rgba(46, 224, 198, 0.15); }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(46, 224, 198, 0.25); text-decoration: underline; }

footer { display: grid; gap: 0.5rem; justify-items: center; text-align: center; padding-top: 1rem; }

ul, li { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: clamp(720px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

.card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; padding: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

.tag { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; font-size: 0.75rem; border-radius: 999px; border: 1px solid rgba(46, 238, 198, 0.8); color: #eaffff; background: rgba(46,238,198,0.15); }

/* Button & link styles */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.2px;
}
a { color: var(--text); text-decoration: none; outline: none; }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

button { border: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 224, 198, 0.8);
  color: #041f1f;
  background: linear-gradient(135deg, rgba(46,238,198,0.95), rgba(26,168,156,0.95));
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(0); }

/* Solid primary and outline variants */
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041f1f;
  border: 1px solid rgba(0,0,0,0.15);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(46, 224, 198, 0.9);
  color: var(--text);
}
.cta { text-decoration: none; }

/* Image frame micro-controls */
.image-frame:hover img { transform: scale(1.01); }

/* Typography & layout helpers (mobile-first) */
h2, h3 { margin: 0.25rem 0; color: var(--text); }
p { margin: 0.25rem 0; }

/* Utilities (responsive grid helpers) */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (min-width: 960px) {
  main { padding: 2rem 0 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

@media print {
  html, body { height: auto; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}