/* Base & Tokens */
:root{
  --bg: #0a0a0f;
  --bg-2: #11131a;
  --text: #f6f8fa;
  --muted: #cbd5e1;
  --accent: #e9f0ff;
  --accent-2: #b9d3f7;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.28);
  --shadow: 0 8px 28px rgba(0,0,0,.28);
  --radius: 12px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 60%, rgba(0,0,0,.20) 100%), 
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.05), transparent 40%),
    var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Layout helpers */
.container { width: 100%; max-width: clamp(480px, 90vw, 1100px); padding: 0 1rem; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 0.75rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag { display: inline-block; padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; color: #eaf4ff; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); }

/* Core elements (must style) */
html, body, header, nav, main, article, footer, aside {
  /* ensure layers respect glass aesthetic without layout break */
}
.image-frame { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 8px 24px rgba(0,0,0,.25); background: rgba(255,255,255,.04); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typography */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.15; margin: .25rem 0 .5rem; letter-spacing: .3px; color: var(--accent); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
p { color: var(--muted); margin: 0.5rem 0; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* Header / Hero */
header {
  padding: 1.25rem;
  text-align: center;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
header h1 { margin: .25rem 0 0.5rem; color: #f7fbff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
nav { display: inline-flex; gap: .5rem; padding-top: .25rem; }

/* Main content */
main { display: block; padding: 1rem 0 2rem; }
article { display: block; padding: 0; max-width: 1000px; margin-inline: auto; }

/* Footer / panels (glass) */
footer { padding: 1rem; display: block; text-align: center; gap: .75rem; }
.product-ad, .sponsored-page { display: inline-flex; align-items: center; justify-content: center; min-width: 0; padding: .75rem 1rem; margin: .25rem; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.product-ad a, .sponsored-page a { text-decoration: none; color: inherit; }

/* Buttons & CTAs (variants) */
.btn, .cta, button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.38); color: #fff; text-decoration: none; cursor: pointer; background: rgba(255,255,255,.16); transition: transform .2s ease, background .2s ease; font: inherit; }
.btn:hover, .cta:hover, button:hover { transform: translateY(-1px); background: rgba(255,255,255,.22); }
.btn:active, .cta:active, button:active { transform: translateY(0); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.btn:focus-visible, .btn--outline:focus-visible, .cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .cta { transition: none; transform: none; }
}

/* Forms (basic styles) */
input, textarea, select { font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: .5rem; outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(255,255,255,.6); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
::placeholder { color: rgba(255,255,255,.6); }

/* Lists */
ul { margin: 0; padding: 0; list-style: none; }

/* Print tweaks (basic) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
