/* Base tokens & layout */
:root {
  --bg: #0b0f14;
  --bg-2: #0a0f18;
  --surface: rgba(15, 23, 34, 0.22);
  --surface-2: rgba(12, 18, 28, 0.32);
  --text: #e8fffe;
  --muted: #9bdadf;
  --accent: #1fe2d4;
  --accent-2: #ff7a1f;
  --border: rgba(255, 255, 255, 0.28);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --radius: 14px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  background:
    linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.92) 60%, rgba(0,0,0,.95) 100%),
    radial-gradient(circle at 20% 0%, rgba(0,255,255,.12), transparent 40%),
    linear-gradient(180deg, #04070b 0%, #0b0f14 100%);
  background-blend-mode: overlay, overlay, normal;
  position: relative;
  isolation: isolate;
}
body::before {
  content:"";
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 2px, transparent 2px 4px);
  background-size: auto 100%;
  mix-blend-mode: overlay;
  opacity: .6;
  z-index: 0;
}
@supports not (backdrop-filter: blur(8px)) {
  body::before { display: none; }
}
/* Light mode adjustments */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7f7;
    --bg-2: #e9eef4;
    --surface: rgba(255,255,255,.88);
    --surface-2: rgba(255,255,255,.95);
    --text: #0a0f12;
    --muted: #4b555e;
    --accent: #0b5e7a;
    --accent-2: #b65f1e;
    --border: rgba(0,0,0,.08);
    --shadow: 0 6px 18px rgba(0,0,0,.12);
  }
  body {
    background: linear-gradient(135deg, #f0f3f7 0%, #e9eef5 60%, #f5f7fb 100%);
    background-blend-mode: normal;
    color: var(--text);
  }
  body::before { opacity: 0; }
}
/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 86vw, 1100px);
  margin-inline: auto;
  padding: 1rem;
}
.grid { display: grid; gap: 1rem; }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Header styling (glass panel) */
header {
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem;
  margin: 0 auto;
  width: min(1100px, 92%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(14,20,32,.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
header h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  margin: 0;
  text-align: center;
}
header .meta {
  margin: .25em 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

/* Main content layout */
main { padding: 1rem 0; }
article { display: grid; gap: 1rem; }

/* Image frame */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
  background: #000;
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.01);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.04); }

/* Typography scales */
h2 { font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.2rem); margin: .25em 0; color: var(--text); }
p { margin: .5em 0 1em; color: var(--text); }

/* Blockquote & lists */
blockquote {
  margin: .5em 0;
  padding: .75em 1em;
  border-left: 4px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
ul { padding-left: 1.25rem; }
li { margin: .25em 0; }

/* Glass panels helper (content blocks) */
.backdrop, .card {
  background: rgba(18, 28, 40, 0.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(1.05);
  color: var(--text);
}
@supports not (backdrop-filter: blur(10px)) {
  .backdrop, .card {
    background: rgba(18,28,40,0.55);
    border-color: rgba(255,255,255,.4);
  }
}
.section { padding: .5rem 0; }

/* Footer ads */
footer {
  display: grid;
  gap: .75rem;
  padding: 1rem 0 2rem;
  grid-template-columns: 1fr;
  justify-items: center;
}
.product-ad, .sponsored-page {
  width: min(520px, 90%);
}
.product-ad a, .sponsored-page a {
  display: block;
  text-align: center;
  padding: .9rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #06201a;
  background: linear-gradient(135deg, rgba(31,226,212,.95), rgba(31,226,212,.75));
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(31,226,212,.25);
}
.product-ad a:hover { transform: translateY(-1px); }
.sponsored-page a {
  background: linear-gradient(135deg, rgba(30,30,30,.95), rgba(20,20,20,.85));
  color: var(--text);
}
footer p { text-align: center; margin: 0; opacity: .8; }

/* Link styling & interaction */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }

/* CTA buttons & variants */
.btn {
  display: inline-block;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(31,226,212,.95), rgba(31,226,212,.75));
  color: #02211a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.btn:focus-visible { outline: 2px solid #7af2d9; outline-offset: 3px; }

/* Outline variant */
.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(94, 238, 238, .7);
  box-shadow: none;
}
.btn.outline:hover { background: rgba(0,0,0,.04); }

/* CTA utility */
.cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: linear-gradient(135deg, rgba(31,226,212,.95), rgba(31,226,212,.75));
  color: #02211a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:focus-visible { outline: 2px solid #7af2d9; outline-offset: 3px; }

/* Form styling (match theme) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: .6rem .8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #7af2d9;
  outline-offset: 2px;
  border-color: rgba(120,240,230,.8);
}
::placeholder { color: rgba(230,255,255,.5); }

/* Glass content helper */
.content {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(16, 28, 40, 0.25);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}

/* Utility tag badge */
.tag {
  display: inline-block;
  padding: .15em .6em;
  font-size: .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

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

/* Print */
@media print {
  body { background: white; color: black; }
  header, footer { background: none; box-shadow: none; border: none; }
}