/* Section: Base */
:root{
  --bg: #0a0020;
  --bg-2: #140033;
  --text: #e8f6ff;
  --muted: #a9b6d9;
  --accent: #19f0d2;
  --accent-2: #00e7ff;
  --surface: rgba(255,255,255,0.10);
  --surface-2: rgba(255,255,255,0.14);
  --border: rgba(0,255,255,0.35);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: auto; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans"; font-size: clamp(14px, 1.2vw + 12px, 18px); color: var(--text); }
body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(10,0,30,.95) 0, rgba(20,0,40,.9) 60%, rgba(0,0,0,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 70% 20%, rgba(0,255,255,.08), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: initial; }
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Section: Layout primitives */
header, nav, main, article, aside, footer { display: block; }
.container { max-width: clamp(640px, 84vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

/* Section: Glass surfaces */
header, .product-ad, aside, .glass { 
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,255,255,.32);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: .75rem;
}
@supports not ((backdrop-filter: blur(8px))){
  header, .product-ad, aside, .glass { background: rgba(255,255,255,.14); }
}

/* Section: Hero & typography */
header { padding: 1.25rem; text-align: center; border-bottom: 1px solid rgba(0,255,255,.25); }
header h1 { margin: .25rem 0 0; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.15; letter-spacing: .2px; }
header nav { margin-top: .5rem; }
header nav a { display: inline-block; padding: .4rem .75rem; border-radius: 8px; border: 1px solid rgba(0,255,255,.35); color: var(--text); text-decoration: none; font-weight: 600; }

main { padding: 1rem 0; }
article { display: block; }

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

/* Section: Content & utilities */
.content { padding: 0 0 1rem; color: var(--text); }
ul, li { margin: 0; padding: 0; list-style: none; }
ul { padding-left: 1.2rem; }
li { padding: .25rem 0; }

/* Section: Cards & grid utilities */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid rgba(120,240,255,.32); border-radius: 12px; padding: . nine rem; }

/* Section: Brand tags */
.tag { display:inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; color: var(--text); background: rgba(25,240,210,.18); border: 1px solid rgba(0,255,255,.35); }

/* Section: Buttons & links (solid + outline variants) */
button, .btn, .cta {
  font: inherit; cursor: pointer; border: 1px solid rgba(0,255,255,.4);
  background: rgba(255,255,255,.08); color: var(--text);
  padding: .65rem 1rem; border-radius: 8px; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
button:active, .btn:active, .cta:active { transform: translateY(0); }

.btn.primary { background: var(--accent); border-color: rgba(25,240,210,.8); color: #04140a; font-weight: 700; }
.btn.outline { background: transparent; border-color: var(--accent-2); color: var(--text); }
.cta { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; background: rgba(25,240,210,.22); border: 1px solid rgba(0,255,255,.5); }

/* Focus ring for accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Section: Print */
@media print {
  body { background: #fff; color: #000; }
  header, main, footer { background: transparent; box-shadow: none; }
  .image-frame { page-break-inside: avoid; }
}

/* Section: Responsive helpers */
@media (max-width: 640px) {
  header { padding: .75rem; }
  header h1 { font-size: clamp(1.4rem, 1.2rem + 2vw, 2rem); }
  .container { padding-inline: .75rem; }
  .image-frame { border-radius: 10px; }
}
