/* Base tokens */
:root {
  --bg: #0b0f14;
  --bg-2: #111823;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.12);
  --text: #eaffff;
  --muted: #9bd6c5;
  --accent: #2ef2c0;
  --accent-2: #1bd29f;
  --border: rgba(255, 255, 255, 0.25);
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue"; }
body {
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(10,14,20,0.95) 0%, rgba(14,18,28,0.92) 60%, rgba(10,14,20,0.95) 100%),
    radial-gradient(circle at 20% -10%, rgba(46, 255, 200, 0.08), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    #060a0f;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle accessibility helpers */
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; text-decoration: underline; }
button, .btn, .cta { cursor: pointer; }

header, main, article, aside, nav, footer { display: block; }

/* Layout primitives */
.container { width: min(92%, 1100px); margin: 0 auto; padding: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,0.22); }
}
.tag { display:inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; background: rgba(46, 242, 192, 0.15); border: 1px solid rgba(46,242,192,0.3); color: #eafff8; }

/* Header / Hero */
header { text-align: center; padding: 2rem 1rem 1.5rem; position: relative; }
header h1 { font-size: clamp(1.8rem, 4vw + 1rem, 3rem); margin: 0 0 .25rem; letter-spacing: .3px; }
header .meta { color: var(--muted); font-size: clamp(0.8rem, 0.5vw + 0.8rem, 1rem); margin-bottom: .75rem; }

/* Image frame (supports usage) */
.image-frame { aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 6px 18px rgba(0,0,0,0.25); display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area styling */
.content { color: var(--text); font-size: clamp(1rem, 0.9vw + 0.8rem, 1.125rem); line-height: 1.6; }

/* Article elements */
ul { margin-left: 1.25rem; padding-left: 0; }
li { margin: .25rem 0; }

/* Image/figure when used directly without frame wrapper */
.featured-image { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.25); }

/* Product ad / footer blocks */
.product-ad { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .75rem; border-radius: 12px; background: rgba(46, 242, 192, 0.08); border: 1px solid rgba(46, 242, 192, 0.25); }
.product-ad a { display: block; text-align: center; padding: .75rem; border-radius: 10px; background: linear-gradient(180deg, rgba(46, 242, 192, 0.9), rgba(46, 242, 192, 0.75)); border: 1px solid rgba(46, 242, 192, 0.25); color: #062018; font-weight: 700; text-wrap: balance; }
footer { padding: 1rem; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; }

/* Typography scale helpers */
h2 { font-size: clamp(1.25rem, 2.6vw + 0.8rem, 1.75rem); margin: .75rem 0 .25rem; }
p { margin: .5rem 0; }

/* Buttons / CTAs */
.btn, .cta { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn { background: linear-gradient(180deg, rgba(46, 242, 192, 0.95), rgba(46, 242, 192, 0.75)); color: #062018; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.4); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Links with emphasis on hover/focus */
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout helpers for potential sidebar/aside */
aside { display: block; }

/* Media queries for responsive refinement */
@media (max-width: 720px) {
  header { padding: 1.5rem 1rem; }
  .container { padding: 0.5rem; }
  .image-frame { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { page-break-inside: avoid; }
  a { color: #06c; text-decoration: underline; }
}