/* Section: Tokens & Global Reset */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f1115;
  --text: #eafff0;
  --muted: #b7ffd6;
  --accent: #39ff87;
  --accent-2: #2bd56f;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 6px 18px rgba(0,0,0,0.5);
  --radius: 12px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.55;
  min-height: 100%;
  /* Layered background: gradient + subtle scanlines + glow hints */
  background-image:
    /* subtle glow/texture hints */
    radial-gradient(circle at 10% 0%, rgba(57,255,135,.08) 0 2px, transparent 2px),
    radial-gradient(circle at 90% 100%, rgba(57,255,135,.08) 0 2px, transparent 2px),
    linear-gradient(135deg, #0a0a0a 0%, #0e0f13 60%, #07070b 100%);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Section: Base document structure selectors (style targets) */
header, nav, main, article, aside, footer { display: block; }

/* Section: Accessibility helpers */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Section: Typography */
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); line-height: 1.04; margin: 0; font-weight: 700; letter-spacing: .2px; }
p { margin: 0 0 1rem 0; color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Section: Glass panel (fallback if backdrop-filter not supported) */
.card, .glass, aside, .product-ad { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }

/* Backdrop blur where supported; provide fallback otherwise */
.card, .glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports not (backdrop-filter: blur(10px)) {
  .card, .glass { background: rgba(255,255,255,0.08); }
}

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

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

/* Section: Product ad / sponsored sections */
.product-ad, .sponsored-page { text-align: center; padding: 1rem; }
.product-ad a, .sponsored-page a { display: inline-block; width: 100%; padding: .75rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); color: var(--text); background: rgba(0,0,0,.25); text-decoration: none; }
.product-ad p, .sponsored-page p { margin: 0; font-size: 1rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Section: Utilities / components */
.btn, .cta, .link-button { display: inline-block; padding: .6rem .95rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: var(--text); text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; border-color: rgba(0,0,0,.25); }
.btn.primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cta { color: var(--accent); border-color: rgba(57,255,135,.5); background: rgba(57,255,135,.08); }
.cta:hover { background: rgba(57,255,135,.14); }

/* Section: Lists (ul, li) */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Section: Glassy sections and layout helpers (grid) */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Section: Page structure styling and responsiveness */
header {
  padding: 1rem;
  display: grid;
  gap: .5rem;
  place-items: center;
  text-align: center;
  margin: 1rem auto;
  max-width: 1200px;
}
header h1 { margin-bottom: .25rem; }
header nav { display: flex; gap: .75rem; justify-content: center; }

/* Hero-like composition inside header */
header { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Main content area */
main { padding: 1rem 0; }
article { display: grid; place-items: center; padding: 1rem 0 0; }

/* Footer layout with responsive columns */
footer { padding: 1rem 1rem 2rem; display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) {
  footer { grid-template-columns: 1fr 1fr; }
}
footer p { text-align: center; color: var(--muted); }

/* Typography scale and line-height adjustments for readability on glass */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #00a; text-decoration: underline; }
}
