:root {
  --bg: #0a1020;
  --bg-2: #0b1a2b;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.28);
  --text: #eafff5;
  --muted: #a9f5c3;
  --accent: #39ff14;
  --accent-2: #8dff70;
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --radius-sm: 10px;
  --focus: 2px solid rgba(57,255,100,.8);
}

*,
*::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", "Liberation Sans", sans-serif;
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100%;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(8,16,40,.98), rgba(6,12,28,.98) 60%),
              repeating-linear-gradient(180deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

 /* Base sections (section headers) */
header,
main,
footer,
aside {
  display: block;
}

 /* Glass panels (with fallback) */
.glass {
  background: rgba(15, 25, 50, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(15, 25, 50, 0.75); }
}

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

/* Header styling */
header {
  padding: 0.75rem;
  margin: 1rem auto;
  width: min(1100px, 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 12px;
  background: rgba(15, 25, 50, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

header h1 {
  font-size: clamp(1.1rem, 2.5vw + 0.8rem, 1.75rem);
  margin: 0;
  letter-spacing: .4px;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  transition: transform .2s ease;
}
header nav a:hover { text-decoration: underline; transform: translateY(-1px); }

/* Main content & layout */
main {
  padding: 1rem 0 2rem;
}
article {
  display: grid;
  place-items: start center;
  gap: 1rem;
}
.image-frame {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  background: #0b0e1a;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transform: translateZ(0); /* GPU hint for smoother rendering */
}
.product-ad,
.sponsored-page {
  display: inline-block;
  margin: .25rem;
}
.product-ad a,
.sponsored-page a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
}
.product-ad a:hover,
.sponsored-page a:hover { text-decoration: underline; }

/* Text content helper class (optional content blocks) */
.content { padding: 0.75rem 0; color: var(--text); }

/* Buttons & links (interactive elements) */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }

/* Primary solid button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75em 1.2em;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #021305;
  box-shadow: 0 6px 14px rgba(57,255,20,.45);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(57,255,100,.9); outline-offset: 2px; }

/* Outline button variant */
.btn.outline,
.cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(57,255,100,.7);
  padding: .75em 1.1em;
}
.btn.outline:hover,
.cta:hover { text-decoration: underline; }

/* Form elements (basic match to theme) */
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: .5em .75em;
  outline: none;
}
input:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utility & layout helpers */
ul { margin: 0; padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Glass grid and cards (compact components) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: .25em .6em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
}

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, footer { page-break-inside: avoid; }
  a { text-decoration: underline; }
  .glass { background: #fff; color: #000; border: 1px solid #ccc; }
}

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

/* Responsive tweaks for mobile-first layout */
@media (max-width: 640px) {
  header { flex-direction: column; align-items: stretch; padding: .75rem; }
  header h1 { font-size: 1.15rem; }
  .image-frame { width: 100%; aspect-ratio: 16 / 9; }
}
