:root {
  --bg: #0b0b0f;
  --bg-2: #141522;
  --surface: rgba(255, 170, 120, 0.18);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #f6f7fb;
  --muted: #cbd5e1;
  --accent: #ff8a66;
  --accent-2: #7bdfff;
  --glass: rgba(12,12,20,0.42);
  --ring: 0 0 0 3px rgba(123,223,255,0.5);
  --shadow: 0 8px 28px rgba(0,0,0,.4);
}

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

html, body { height: 100%; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  color: var(--text);
}

body {
  margin: 0;
  line-height: 1.5;
  background: linear-gradient(135deg, rgba(255,170,120,0.15), rgba(0,0,0,0.65)),
              radial-gradient(circle at 20% -10%, rgba(255,170,120,0.25), transparent 40%),
              var(--bg);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
  z-index: 0;
}

/* Layered decorative background: gradient + scanlines + peach code stream (pure CSS) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,200,150,0.06) 0 2px, transparent 2px 4px),
    linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0.08) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.65;
  animation: scan 6s linear infinite;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 60% -10%, rgba(255,180,120,0.18), transparent 40%),
    linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0.12) 100%),
    radial-gradient(circle at 20% 0%, rgba(255,170,120,0.08), transparent 40%);
  background-size: cover;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
  animation: codeStream 8s linear infinite;
  z-index: 0;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(2px); } }
@keyframes codeStream { to { background-position: 0 1000px; } }

/* Global structural semantics */
header, nav, main, article, aside, footer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Glass panels / cards */
.card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* Image frame styling */
.image-frame {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  display: block;
  box-shadow: 0 14px 28px rgba(0,0,0,0.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* Content typography and layout */
.content {
  color: var(--text);
  line-height: 1.5;
  font-size: clamp(14px, 2.2vw, 18px);
}

h1 {
  font-size: clamp(1.75rem, 4vw + 0.5rem, 3.5rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
  color: var(--text);
}

p { margin: 0.5rem 0 0.75rem; }

/* Utility grid / layout helpers */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 12px;
  color: #0a111b;
  background: linear-gradient(#ffb085, #ff8a66);
  border: 1px solid rgba(0,0,0,0.15);
  font-weight: 700;
}

/* Navigation / typography tweaks */
header {
  padding: 1.25rem 1rem 0.75rem;
  text-align: center;
}
header h1 { font-weight: 700; margin: 0.25rem 0; }

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.25rem 0 0.5rem;
}
nav a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover, nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Links and CTAs */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}
a { color: var(--accent-2); }
a:hover { text-decoration: underline; }

/* Buttons (solid and outline variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #2a1504;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); background: #ff7e46; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 999px; }

.btn.outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.65);
}
.btn.outline:hover { background: rgba(255,255,255,0.08); }

/* Form controls (minimal base) */
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  outline: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: rgba(123,223,255,0.8);
  box-shadow: var(--ring);
}

/* Footer / product ad panels */
.product-ad, .sponsored-page { display: block; text-align: center; padding: 0.6rem; border-radius: 12px; background: rgba(12,12,20,0.42); border: 1px solid rgba(255,255,255,0.28); margin: 0.25rem 0; }
.product-ad a, .sponsored-page a { color: var(--text); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }

/* Responsive tweaks */
@media (min-width: 720px) {
  .container { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  body::before, body::after { animation: none; opacity: 0.7; }
}

/* Printing tweaks */
@media print {
  body { background: white; color: black; }
  nav, .image-frame { page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
}
