:root {
  /* Palette tokens (sunset orange + iridescent green) */
  --bg: #0b0b12;
  --bg-2: rgba(0,0,0,0.25);
  --text: #e8fbff;
  --muted: #a9c6d8;
  --accent: #ff7a1a;      /* sunset orange */
  --accent-2: #2aff80;    /* iridescent green */
  --accent-3: #00ffd0;    /* luminous highlight */
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.25);
  --shadow-hard: 0 2px 6px rgba(0,0,0,.25);
}

/* Base / Foundations */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  /* Layered background: gradient + subtle noise/scanlines (pure CSS) */
  background-color: #000;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,125,0,.95) 0 22%, rgba(255,65,0,.85) 22% 45%, rgba(0,0,0,0) 46%),
    linear-gradient(#0b0b12, #0b0b12);
  background-size: auto, auto;
  /* Subtle scanlines */
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,125,0,.95) 0 22%, rgba(255,65,0,.85) 22% 45%, rgba(0,0,0,0) 46%),
    linear-gradient(#0b0b12, #0b0b12),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, normal, overlay;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout containers */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1120px);
  padding-inline: 1rem;
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-gap: 1rem;
}
.card { /* utility card / panel */
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0); /* GPU hint for smoother rendering */
}
header, main, footer, aside, nav, article {
  display: block;
}

/* Typography scale (fluid) */
h1 {
  font-size: clamp(1.75rem, 1.8rem + 2vw, 3rem);
  line-height: 1.15;
  margin: .25rem 0 0.5rem;
  letter-spacing: .2px;
}
p { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem); color: rgba(232,251,255,.92); margin: 0.25rem 0 0.75rem; }
.small { font-size: .85rem; color: var(--muted); }

/* Header / Hero styling (glass-like) */
header {
  padding: 1rem 0.75rem;
  margin: 0 auto 1rem;
  text-align: center;
  background: rgba(15, 20, 30, 0.25);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
header h1 { color: #e9fbff; }

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  gap: .75rem;
  padding: .5rem 0;
}
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  transition: transform .15s ease, background .25s ease;
}
nav a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); text-decoration: underline; text-underline-offset: 3px; }
nav a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Main content area */
main { padding: 1rem 0; }
article { padding: 0; }

/* Content area styling (glass panels where appropriate) */
.content {
  color: var(--text);
  padding: 0.75rem;
  line-height: 1.6;
}
@media (min-width: 720px) {
  .content { padding: 1rem; }
}

/* CTA / buttons
   - solid and outline variants
   - focus visible, hover/active states
*/
a.btn, button.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  color: #051a0a;
  text-decoration: none;
  background: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .25s ease, color .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.25);
}
a.btn:hover, button.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: color-mmំន; /* placeholder to be overridden below if needed */
}
a.btn:focus-visible, button.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
a.btn.primary {
  background: var(--accent);
  color: #0a1700;
}
a.btn.primary:hover { background: #ff8a2a; }
a.btn.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--text);
}
a.btn.outline:hover {
  text-decoration: underline;
}
.cta { font-weight: 600; }

/* Link treatments across site */
a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted rgba(42, 255, 128, 0.6); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Lists */
ul { margin: 0.5rem 0; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

/* Utility blocks: container, grid, card, tag */
.tag {
  display: inline-block;
  padding: .15em .6em;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: #c8ffd9;
}
.container > .grid { gap: 1rem; }

/* Product ad / sponsor blocks (glass panels) */
.product-ad, .sponsored-page {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; padding: .3rem .5rem; border-radius: 8px; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Header, main, aside, footer structural polish */
footer {
  padding: 1rem;
  text-align: center;
  margin-top: 1rem;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
footer p { margin: .25rem 0; }

/* Image frame glow / border emphasis for accessibility */
.image-frame {
  outline: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25), 0 0 0 6px rgba(0,255,120,.05) inset;
}
.image-frame:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, main, article, footer { background: transparent; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
}
