/* Base tokens */
:root{
  --bg: #1a0f24;           /* deep base for dark cyber look */
  --bg-2: #2b0f28;         /* secondary depth */
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #e8f6ff;
  --muted: #b8d6e8;
  --accent: #3ec7ff;        /* baby blue accent */
  --accent-2: #a7e0ff;      /* lighter blue for emphasis */
  --card: rgba(255,255,255,.12);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --ring: 0 0 0 3px rgba(62,199,255,.55);
  --radius: 12px;
}

/* Global
   - mobile-first, fluid typography
*/
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

html {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: none;
  color: var(--text);
}

body {
  margin: 0;
  background:
    /* Powder rose gradient base */
    linear-gradient(135deg, #f3dbe5 0%, #e8cbdc 40%, #caa4bd 100%),
    /* Subtle scanline / noise layers (pure CSS) */
    repeating-linear-gradient(180deg, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(62,199,255,.08) 0 2px, transparent 2px 4px);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  color-scheme: dark;
  overflow-x: hidden;
}

/* Section headers for organization (no extra prose) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Layout primitives */
html, body, header, nav, main, article, aside, footer {
  display: block;
}

header {
  padding: 1rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header h1 {
  margin: .25rem 0 0.5rem;
  font-size: clamp(1.4rem, 2.2vw + 1rem, 2.2rem);
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--text);
}

nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: 6px;
  display: inline-block;
  transition: transform .2s ease;
}
nav a:hover { transform: translateY(-1px); text-decoration: underline; }

main {
  padding: 1rem 0;
}

/* Container and grid utilities */
.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(62,199,255,.15);
  color: var(--text);
  border: 1px solid rgba(62,199,255,.55);
}

/* Media helpers */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
  .grid { gap: 1.25rem; }
}

@media (min-width: 900px) {
  .grid.auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Image frame with glassy surface
   - aspect-ratio for consistent presentation
   - hover glow is kept minimal (static emphasis)
*/
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Subtle outer glow to enhance depth without heavy shadows */
  filter: saturate(1.04);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.0);
}
@supports not (backdrop-filter: blur(12px)) {
  .image-frame {
    background: rgba(255,255,255,.22);
  }
}

/* Glass panels (fallbacks covered above) for other content blocks */
.section-glass {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Content area styling (generic) */
.content { padding: 1rem 0; }

/* Product ad / sponsored blocks styling (glassy cards) */
.product-ad, .sponsored-page {
  display: inline-block;
  margin: .25rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  min-width: 150px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease;
}
.product-ad:hover, .sponsored-page:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); }
.product-ad p, .sponsored-page p { margin: 0; font-weight: 700; }

/* Link and button treatments
   - accessible focus states via :focus-visible
   - underline on hover/focus for links
*/
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; color: var(--accent-2); outline: none; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Buttons
   - solid and outline variants
*/
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color: #04101a;
  background: linear-gradient(135deg, rgba(62,199,255,.95), rgba(102,170,255,.95));
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(62,199,255,.65);
}
.btn.outline:hover { background: rgba(62,199,255,.15); }
.cta { /* alias for primary action if used in markup as class */ }

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

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  .image-frame { page-break-inside: avoid; }
}

/* Accessibility helpers for motion preferences already covered above. */