/* CSS: futuristic cyberpunk / hacker-themed landing page */

:root {
  --bg: #04070b;
  --bg-2: #0b1220;
  --surface: rgba(11, 26, 38, 0.30);
  --card: rgba(14, 60, 88, 0.28);
  --panel: rgba(16, 60, 90, 0.28);
  --text: #eaffff;
  --muted: #a8d5d5;
  --accent: #4bd8ff;       /* cosmic blue */
  --accent-2: #2ff0d0;      /* seafoam glow */
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 12px;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(14px, 1vw + 12px, 18px);
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(3,7,12,.92), rgba(5,12,20,.95)),
    /* subtle scanline / noise pattern via CSS gradients */
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(0,180,180,.07), transparent 25%),
    #030911;
  background-blend-mode: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
}

/* Section semantic styling (glass panels) */
header, nav, main, article, aside, footer {
  background: rgba(8, 28, 38, 0.28);
  border: 1px solid rgba(180, 210, 210, 0.35);
  border-radius: calc(var(--radius) + 2px);
  padding: 0.75rem;
  margin: 0.75rem 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header, nav, main, article, aside, footer {
    background: rgba(8, 28, 38, 0.78);
    border-color: rgba(180,210,210,0.6);
  }
}

header {
  display: grid;
  gap: .5rem;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
}
header h1 {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 3.25rem);
  line-height: 1.06;
  margin: 0;
  letter-spacing: .2px;
}
header .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.15);
  transition: transform .15s ease, background .2s ease;
}
nav a:hover,
nav a:focus-visible {
  background: rgba(255,255,255,.18);
  outline: none;
  transform: translateY(-1px);
}
nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  display: block;
  padding: 0.5rem;
}
article {
  padding: 0.5rem;
}
.featured-image {
  margin: .75rem 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25), 0 4px 16px rgba(0,0,0,.4);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
.content {
  padding: 0.25rem;
}
.content h1 {
  font-size: clamp(1.8rem, 2.6vw + 0.5rem, 3.25rem);
  margin: 0.75rem 0 0.25rem;
}
.content p, .content ul, .content ol, .content blockquote {
  color: var(--text);
  margin: 0.5rem 0;
}
.content ul, .content ol {
  padding-left: 1.25rem;
}
.content li {
  margin: 0.25rem 0;
}
blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}

/* Text helpers and typography scales */
h2 {
  font-size: clamp(1.15rem, 0.9vw + 1.1rem, 1.6rem);
  margin-top: 1rem;
}
p, li {
  font-size: 1rem;
}
strong { font-weight: 700; }

/* Product ad / footer area styling per required selectors */
.product-ad, .sponsored-page {
  display: block;
  padding: .75rem;
  text-align: center;
  border-radius: 10px;
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  text-decoration: none;
  color: #fff;
  display: block;
}
.product-ad:hover, .sponsored-page:hover {
  background: rgba(75, 216, 255, 0.15);
}
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
}
footer p {
  text-align: center;
  margin: 0;
  color: var(--muted);
}
@media (min-width: 720px) {
  footer {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Link and button treatments for accessibility and interaction */
a, button, .btn, .cta {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(75,198,255,.8);
  background: #0b9bd6;
  color: #001018;
  padding: 0.65rem 1rem;
  display: inline-block;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn {
  background: linear-gradient(135deg, #4bd8ff 0%, #2a7bd9 100%);
  color: #061018;
  border: 1px solid rgba(255,255,255,.4);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(75,198,255,.8);
}
.cta {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(75,198,255,.8);
  color: #eaffff;
  background: rgba(0,0,0,.15);
}
.inline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(75,198,255,.22);
  border: 1px solid rgba(75,198,255,.45);
  color: var(--text);
}
ul, li { margin-block: .25rem; }

/* Glass panel expansion for content blocks (optional highlight) */
.glass {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
@supports not (backdrop-filter: blur(8px)) {
  .glass {
    background: rgba(255,255,255,.14);
  }
}

/* Animations (GPU-friendly) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 420ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; }
}

/* Typography helpers for responsive hero */
.hero {
  padding: 1rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 4rem);
}
.hero p {
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero { padding: 1.25rem 0; }
  .hero h1 { font-size: clamp(2.4rem, 2.6vw + 1.4rem, 4.4rem); }
}

/* Print styles minimal readability */
@media print {
  body { color: #000; background: #fff; }
  a { text-decoration: underline; color: #000; }
}
