/* CSS: Production-ready landing page theme (future cyberpunk + hacker vibe) */
:root{
  --bg: #0a1f14;
  --bg-2: #0b2a1a;
  --text: #eafff5;
  --muted: #b9e6c9;
  --accent: #38d2a2;       /* retro teal / pastel green accent */
  --accent-2: #4ef0c0;     /* secondary teal highlight */
  --card: rgba(8,40,30,.34);
  --card-2: rgba(8,40,30,.28);
  --glass: rgba(8,40,30,.22);
  --border: rgba(110,235,210,.40);
  --focus: #9fffe0;
  --shadow: 0 6px 16px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #041a12;
  /* Layered background: pastel-green radial glows + subtle scanlines */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(120,255,210,.28) 0 40%, rgba(120,255,210,0) 40%),
    radial-gradient(circle at 85% 60%, rgba(100,240,190,.20) 0 40%, rgba(0,0,0,0) 40%),
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,.04) 0 1px,
      transparent 1px 2px),
    linear-gradient(#041a12, #041a12);
  background-blend-mode: screen, overlay, normal, normal;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
 /* Small, accessible motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Layout primitives */
.container { max-width: clamp(640px, 90vw, 1100px); margin-inline: auto; padding: 1rem; }

/* Glass panel aesthetics (with fallback via @supports) */
header, main, footer, aside, article {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside, article {
    background: rgba(8,40,30,.60);
    border-color: rgba(110,235,210,.60);
  }
}

/* Structure targets (as required selectors) */
html, body, header, nav, main, article, footer, aside {
  /* ensure consistent stacking context if panels overlap */
  position: relative;
}
.image-frame, .image-frame img { /* required selectors */
  aspect-ratio: 16/9;
}
.image-frame { width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid rgba(110,235,210,.40); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Typographic system (responsive, fluid) */
h1, h2 { color: #eafff5; margin: 0.25em 0 0.5em; }
h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: .2px; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
h2 { font-size: clamp(20px, 2.6vw, 26px); color: var(--accent-2); }

/* Global text helpers */
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
li { margin: .25em 0; line-height: 1.6; }

/* Content blocks styling */
.content { max-width: 68ch; }

/* Cards, grid, and tags (utility classes) */
.grid { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid rgba(110,235,210,.40); border-radius: 12px; padding: .75rem; box-shadow: 0 4px 12px rgba(0,0,0,.20); }
.tag { display: inline-block; padding: .25em .5em; border-radius: 999px; font-size: .75rem; background: rgba(56,210,162,.20); color: var(--text); border: 1px solid rgba(56,210,162,.55); }

/* Navigation links + CTAs (interactive states) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Buttons (solid and outline variants) */
button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .68em 1.1em;
  cursor: pointer;
  background: var(--accent);
  color: #042316;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn { background: var(--accent); color: #062b1a; border-color: rgba(56,210,162,.9); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(56,210,162,.9);
}
.btn--outline:hover { background: rgba(56,210,162,.08); }

/* Focus ring for keyboard users on links and controls (focus-visible) is defined globally above. */

/* Footer brand ad blocks (ensuring layout) */
.product-ad, .sponsored-page { display: block; margin: .5rem 0; padding: .6rem; text-align: center; }
.product-ad a, .sponsored-page a { display: block; text-decoration: none; color: var(--text); }

/* Media queries: responsive tweaks */
@media (min-width: 720px) {
  .container { padding: 1.25rem; }
  header, main, aside, article, footer { padding: 1.25rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  /* already handled globally, but reinforce for interactive components */
  .btn, a { transition: none; }
}
@media print {
  body { color: #000; background: #fff; }
  header, main, footer { background: transparent; border: none; box-shadow: none; }
}
