/* BASE & TOKENS */
:root{
  --bg: #0a0f1a;
  --bg-2: #0a1220;
  --powder: #f6cbd6;
  --powder-2: #f8d2df;
  --accent: #4fb3ff;
  --accent-2: #7bdfff;
  --text: #eaf4ff;
  --muted: #a8b6cf;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,0.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 12px;
}

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

html, body { height: 100%; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    radial-gradient(circle at 20% -10%, rgba(246,205,214,0.25), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(123,223,255,0.25), transparent 40%),
    linear-gradient(135deg, #0a0f1a 0%, #0a0f1a 60%, #0a0f1a 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 2px, rgba(0,0,0,0) 2px 4px);
  background-blend-mode: screen, screen, normal, normal;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  /* supported backdrop blur lives via element styles below */
}
@supports not (backdrop-filter: blur(8px)) {
  /* Fallback will apply a denser look where blur isn't supported */
  body { background-blend-mode: normal; }
}

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

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  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 .5rem;
  border-radius: 999px;
  font-size: .75rem;
  color: #e7f7ff;
  background: rgba(123, 212, 255, 0.18);
  border: 1px solid rgba(123,212,255,.45);
}

/* TYPOGRAPHY */
h1 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--text);
  letter-spacing: .2px;
}

p { color: var(--muted); margin: 0.25rem 0; }

@media (min-width: 900px) {
  p { font-size: clamp(0.95rem, 0.9vw + 0.95rem, 1.1rem); }
}

/* INTERACTIVE ELEMENTS */
a, button, .btn, .cta {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

a { color: var(--accent); }

a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; text-decoration: underline; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #041f33;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease;
}
.btn:hover { transform: translateY(-1px); background: #58c8ff; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--outline:hover {
  background: rgba(79,179,255,.15);
}

/* IMAGE FRAME */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  background: #111;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .image-frame { transition: none; }
}

/* CONTENT PANELS (GLASS EFFECT) */
header, main, footer, aside {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside {
    background: var(--glass-strong);
  }
}

header { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }

/* HEADER SPECIFIC */
header h1 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2.75rem); margin: 0; }

/* NAV LINKS */
nav { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
nav a { padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); color: var(--accent); }
nav a:hover { text-decoration: underline; }

/* MAIN */
main { margin: 1rem auto; }

/* FOOTER / AD SECTIONS */
.product-ad, .sponsored-page { margin-top: .75rem; padding: .5rem; }

.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75rem; border-radius: 10px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.25); color: var(--text); text-decoration: none; }

.product-ad a:hover, .sponsored-page a:hover { background: rgba(0,0,0,.28); text-decoration: none; }

footer { padding: 1rem; margin: 1rem auto; }

/* UTILS */
ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }

.inline { display: inline-flex; align-items: center; gap: .5rem; }

/* PRINT STYLES (basic readability) */
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
  a { text-decoration: underline; color: inherit; }
}
