/* TOKENS */
:root {
  --bg: #041018;
  --bg-2: #0b1b26;
  --text: #e6fffe;
  --muted: #a2f5f0;
  --accent: #00e5d6;
  --accent-2: #2affd0;
  --card: rgba(255, 255, 255, 0.12);
  --card-alt: rgba(0, 0, 0, 0.25);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  --focus: 2px solid #00f5ff;
}

/* RESET & GLOBALS */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0,255,230,.08), rgba(0,255,200,.08) 50%, rgba(0,255,160,.08) 100%),
    linear-gradient(to bottom, rgba(6,12,20,.92), rgba(6,12,20,.98));
  background-blend-mode: overlay, normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  z-index: 0;
}
@supports not (backdrop-filter: blur(12px)) {
  body { background-blend-mode: normal; }
}
@media (prefers-color-scheme: light) {
  :root { --text: #0b1b20; }
}

/* PURE-CSS LEAF PATTERN BACKDROP & NOISE (FUTURE CYBERPUNK) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Cyan jungle leaves silhouette vibe via layered radial patterns */
  background:
    radial-gradient(circle at 10% 90%, rgba(0,255,200,.25) 0 120px, transparent 121px),
    radial-gradient(circle at 60% 20%, rgba(0,255,180,.20) 0 180px, transparent 181px),
    radial-gradient(circle at 40% 60%, rgba(0,255,255,.15) 0 140px, transparent 141px),
    radial-gradient(circle at 85% 85%, rgba(0,255,180,.12) 0 100px, transparent 101px);
  opacity: .35;
  mix-blend-mode: screen;
  filter: saturate(1.2);
}
body {
  /* subtle scanline overlay for depth */
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 2px),
    radial-gradient(circle at 0 0, rgba(0,0,0,0) 0 0);
  background-size: 100% 2px;
  background-repeat: repeat;
  background-attachment: fixed;
}
@supports (backdrop-filter: blur(12px)) {
  body { background: inherit; }

/* GLASS PANELS (WITH FALLBACK) */
header, main, aside, footer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  header, main, aside, footer {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.08);
  }
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, aside, footer {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  }
}
/* LAYOUT & TYPOGRAPHY */
:root { --container: clamp(680px, 90vw, 1120px); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }

/* HEADER / HERO */
header { display: grid; gap: .75rem; align-items: start; padding: 1rem; margin: 1rem auto; }
header h1 { font-size: clamp(1.6rem, 2.4vw + 1rem, 3rem); line-height: 1.15; margin: 0; letter-spacing: .2px; }
nav { display: flex; gap: .5rem; align-items: center; justify-content: flex-start; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .6rem; border-radius: 999px; border: 1px solid rgba(0,255,255,.6); }
nav a:hover, nav a:focus-visible { text-decoration: underline; outline: none; }

/* MAIN & ARTICLE */
main { padding: 1rem; }
article { display: grid; place-items: start center; padding: 1rem 0; }
.image-frame { width: min(100%, 720px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 22px rgba(0,0,0,.28); background: #0b1b24; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CONTENT AREA FOR FUTURE EXTENSIONS */
.content { padding: 1rem; color: var(--text); }

/* FOOTER & AD PANELS */
.product-ad, .sponsored-page { display: inline-block; margin: .25rem 0; padding: .6rem .9rem; border-radius: 999px; border: 1px solid rgba(0,255,255,.6); background: rgba(0,0,0,.25); }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-block; padding: .25rem .6rem; }

/* LINKS & BUTTONS UTILITIES */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
a:hover { text-decoration: underline; }
.grid { display: grid; gap: 1rem; }
.card { padding: .75rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }

/* BUTTON STATES */
button, .btn, .cta {
  border: 1px solid rgba(0,255,255,.7);
  border-radius: 999px;
  padding: .6rem 1rem;
  background: rgba(0,255,255,.15);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .25s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(0,255,255,.25); }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 2px solid #00f5ff;
  outline-offset: 2px;
  border: none;
}

/* LISTS & TAGS */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }
.tag { display: inline-block; padding: .2rem .5rem; font-size: .8rem; border-radius: 999px; border: 1px solid rgba(0,255,255,.6); background: rgba(0,0,0,.25); }

/* UTILITY CLASSES (MAY be used by the provided HTML or future pages) */
.container, .grid, .card, .tag { /* single source of truth for utilities */ }

/* IMAGE FRAME LEGACY FALLBACK */
.image-frame { background: #0a1b22; }

/* RESPONSIVE GRID EXAMPLES */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* PRINT */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; border: none; }
  .image-frame { page-break-inside: avoid; }
}
