/* Section: Palette & Base */
:root {
  --bg: #041a25;
  --bg-2: #0a1f2a;
  --bg-3: #00131a;
  --text: #e8fffe;
  --muted: #a8e6f7;
  --accent: #0ff0ff;       /* cyan aurora accent */
  --accent-2: #ffbfe0;     /* pastel pink */
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.16);
  --border: rgba(180,255,255,.28);
  --focus: #7af0ff;
  --shadow: 0 8px 26px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
}

/* Section: Base & Layout */
*,*::before,*::after{ box-sizing:border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,255,255,.14), rgba(255,192,203,.0) 40%), 
              linear-gradient(135deg, var(--bg), var(--bg-2) 60%, var(--bg-3));
  min-height: 100dvh;
  line-height: 1.5;
  font-size: clamp(14px, 1.2vw + 10px, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,255,.08), rgba(0,0,0,0)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-size: auto;
  mix-blend-mode: overlay;
  opacity: .9;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Section: Global elements styling */
header, nav, main, article, aside, footer {
  display: block;
}
a, button, .btn, .cta { cursor: pointer; }

/* Section: Glass panels support (fallback if backdrop-filter unavailable) */
@supports (backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(180,255,255,.28);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
  }
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { 
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(180,255,255,.4);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
  }
}

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

/* Section: Header & Hero */
header {
  padding: 1rem;
  margin: 1rem auto;
  border-radius: var(--radius);
  text-align: center;
  display: block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(180,255,255,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw + .8rem, 3rem);
  line-height: 1.15;
  margin: .25rem 0 .5rem;
  letter-spacing: .2px;
  color: var(--text);
}
nav { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.08);
  transition: transform .25s ease;
}
nav a:hover { text-decoration: underline; transform: translateY(-1px); }

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

/* Section: Image frame */
.image-frame {
  width: min(90%, 720px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Content block placeholder (styles for .content if used) */
.content { padding: 1rem; border-radius: var(--radius-sm); }

/* Section: Product ad / sponsor blocks in footer */
footer { padding: 1rem; display: grid; gap: .75rem; justify-items: center; }

/* Section: Product ad styling */
.product-ad, .sponsored-page {
  width: min(92%, 720px);
  padding: .75rem 1rem;
  text-align: left;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: .25rem 0; }
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); transition: transform .25s ease; }

/* Section: Typography & utilities */
ul, li { margin: 0; padding: 0; list-style: none; }
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Section: Utility classes (layout grid & cards) */
.container + .grid, .grid { display: grid; gap: 1rem; }
.grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards & tags */
.card { padding: 1rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tag { display: inline-block; padding:.15em .6em; border-radius:999px; font-size:.75rem; background: rgba(255, 192, 203, .25); color: #ffdce6; border: 1px solid rgba(255, 0, 120, .4); }

/* Links & interactive elements */
a { color: #9ef6ff; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
a:hover { text-decoration: underline; }

/* Section: Buttons (solid & outline variants) */
.btn {
  display: inline-block; padding: .62rem 1rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--accent);
  color: #001015; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #0df0ff; }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.4);
}
.cta { display:inline-block; }

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

/* Section: Accessibility & motion preferences (already handled above) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}