/* Base */
:root {
  --bg: #03060a;
  --bg-2: #0a1b2a;
  --text: #eaffff;
  --muted: #9bdce6;
  --accent: #00e5ff;
  --accent-2: #2af3c8;
  --surface: rgba(8, 28, 40, 0.28);
  --surface-2: rgba(8, 28, 40, 0.18);
  --border: rgba(120, 240, 255, 0.32);
  --shadow: 0 8px 28px rgba(0,0,0,.32);
  --radius: 12px;
  --focus: 2px solid var(--accent);
  --focus-offset: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 15% -10%, rgba(0, 230, 255, 0.08), transparent 25%),
    linear-gradient(135deg, rgba(0, 200, 255, 0.12) 0%, rgba(0, 80, 120, 0.08) 40%, rgba(0,0,0,0.25) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px),
    #03060a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding: 0 1rem; }

/* Nav/headers with glass look */
header, main, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

/* Header internals */
header { padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header h1 { font-size: clamp(1.25rem, 2.6vw + 0.5rem, 2.25rem); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: .2px; }
nav { display: flex; align-items: center; gap: .5rem; }
nav a { color: var(--text); text-decoration: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(160,210,230,.4); background: rgba(0,0,0,.15); }
nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
nav a:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }

/* Hero/typography balance: ensure readable text over glass */
main { padding: 1rem 0; }
article { padding: 0; }

/* Image frame with aspect ratio and glow */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #0a0f14;
  display: block;
  margin: 1rem auto;
  box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 0 0 2px rgba(0,230,255,.08);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Content placeholder for sections that may wrap text/images */
.content { padding: 0; color: var(--text); line-height: 1.5; }

/* Product ad / footer panels with glass */
.product-ad {
  padding: .75rem;
  margin: .5rem 0;
  border-radius: 12px;
  background: rgba(8, 28, 40, 0.28);
  border: 1px solid rgba(120, 240, 255, 0.4);
  text-align: center;
}
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .5rem; }
.product-ad a:hover { text-decoration: underline; }

/* Sponsored page panel (secondary) */
.sponsored-page {
  padding: .75rem;
  margin: .5rem 0;
  border-radius: 12px;
  background: rgba(8, 28, 40, 0.24);
  border: 1px solid rgba(120, 240, 255, 0.4);
  text-align: center;
}
.sponsored-page a { color: var(--text); text-decoration: none; display: block; padding: .5rem; }
.sponsored-page a:hover { text-decoration: underline; }

/* Links and interactive elements */
a, button, .btn, .cta {
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
a:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); border-radius: 6px; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: solid and outline variants */
.btn, .cta {
  display: inline-block;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.0);
  background: var(--accent);
  color: #031018;
  font-weight: 600;
}
.btn:hover, .cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); color: #eaffff; }
.btn:focus-visible, .cta:focus-visible {
  outline: var(--focus); outline-offset: var(--focus-offset);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 229, 255, 0.6);
}
.btn--outline:hover { background: rgba(0, 229, 255, 0.15); color: var(--text); }

/* Lists minimal reset and utility */
ul, li { margin: 0; padding: 0; list-style: none; }
li { display: inline-block; margin-right: .5rem; }

/* Utilities / responsive grid / cards / tags */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(8, 28, 40, 0.28);
  border: 1px solid rgba(120, 240, 255, 0.4);
  border-radius: 12px;
  padding: .9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--text);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

/* Glass fallback for older browsers (no backdrop-filter) */
@supports not (backdrop-filter: blur(12px)) {
  .surface, .product-ad, .sponsored-page, header, main, footer, aside { background: rgba(8,28,40,0.56); }
  .image-frame { border-color: rgba(255,255,255,.5); }
}

/* Accessibility: reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame img { transform: none !important; }
}

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