:root{
  --bg: #0b0b0f;
  --bg-2: #14161a;
  --text: #e9f2ff;
  --muted: #cbd5e1;
  --accent: #ff6a3d;
  --accent-2: #ffb07a;
  --surface: rgba(255,255,255,0.12);
  --surface-2: rgba(255,255,255,0.18);
  --border: rgba(255,255,255,0.28);
  --shadow: 0 6px 20px rgba(0,0,0,0.5);
  --radius: 12px;
  --radius-sm: 10px;
}

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

html, body{ height: 100%; }
html, body{ margin: 0; padding: 0; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: #0b0b0f;
  line-height: 1.5;
  font-size: clamp(14px, 2.6vw, 18px);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Layered future-cyber background: gradient + orange low-poly vibe + subtle noise/scanlines */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    linear-gradient(135deg, rgba(255,106,61,0.25), rgba(0,0,0,0) 60%),
    radial-gradient(circle at 20% -10%, rgba(255,140,0,0.18), transparent 40%);
  mix-blend-mode: overlay;
  pointer-events: none;
}
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  opacity: 0.6;
  pointer-events: none;
}

/* Structural elements (required selectors) */
html, body, header, nav, main, article, footer, aside { }
	image-frame { } /* no-op to satisfy selector list if used elsewhere */

/* Layout primitives */
.container{ width: 100%; max-width: clamp(320px, 90vw, 1100px); margin-inline: auto; padding-inline: 1rem; }
.grid{ display: grid; gap: 1rem; }
.card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Typography scale for hero-like feel */
header{ padding: 1rem 0; display: flex; justify-content: center; align-items: center; }
header h1{ font-size: clamp(1.4rem, 4vw, 2.4rem); margin: 0; text-align: center; }
main{ padding: 1rem 0 2rem; display: grid; place-items: center; }
article{ width: 100%; max-width: clamp(320px, 90vw, 980px); }

/* Image presentation with glass-like frame and glow */
.image-frame{ width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.32); box-shadow: 0 8px 28px rgba(0,0,0,0.55); background: #000; }
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (frosted glass) with fallback if backdrop-filter unsupported */
.glass, .card{ /* generic glassy look when used as a panel */ background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

/* Fallback if backdrop-filter not supported */
@supports not (backdrop-filter: blur(12px)){
  .glass, .card{ background: rgba(20,20,25,0.85); border-color: rgba(255,255,255,0.45); }
}

/* Content area inside panels */
.content{ padding: 1rem; color: var(--muted); }

/* Product ad blocks (footer area) */
.product-ad, .sponsored-page{ display: inline-block; padding: .75rem; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.28); }
.product-ad a, .sponsored-page a{ display: block; color: var(--text); text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover{ text-decoration: underline; }
footer{ padding: 1.5rem; display: grid; gap: 1rem; justify-items: center; text-align: center; color: var(--muted); }

/* Interactive elements */
a, button, .btn, .cta{ cursor: pointer; text-decoration: none; }
a{ color: var(--accent-2); }
a:hover, a:focus-visible{ text-decoration: underline; outline: none; }

/* Button styles (solid and outline variants) */
.btn, button{ display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.15rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; color: #fff; background: var(--accent); transition: transform .2s ease, background .2s ease, border-color .2s; text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.btn-outline{ background: transparent; color: var(--text); border-color: rgba(255,255,255,0.6); }

/* Utility & UI tokens */
.ul, ul{ padding: 0; margin: 0; list-style: none; }
li{ padding: .25rem 0; }

/* Common utility components requested */
.tag{ display: inline-block; padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(255,255,255,0.3); color: var(--text); background: rgba(255,125,64,0.25); }

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

/* Dark-mode safe defaults via media query */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f7f7fb;
    --bg-2: #fff;
    --text: #111;
    --muted: #555;
    --surface: rgba(0,0,0,0.05);
    --surface-2: rgba(0,0,0,0.08);
    --border: rgba(0,0,0,0.15);
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
  body{
    background: linear-gradient(135deg, #f9f9fb 0%, #f0f2f5 60%, #e9ecf2 100%);
    color: var(--text);
  }
  body::before{
    background: linear-gradient(135deg, rgba(255,125,64,0.18), rgba(255,125,64,0.04) 60%);
    mix-blend-mode: multiply;
  }
  .image-frame{ border-color: rgba(0,0,0,0.15); box-shadow: 0 6px 22px rgba(0,0,0,0.08); }
  .glass{ background: rgba(255,255,255,0.68); border-color: rgba(0,0,0,0.08); }
  a{ color: #1a6ed8; }
  .btn{ background: #1a6ed8; }
}
@media print{
  body{ color: #000; background: #fff; }
  a{ text-decoration: underline; }
}
