html, body, header, nav, main, article, footer, aside { box-sizing: border-box; }
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0a0f14;
  --bg-2: #11161c;
  --text: #eaf2f7;
  --muted: #a5b0bf;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.12);
  --accent: #cbd5e1;
  --accent-2: #e7f1fa;
  --shadow: 0 6px 18px rgba(0,0,0,.28);
  --radius: 12px;
  --outline: rgba(176,214,240,.9);
}

html { height: 100%; }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  background:
    linear-gradient(135deg, rgba(15,21,28,.95) 0%, rgba(9,12,16,.95) 60%, rgba(15,21,28,.95) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
  scroll-behavior: smooth;
}

header { padding: clamp(1rem, 2vw, 2rem); text-align: center; position: relative; z-index: 1; }
header h1 {
  margin: .25rem 0 .5rem;
  font-size: clamp(1.4rem, 2vw + 1rem, 2.4rem);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(.8rem, 1.2vw, .95rem);
}
header nav {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
header nav a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
header nav a:hover { text-decoration: underline; }
header nav a:focus-visible { outline: 2px solid var(--outline); outline-offset: 2px; }

main { padding: 1rem; }

.container {
  width: 100%;
  margin-inline: auto;
  max-width: clamp(680px, 90vw, 1120px);
  padding: 0 1rem;
}

.image-frame {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--shadow);
  margin: 1rem auto;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

article { display: block; }

article h2 { font-size: clamp(1.15rem, 1.5vw + 1rem, 1.6rem); margin: .75rem 0 .5rem; color: var(--text); }
article h3 { font-size: clamp(1rem, 1vw + .9rem, 1.15rem); margin: .6rem 0; color: var(--text); }
p { margin: .5rem 0 1rem; line-height: 1.6; color: var(--text); }
ul { margin: .4rem 0 1rem; padding-left: 1.25rem; }
li { margin: .25rem 0; }

.content { padding: .25rem 0 1rem; font-size: clamp(.95rem, .9rem + .4vw, 1rem); line-height: 1.65; color: var(--text); }

.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); }

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

.product-ad, .sponsored-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: .5rem 0;
  margin: .5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
}
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; width: 100%; display: inline-block; text-align: center; }

footer { padding: 1rem; text-align: center; color: var(--muted); }
footer p { margin: .4rem 0 0; color: var(--text); }

a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--outline);
  outline-offset: 2px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(135deg, rgba(110,190,230,1) 0%, rgba(60,110,160,1) 100%);
  color: #fff;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:active { transform: translateY(0); }

.cta {
  padding: .6rem .95rem;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: var(--text);
}
.btn.outline, .cta.outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  color: var(--text);
}

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

@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { display: block; }
}
aside { display: none; }

/* Fallback for browsers without backdrop-filter support: provide a slightly stronger surface */
@supports (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@supports not (backdrop-filter: blur(8px)) {
  .glass { background: rgba(255,255,255,.08); }
}