/* Base */
:root {
  --bg: #0b002a;
  --bg-2: #290047;
  --bg-3: #4a0066;
  --text: #f4ecff;
  --muted: #c9b8ff;
  --accent: #a26bff;
  --accent-2: #7e3aff;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 10px 28px rgba(0,0,0,.25);
  --radius: 12px;
}
html, body { height: 100%; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: linear-gradient(135deg, rgba(110,0,255,.95) 0%, rgba(40,0,60,.95) 60%, rgba(0,0,0,.95) 100%),
              repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }

/* Layout */
.container { width: 100%; max-width: clamp(320px, 85vw, 1120px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; }

/* Header / Navigation */
header { padding: clamp(16px, 6vw, 32px) 0; text-align: center; }
header h1 { font-size: clamp(1.25rem, 2.6vw, 2rem); margin: 0 0 .45rem; letter-spacing: .2px; }
nav { display: inline-flex; gap: .5rem; }
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; border: 1px solid transparent; }
nav a:hover { text-decoration: underline; }

/* Main content & media */
main { padding: 0; }
.article { display: grid; place-items: center; padding: 0; }
/* Image frame */
.image-frame { width: min(100%, 720px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: #000; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels */
.glass { background: var(--surface); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; backdrop-filter: saturate(120%) blur(8px); -webkit-backdrop-filter: saturate(120%) blur(8px); box-shadow: var(--shadow); }
.no-backdrop { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); }

/* Content & helpers */
.content { padding: 1rem; color: var(--text); }
a, button, .btn, .cta { font: inherit; color: inherit; }

/* Product ad / footer panels */
.product-ad, .sponsored-page { display: block; margin: .5rem 0; }
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .8rem 1rem; border-radius: 8px; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; transition: transform .2s ease, background .2s ease; }
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); text-decoration: underline; }

/* Typography */
h1, h2, h3, p { margin: 0 0 .5rem; }
p { color: var(--muted); }

/* Links & interactions */
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons & CTAs */
.btn { display: inline-block; padding: .75rem 1.1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.5); background: rgba(122,0,255,.8); color: #fff; font-weight: 600; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: rgba(100,0,210,.9); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; border-color: rgba(255,255,255,.6); color: var(--text); }

/* Utility: tags */
.tag { display: inline-block; padding: .25rem .6rem; font-size: .8rem; color: #fff; background: rgba(120,0,255,.4); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; }

/* Forms (basic) */
input, select, textarea { padding: .6rem .75rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: var(--text); }

/* Responsive helpers */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media (min-width: 700px) {
  header h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.75rem); }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
