/* Palette & Tokens */
:root {
  --bg: #030f0f;
  --bg-2: #0a1414;
  --text: #f6fffe;
  --muted: #a5f3d0;
  --accent: #00ff88;
  --accent-2: #2affb0;
  --card: rgba(6, 14, 14, 0.28);
  --border: rgba(0, 255, 136, 0.40);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --gap: 1rem;
}

/* Base & Layout */
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(0,255,136,.15), transparent 40%),
    linear-gradient(135deg, rgba(2,6,6,.92) 0%, rgba(2,6,6,.96) 50%, rgba(2,6,6,.92) 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,136,.04) 0 1px, transparent 1px 2px),
    var(--bg);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*,:before,:after { -webkit-font-smoothing: antialiased; }

header, nav, main, article, aside, footer { padding: 0; }

/* Glass utility (fallback-backed) */
.glass {
  background: rgba(8, 16, 16, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(8, 16, 16, 0.65); }
}

/* Header / Hero */
header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 0.6vw + 1rem, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .4rem;
  color: #faffff;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.4vw + 0.9rem, 1.05rem);
}
nav { margin-top: .25rem; }
nav a {
  display: inline-block;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  color: #eaffff;
  border: 1px solid rgba(0,255,136,.4);
  text-decoration: none;
  font-size: .92rem;
}
nav a:hover { text-decoration: underline; }

/* Main content */
main { padding: 1rem; }
.container { width: 100%; max-width: clamp(720px, 90vw, 1100px); margin-inline: auto; }

/* Image frame (image-frame) */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(0, 255, 136, 0.45);
  background: #111;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.featured-image { margin: 1rem 0 1.25rem; }

/* Articles & content helpers */
article { padding: 0; }
.content { padding: 0.75rem 0; color: var(--text); }
h2, h3 { color: #faffff; margin: .75rem 0; }
p { margin: .5rem 0 1rem; color: #eaffff; }
blockquote {
  margin: .75rem 0;
  padding-left: .75rem;
  border-left: 3px solid rgba(0,255,136,.7);
  color: #eafff0;
  font-style: italic;
}
ul { margin: .5rem 0 1rem 1.1rem; padding: 0; }
li { margin: .25rem 0; }

/* Lists & utility typography & chips */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,136,.4);
  color: #eaffff;
  background: rgba(0,0,0,.15);
}
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }

/* Product ad / footer panels (glass style) */
.product-ad, .sponsored-page {
  /* glass panels in footer */
  display: block;
  text-align: center;
}
.product-ad { padding: .75rem; }
.product-ad a { color: #eaffff; text-decoration: none; display: inline-block; width: 100%; }
.sponsored-page { padding: .75rem; }

/* Footer */
footer { padding: 1rem; display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: center; }
footer p { text-align: center; margin: .25rem 0 0; color: var(--muted); }

/* Button / link styling (interactive elements) */
.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,.6);
  background: linear-gradient(135deg, rgba(0,255,136,.95), rgba(0,255,136,.65));
  color: #041a0b;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,255,136,.4); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,255,136,.5);
}
a, button, .btn, .cta { font-family: inherit; color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; }

/* Grid utilities (responsive) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}
.container > * + * { margin-top: var(--gap); }

/* Aside styling (if present) */
aside { padding: .5rem; }

/* Print styles */
@media print {
  body { background: #fff; color: #000; }
  a, button { text-decoration: underline; color: #000; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}