/* Base */
:root {
  /* Palette (magenta/white-driven cyber theme) */
  --bg: #0b0b14;
  --bg-2: #1a0b30;
  --text: #ffffff;
  --muted: #c8c2d3;
  --accent: #ff0bd9;
  --accent-2: #d900ff;
  --panel: rgba(255, 255, 255, 0.10);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px rgba(255, 0, 217, 0.6);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

/* Layered background: gradient + magenta stripes + subtle noise-esque texture */
html, body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(255, 0, 214, 0.16), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(90deg,
      rgba(255, 0, 214, 0.10) 0 2px,
      rgba(0,0,0,0) 2px 4px),
    radial-gradient(circle at 20% -10%, rgba(214, 0, 255, 0.08), transparent 40%);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus { outline: none; }

/* Layout helpers */
.container { width: 100%; max-width: clamp(640px, 90vw, 1120px); padding: 0 1rem; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

/* Sections, semantic elements */
header, main, footer, nav, aside, article { display: block; }
header { padding: 1.25rem 0; text-align: center; }
main { padding: 1rem 0 2rem; display: grid; place-items: center; }
article { width: 100%; }
footer { padding: 1rem 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Subtle glow on image edges for depth */
  filter: saturate(1.05);
  mix-blend-mode: normal;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)){
  .image-frame { background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@supports not (backdrop-filter: blur(8px)) {
  .image-frame { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,.35); }
}

/* Glass panels (frosted look) */
.panel, .card, .image-frame { will-change: transform, opacity; }
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.panel--strong {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.40);
  box-shadow: 0 6px 28px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
}
@supports not (backdrop-filter: blur(8px)) {
  .panel, .card { background: rgba(0,0,0,0.40); border-color: rgba(255,255,255,0.28); }
}

/* Typography and hero */
h1 {
  font-size: clamp(1.9rem, 2.8vw + 1rem, 3.75rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: .2px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(255,0,214,.45);
}
p { color: var(--muted); margin: 0.25rem 0 0.75rem; text-align: center; }
.hero { padding: 0.75rem 0 1.25rem; }

/* Links, buttons, and interactive elements */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
a { cursor: pointer; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  text-decoration: underline;
}
button { font-family: inherit; }

/* Button variants */
.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.25rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,0,214,.92);
  color: #fff; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .2s ease;
  user-select: none;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(255,0,214,1); }
.btn:active, .cta:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.6);
  color: var(--text);
}
.btn--outline:hover { background: rgba(255,255,255,.04); text-decoration: underline; }

/* Utility components */
ul, li { margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #0a001a;
  background: linear-gradient(135deg, #ff0bd9, #d900ff);
  color: #fff;
}
.container > .card { margin-top: .5rem; }

/* Layout-specific rules for content placement */
.content { padding: 0; }

/* Footer units for ads / links */
.product-ad, .sponsored-page { width: 100%; display: flex; justify-content: center; }
.product-ad a, .sponsored-page a { display: inline-flex; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }

/* Forms (baseline) */
input, textarea, select {
  width: 100%; padding: .6rem .7rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; border-color: rgba(255,255,255,.8);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #00f; }
  .panel, .card { background: #fff; border: 1px solid #ccc; box-shadow: none; }
}

/* Dark mode default + light mode variants */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f4fb;
    --bg-2: #e5dff1;
    --text: #0a0a0a;
    --muted: #555;
    --panel: rgba(255,255,255,0.85);
    --panel-strong: rgba(255,255,255,0.95);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 16px rgba(0,0,0,.15);
  }
  body { background-color: #f7f7fb; }
  h1 { text-shadow: none; color: #111; }
  .btn, .cta { background: #e026a0; border-color: rgba(0,0,0,.15); color: #fff; }
  a:hover { text-decoration: underline; }
}
/* End */