:root{
  --bg: #0a0f14;
  --bg-2: #0e1a1f;
  --surface: rgba(18, 26, 32, 0.65);
  --text: #e8fff7;
  --muted: #9bd4c9;
  --accent: #2ce6b6;
  --accent-2: #4bd9ff;
  --border: rgba(120,255,210,0.45);
  --glass: rgba(16, 24, 32, 0.65);
  --shadow: 0 12px 28px rgba(0,0,0,.35);
  --focus: #9ff5e1;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue";
}

html, body, header, nav, main, article, footer, aside {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

body {
  margin: 0;
  color: var(--text);
  min-height: 100dvh;
  /* Layered background: gradient + subtle scanlines via overlay */
  background:
    linear-gradient(135deg, rgba(3,8,12,0.92) 0%, rgba(9,20,22,0.92) 50%, rgba(5,9,12,0.92) 100%),
    radial-gradient( circle at 15% 10%, rgba(0,255,170,.08), transparent 25% ),
    radial-gradient( circle at 90% -10%, rgba(60,200,255,.08), transparent 25%);
  background-blend-mode: normal, screen, screen;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* subtle noise/scanlines (pure CSS) */
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(to right, rgba(0,0,0,.02) 0 1px, transparent 1px 2px);
  opacity: .25;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}
* { box-sizing: border-box; }

.header-glass, header {
  width: 100%;
}

header {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid;
  place-items: center;
  text-align: center;
}
header > h1 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem);
  letter-spacing: .2px;
  line-height: 1.15;
  color: #eafffb;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
@media (min-width: 860px){
  header { padding: 2rem 0 2.5rem; }
}
.header-glass {
  background: rgba(15, 26, 32, 0.6);
  border: 1px solid rgba(120,255,210,.35);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  max-width: min(1100px, 92%);
}
@supports not (backdrop-filter: blur(12px)) {
  .header-glass {
    background: rgba(15, 26, 32, 0.92);
  }
}
.container {
  width: min(100%, calc( clamp(320px, 90vw, 1100px) ));
  margin-inline: auto;
  padding-inline: 1rem;
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}

.image-frame {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 255, 210, 0.45);
  background: rgba(12, 28, 28, 0.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

footer {
  width: 100%;
  padding: 1rem 1rem 2rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  z-index: 1;
}
.product-ad, .sponsored-page {
  width: min(100%, 680px);
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(120,255,210,.35);
  background: rgba(8,18,20,.6);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
}
.product-ad p, .sponsored-page p {
  margin: 0;
  font-weight: 600;
}
@supports not (backdrop-filter: blur(8px)) {
  .product-ad, .sponsored-page {
    background: rgba(8,18,20,0.92);
  }
}
footer p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* Cards & utility layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(12, 22, 28, 0.65);
  border: 1px solid rgba(120,255,210,.35);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .72rem;
  border-radius: 999px;
  border: 1px solid rgba(46,225,170,.5);
  background: rgba(46,225,170,.15);
  color: #c9fff3;
}

/* Links & interactive elements */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all .15s ease;
}
a { color: var(--accent); }
a:hover, a:focus-visible {
  text-decoration: underline;
  color: var(--accent-2);
}
button, .btn, .cta {
  font-family: inherit;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: .75rem 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn {
  background: linear-gradient(135deg, rgba(34,230,176,.95), rgba(0,210,180,.95));
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.btn:hover { transform: translateY(-1px); }
.btn.primary:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn:active { transform: translateY(0); }

.btn.outline {
  background: rgba(0,0,0,0.0);
  border: 1px solid rgba(46,225,170,.6);
  color: var(--text);
}
.btn.outline:hover {
  background: rgba(46,225,170,.08);
}

.cta {
  padding: .8rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(0, 255, 180, .95), rgba(0, 200, 170, .95));
  color: #04160e;
}
.cta:hover { filter: brightness(1.05); }

/* Form elements (base styles) */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(12,22,28,.6);
  border: 1px solid rgba(120,255,210,.45);
  border-radius: 8px;
  padding: .5rem .75rem;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(120,255,210,.9);
  box-shadow: 0 0 0 3px rgba(120,255,210,.25);
}
input::placeholder, textarea::placeholder { color: #a4f3e0; }

/* Layout helpers (mobile-first) */
@media (min-width: 640px) {
  .container { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  header, footer { page-break-inside: avoid; }
}
aside { display: none; } /* reserved for future widgets */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.section-header h2 {
  font-size: clamp(1.1rem, 1vw + 1rem, 1.6rem);
  margin: 0;
}
.section-header .hint {
  font-size: .78rem;
  color: var(--muted);
}
