/* Theme Tokens */
:root {
  --bg: #0b1020;
  --bg-2: #141a2b;
  --text: #e9f0ff;
  --muted: #a9b3c7;
  --accent: #ff6b6b;
  --accent-2: #ffd2c2;
  --card: rgba(11, 16, 32, 0.62);
  --glass-border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.45);
}

/* Layout & Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(12,18,40,0.95), rgba(8,12,28,0.95) 60%, rgba(4,7,15,0.95)),
    repeating-linear-gradient(90deg, rgba(255,105,97,0.12) 0 8px, rgba(255,105,97,0.0) 8px 16px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #ffffff;
    --text: #0b1220;
    --muted: #51607a;
    --accent: #e0566b;
    --accent-2: #c14a4a;
  }
  body {
    background:
      linear-gradient(135deg, #f7f8fb 0%, #eef2f7 100%);
    color: var(--text);
  }
}

a, button, .btn, .cta { color: inherit; text-decoration: none; }

/* Header */
header {
  width: min(100%, 1100px);
  margin: 1rem auto;
  padding: 1rem 1rem;
  border-radius: 14px;
  background: rgba(8,12,28,0.38);
  border: 1px solid var(--glass-border);
  display: grid;
  justify-items: center;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem);
  letter-spacing: .02em;
}
nav { padding: 0.5rem 1rem; }

/* Main content */
main { padding: 1rem; display: grid; place-items: center; }
article { width: 100%; display: grid; justify-items: center; padding: 0.5rem 0 1rem; }

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

/* Glass content panels */
.content {
  width: min(100%, 1100px);
  margin: 1rem auto 0;
  padding: 1rem;
  background: rgba(14,20,38,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(14,20,38,0.72); }
}

/* Product ad + sections in footer */
.product-ad, .sponsored-page {
  display: inline-block;
  padding: .6rem 1rem;
  margin: .25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(20,26,48,0.50);
}
.product-ad a, .sponsored-page a { color: var(--accent-2); font-weight: 600; }
footer { padding: 1rem; text-align: center; display: grid; gap: .6rem; grid-template-columns: 1fr; justify-items: center; }
footer p { margin: .25rem 0 0; color: var(--muted); }

/* Utility containers & grids */
.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(11,16,32,0.82); }
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
}

/* Buttons & CTAs */
a, button { outline: none; }
.btn, .cta {
  display: inline-block;
  padding: .75rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.28);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:hover, .cta:hover { transform: translateY(-1px); background: #ff4d4d; }
.btn:active, .cta:active { transform: translateY(0); }
.btn:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
a.btn, a.cta { text-decoration: none; }

/* Form elements (presentational baseline) */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
}
input, textarea, select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
  outline: none;
}

/* Typography & links behavior */
p { margin: 0.5rem 0; color: var(--muted); }
h1, h2, h3 { line-height: 1.25; margin: .25rem 0; }
ul { padding-left: 1.25rem; margin: .25rem 0; }
li { margin: .25rem 0; }

/* Images frame directive for any additional images */
.image-frame { /* already defined above; kept for selector coverage */ }

/* Print styles (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
 
/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}