:root{
  --bg: #041421;
  --bg-2: #0b1a2b;
  --text: #eaf7ff;
  --muted: #a8d9ff;
  --accent: #00e5ff;      /* electric blue */
  --accent-2: #2ee8a0;     /* seafoam */
  --panel: rgba(255,255,255,.08);
  --panel-border: rgba(255,255,255,.25);
  --shadow: 0 8px 24px rgba(0,0,0,.28);
  --radius: 12px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    linear-gradient(135deg, rgba(0,214,255,.20), rgba(46,232,160,.14) 60%, rgba(0,214,255,.20) 100%),
    linear-gradient(to bottom right, #04121a, #040b14 60%, #030b12);
  background-blend-mode: overlay, overlay, normal;
  min-height: 100dvh;
  line-height: 1.5;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --text: #0b1220; --muted: #555; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Layout primitives */
.container { width: min(100%, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Glass panel (frosted) */
.card, .content, .product-ad, header, main, aside {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 1rem; }

/* Backdrop blur with fallback */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .card, .content, header, footer, aside, .image-frame, .featured-image {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(12px);
  }
}
.image-frame, .featured-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),
              0 6px 20px rgba(0,0,0,.25);
}
.image-frame img, .featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  vertical-align: middle;
}
.image-frame { aspect-ratio: 16 / 9; }

/* Section helpers used by content pieces */
.content { padding: 1rem; color: var(--text); }
.tag { display: inline-block; padding: .25em .6em; font-size: .75rem; border-radius: 999px;
  background: rgba(0, 228, 255, .25); color: #eaffff; }

/* Typography / hero */
header { text-align: center; padding: 2rem 1rem 1rem; }
header h1 { margin: 0 0 .25rem; font-size: clamp(1.75rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.15; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: .9rem; }

/* Core content visuals */
main { padding: 1rem; }
h2, h3, h4 { color: #e7fbff; margin: .75rem 0 .25rem; }
p { margin: .5rem 0 1rem; color: #eaf6ff; }
blockquote { margin: .75rem 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); color: #eaffff; background: rgba(0,0,0,.08); }

/* Links & buttons */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 3px solid #7bd; outline-offset: 3px; }

/* Button variants */
.btn, button, .cta { font: inherit; cursor: pointer; border-radius: 999px; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,214,255,.88); color: #04131f; display: inline-block; transition: transform .15s ease, background .2s ease; text-align: center; text-decoration: none; }
.btn:hover { transform: translateY(-1px); background: rgba(0,214,255,.98); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: 3px solid #7bd; outline-offset: 2px; }
.btn--outline { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid rgba(0,214,255,.75); }
.btn--outline:hover { background: rgba(255,255,255,.12); }

/* Forms (basic styling aligned to theme) */
input, textarea, select { font: inherit; padding: .5rem .6rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08); color: var(--text); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,214,255,.25); }

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

/* Utility: common layout blocks for content sections */
.aside { padding: .75rem; }

/* Print-friendly minimal adjustments */
@media print {
  body { background: #fff; color: #000; -webkit-print-color-adjust: exact; }
  header, footer { page-break-after: avoid; }
  a { color: #000; text-decoration: underline; }
}
@media (max-width: 720px) {
  .container { padding-inline: .75rem; }
  header { padding: 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}