/* Base Tokens */
:root {
  --bg: #0b1020;
  --bg-2: #0a1b2a;
  --text: #e8f0ff;
  --muted: #a6b5c8;
  --accent: #4db6ff;
  --accent-2: #e6d0a5;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.14);
  --border: rgba(255,255,255,.25);
  --shadow: 0 6px 20px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: 2px solid var(--accent);
}

/* Light mode tweaks */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb;
    --bg-2: #eef4fb;
    --text: #0b1a24;
    --muted: #4b5e72;
    --accent: #1a6fff;
    --accent-2: #d8c29f;
    --card: rgba(255,255,255,.75);
    --card-2: rgba(255,255,255,.9);
    --border: rgba(0,0,0,.15);
  }
}

/* Global resets & layout */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { line-height: 1.15; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Layered background: blue diagonal lines + gradient + subtle beige hue */
  background:
    linear-gradient(135deg, rgba(8,14,38,.98), rgba(8,14,38,.98) 60%, rgba(10,12,28,.98) 100%),
    repeating-linear-gradient(135deg,
      rgba(77, 187, 255, .14) 0px,
      rgba(77, 187, 255, .14) 2px,
      transparent 2px,
      transparent 10px),
    radial-gradient( circle at 20% -10%, rgba(230,213,165,.15), transparent 20%);
}

/* Section wrappers */
header, nav, main, article, aside, footer {
  display: block;
}
.container { width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }

 /* Hero / glassy surfaces */
header {
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(2,6,18,.55);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  box-shadow: var(--shadow);
  text-align: center;
}
header h1 {
  margin: .25rem 0 0;
  font-size: clamp(1.4rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .2px;
}
main { padding: 0 1rem 1rem; }

/* Image frame styling */
.image-frame {
  width: 100%;
  max-width: 720px;
  margin: 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Glass panels for sections (footer product-ad etc.) */
.product-ad,
.sponsored-page,
article { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: .95rem; }
.product-ad { text-align: left; }
.product-ad a, .sponsored-page a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.product-ad a:hover, .sponsored-page a:hover { text-decoration: underline; }
.product-ad p, .sponsored-page p { margin: 0; }

/* Links & interactive elements */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.btn, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.15em;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(#1f78ff, #0e6fff);
  color: #00172a;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover, .cta:hover { transform: translateY(-1px); }
.btn:active, .cta:active { transform: translateY(0); }
.btn.secondary {
  background: rgba(255,255,255,.12);
  color: var(--text);
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: 8px;
}
a:hover { text-decoration: underline; }

/* Content helpers */
.content { color: var(--text); line-height: 1.5; padding: .5rem 0; }
ul, li { margin: 0; padding: 0; list-style: none; }
li { padding: .25rem 0; }

/* Utility & layout primitives */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .image-frame:hover img { transform: none; }
}

/* Print-friendly adjustments */
@media print {
  body { background: #fff; color: #000; }
  header, .image-frame, .product-ad, .sponsored-page { background: #fff; border: none; box-shadow: none; }
}
