/* Base tokens */
:root {
  --bg: #1b1f26;
  --bg-2: #2b313b;
  --surface: rgba(40,44,54,0.60);
  --surface-2: rgba(40,44,54,0.28);
  --text: #eaf4ff;
  --muted: #a9b4c2;
  --accent: #4cc9f0;
  --accent-2: #7bd389;
  --edge: rgba(255,255,255,0.20);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.40);
}

/* Base + typography (mobile-first) */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: 16px; color: var(--text); }
body {
  margin: 0;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(18,22,30,0.95) 0%, rgba(34,38,46,0.92) 60%, rgba(18,22,30,0.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(80,100,140,.25), transparent 40%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { text-decoration: underline; color: #b6e6ff; }

/* Layout utilities */
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); padding-inline: 1rem; margin-inline: auto; }
.grid { display: grid; gap: 1rem; }
.card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: .75rem; }

/* Glass panels (backdrop blur where available) */
header, main, footer {
  background: rgba(18,22,28,.60);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
  margin: .75rem auto;
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  header, main, footer { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Hero / header typography */
header { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: .8rem 1rem; }
header h1 { font-size: clamp(1.25rem, 1vw + 1rem, 2.25rem); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: .2px; color: var(--text); }
header nav { align-self: center; }

header a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid rgba(76,201,240,.6); color: #e8fbff; background: rgba(76,201,240,.15); text-decoration: none; font-weight: 600; }
header a:hover { background: rgba(76,201,240,.28); color: #fff; }

/* Content area */
main { padding: 1rem 0; display: grid; gap: 1rem; justify-items: center; }

/* Image frame styling */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 10px 26px rgba(0,0,0,.5); background: #0b0f15; display: block; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); }

/* Content area helpers (even if not used heavily in HTML) */
.content { padding: 0.5rem 0; color: var(--muted); }

/* Product ad / utility section styling */
.product-ad, .sponsored-page { display: block; text-align: center; padding: .5rem; border-radius: 10px; }
.product-ad { background: rgba(60,180,240,.12); border: 1px solid rgba(60,180,240,.4); }
.product-ad a { color: var(--text); text-decoration: none; font-weight: 600; }
.product-ad a:hover { text-decoration: underline; }

/* Optional sponsorship block styling (to respect selectors) */
.sponsored-page { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.22); }

/* Utility classes requested */
.tag { display:inline-block; padding: .25em .6em; font-size: .75rem; border-radius: 999px; border: 1px solid rgba(76,201,240,.6); background: rgba(76,201,240,.15); color: #e8fbff; }

/* UL / LI baseline (compact lists if present) */
ul { padding-left: 1.25rem; }
li { margin: .25rem 0; }

/* Button-like elements (solid and outline) */
.btn, .cta { display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid rgba(76,201,240,.8); cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease; }
.btn { background: rgba(76,201,240,.95); color: #041018; }
.btn:hover { background: rgba(76,201,240,.85); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Outline variant */
.btn--outline { background: transparent; color: var(--text); border-color: rgba(76,201,240,.9); }
.btn--outline:hover { background: rgba(76,201,240,.15); }

/* Footer spacing */
footer { padding: 1rem; text-align: center; }
footer p { margin: .25rem 0; color: var(--muted); }

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