:root {
  --bg: #090913;
  --bg-2: #0b0b16;
  --text: #e9e6ff;
  --muted: #c9c2d6;
  --accent: #ff2db3;
  --accent-2: #d700ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 22px rgba(0,0,0,.25);
  --shadow-hard: 0 8px 28px rgba(0,0,0,.40);
}

/* Base */
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% 0%, rgba(255,0,200,.18), transparent 40%),
    linear-gradient(135deg, rgba(12,0,40,.92), rgba(0,0,0,.8) 60%),
    repeating-linear-gradient(to bottom, rgba(255,0,170,.08) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(255,0,170,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
}
body::before {
  /* Neon neural network lines overlay (dim) */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,0,180,.08) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(-45deg, rgba(255,0,180,.08) 0 2px, transparent 2px 60px);
  mix-blend-mode: overlay;
  opacity: 0.75;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 92vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow-soft); }

/* Sections & panels (glass / frosted) */
header, main, aside, footer { padding: 0.75rem; }
header, main, footer { border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25); background: rgba(10, 0, 20, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-soft); }

/* Type scale with clear hierarchy */
h1, h2, h3 { margin: 0 0 0.25rem 0; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 2.6vw + 1rem, 2.8rem); text-shadow: 0 0 8px rgba(255,0,170,.75); letter-spacing: .2px; }
p { margin: 0.25rem 0; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
nav a { color: #fff; text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover { background: rgba(255,255,255,.08); }

/* Hero / header specifics */
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1rem; }
header h1 { font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem); margin: 0; text-transform: none; }
header nav { display: flex; gap: .5rem; align-items: center; }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 22px rgba(0,0,0,.25); background: #000; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area inside main/article */
.content { padding: 1rem; }

/* Product ad + CTAs */
.product-ad { display: block; margin: 1rem 0; padding: .75rem 1rem; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.28); text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.product-ad:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,.45); }
.product-ad a { color: #fff; text-decoration: none; display: block; padding: .25rem 0; }

/* Interactive controls (buttons/links) */
.btn, .cta, a, button {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  padding: .75rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .cta:hover, a:hover, button:hover { transform: translateY(-1px); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.btn { background: var(--accent); border: 1px solid rgba(255,255,255,.6); }
.btn.primary { background: var(--accent); }
.btn.secondary { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }
.cta { background: transparent; color: var(--text); border-color: rgba(255,255,255,.6); }

/* Form controls (basic) */
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  padding: .5rem .6rem;
  border-radius: 6px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(255,255,255,.12);
}

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

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

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