/* CSS: Cyberpunk Glass Landing (Mobile-First) */

:root {
  --bg: #0a0f1e;
  --bg-2: #111b2b;
  --text: #eaf4ff;
  --muted: #a8b6cf;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-2: rgba(0, 0, 0, 0.28);
  --card-border: rgba(255, 255, 255, 0.28);
  --accent: #4ab0ff;
  --accent-2: #7af7ff;
  --focus: #7bd6ff;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  line-height: 1.55;
  background: linear-gradient(135deg, #0b1020 0%, #102033 60%, #0b1020 100%);
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* Layered background: subtle radar-like noise + scanlines */
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,170,255,.08) 0 60px, transparent 60px),
    linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.15) 40%, rgba(0,0,0,.25) 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, overlay, overlay;
  opacity: .9;
  mix-blend-mode: screen;
  will-change: transform;
}
a, button, .btn, .cta { -webkit-tap-highlight-color: transparent; }

header, nav, main, article, aside, footer { display: block; }

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

/* Glass panels (with backdrop-filter, fallback) */
.content, .product-ad {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Fallback for older browsers with no backdrop-filter support */
  background-clip: padding-box;
}
@supports not (backdrop-filter: blur(10px)) {
  .content, .product-ad { background: rgba(20,25,40,.88); }
}
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 rgba(0,0,0,0.0), 0 6px 18px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.05) contrast(1.02);
}
header { padding: 1.25rem 0; text-align: center; position: relative; z-index: 1; }
header h1 { font-size: clamp(1.6rem, 0.9rem + 2.5vw, 3.2rem); line-height: 1.05; margin: .25rem 0 .25rem; letter-spacing: .2px; font-weight: 700; }
header .meta { color: var(--muted); font-size: clamp(0.7rem, 0.4vw, 0.92rem); margin-top: 0.25rem; }

/* Main article content */
main { display: grid; place-items: center; padding: 1.5rem 0 2rem; }
article { width: min(1100px, 92vw); }
article h1 { font-size: clamp(1.6rem, 0.9rem + 2.2vw, 3rem); margin: 0.25rem 0 0.75rem; }
article p { color: rgba(234,241,255,.92); margin: .75rem 0; font-size: clamp(0.92rem, 0.4vw + 0.95rem, 1.15rem); }

/* Headings and content hierarchy */
article h2, article h3 { color: #e8f2ff; margin: 1rem 0 .5rem; font-weight: 700; }
article h2 { font-size: clamp(1.1rem, .6vw + 1.2rem, 1.6rem); }
article h3 { font-size: clamp(1rem, .4vw + 1.1rem, 1.25rem); }

/* Lists */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: .25rem 0; color: rgba(234,241,255,.92); }

/* Content blocks inside article (for .content usage) */
.content { max-width: 60ch; }

/* Product ad in footer */
footer { padding: 1.25rem; text-align: center; color: var(--muted); }
.product-ad { display: inline-block; text-align: left; max-width: 520px; width: 100%; padding: .9rem; }
.product-ad h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--text); }
.product-ad a { display: block; padding: .75rem 1rem; border-radius: 10px; background: rgba(74,160,255,.92); color: #00132b; text-decoration: none; text-align: center; font-weight: 600; border: 1px solid rgba(255,255,255,.25); }
.product-ad a:hover { background: #5ea7ff; transform: translateY(-1px); }
.product-ad a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Links and interactive elements */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; text-decoration: underline; }

/* Buttons and CTAs (solid and outline variants) */
.btn { display: inline-block; padding: .75rem 1.2rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); background: rgba(74,144,255,.95); color: #001c3a; font-weight: 700; text-align: center; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.btn:hover { background: #5aa3ff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn--outline { background: transparent; color: var(--text); border: 1px solid rgba(74,144,255,.9); }
.btn--outline:hover { background: rgba(74,144,255,.08); }

/* Small utility pills / tags */
.tag { display: inline-block; padding: .25rem .5rem; border-radius: 999px; background: rgba(0,0,0,.25); color: #e9f3ff; font-size: .75rem; border: 1px solid rgba(255,255,255,.25); }

/* Layout utilities (grid, container, etc.) */
@media (min-width: 640px) {
  .grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (min-width: 900px) {
  .grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* Typography tuning for readability on glass: clamp sizes for h1-h3 on small screens */
h1, h2, h3 { letter-spacing: .2px; }

/* Print styles: keep content readable in print */
@media print {
  body { background: white; color: #000; }
  .content, .product-ad { background: white; border: 1px solid #ccc; box-shadow: none; }
  a { text-decoration: underline; color: #000; }
  .btn { display: inline-block; padding: .4rem .8rem; border-radius: 6px; border: 1px solid #000; background: #eee; color: #000; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}