/* Base Tokens */
:root{
  --bg: #04060f;
  --bg-2: #0a1730;
  --surface: rgba(8, 18, 40, 0.28);
  --surface-2: rgba(8, 18, 40, 0.42);
  --text: #eaffff;
  --muted: #a8f0ff;
  --accent: #00e5ff;
  --accent-2: #00b8e5;
  --card: rgba(6, 16, 32, 0.54);
  --border: rgba(0, 235, 255, 0.55);
  --shadow: 0 8px 28px rgba(0, 235, 255, 0.28);
  --radius: 12px;
}

/* Section: Base & Background */
html, body { height: 100%; }
html { font-size: 16px; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(0, 170, 255, 0.20), rgba(0,0,0,0.25)),
    repeating-linear-gradient(to bottom, rgba(0,255,255,0.04) 0 1px, transparent 1px 2px);
  background-color: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  overflow-x: hidden;
}

/* Section: Layout Helpers */
.container {
  width: 100%;
  max-width: clamp(860px, 92vw, 1200px);
  padding: 0 1rem;
  margin: 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(0, 235, 255, 0.40);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #001b22;
  background: rgba(0, 235, 255, 0.35);
  border: 1px solid rgba(0, 235, 255, 0.6);
}

/* Section: Typography & Elements */
header, nav, main, article, aside, footer { display: block; }
header {
  padding: 1.25rem 1rem;
  text-align: center;
}
header h1 {
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  margin: 0.25rem 0 0.25rem;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: .2px;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}
header .meta {
  font-size: clamp(0.8rem, 0.25vw + 0.9rem, 1rem);
  color: var(--muted);
  margin-top: 6px;
}
nav {
  margin-top: 0.75rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 235, 255, 0.6);
  background: rgba(0, 235, 255, 0.08);
}
nav a:hover { text-decoration: underline; color: var(--accent-2); }

/* Section: Content & Media */
main { display: block; }
.article { padding: 0; }
.featured-image { margin: 0.75rem 0 1rem; border-radius: calc(var(--radius) + 2px); overflow: hidden; border: 1px solid rgba(0, 235, 255, 0.5); box-shadow: 0 6px 18px rgba(0, 235, 255, 0.25); }
.featured-image img { width: 100%; height: auto; display: block; }
.image-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(0, 235, 255, 0.5); box-shadow: 0 6px 18px rgba(0, 235, 255, 0.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass panels (frosted) with fallbacks */
.backdrop, .content, .card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.content {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(8, 18, 40, 0.28);
  border: 1px solid rgba(0, 235, 255, 0.45);
  margin: 0.5rem 0;
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(8, 18, 40, 0.78); }
}
.product-ad {
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(8, 18, 40, 0.28);
  border: 1px solid rgba(0, 235, 255, 0.45);
  margin: 0.75rem 0;
}
.product-ad a { color: var(--text); text-decoration: none; font-weight: 600; display: block; padding: .25rem 0; }
.product-ad a:hover { text-decoration: underline; }

/* Section: Links & Buttons (Interactive) */
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); outline: none; }
button, .btn, .cta {
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(0, 235, 255, 0.6);
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.95), rgba(0, 180, 255, 0.95));
  color: #00131a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.95), rgba(0, 180, 255, 0.95));
  color: #002327;
  border: 1px solid rgba(0, 235, 255, 0.8);
  box-shadow: 0 6px 16px rgba(0, 230, 255, 0.35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 230, 255, 0.45); }
.btn:focus-visible, .cta:focus-visible, a:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 235, 255, 0.8);
  box-shadow: none;
}
.cta { /* semantic variant if used as a secondary action */ }

/* Section: Lists */
ul, li { margin: 0 0 0.75rem 1.25rem; padding: 0; color: var(--muted); }
ul { list-style: disc; }

/* Section: Print */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  header, nav, footer { display: none; }
  main { display: block; padding: 1rem; }
}

/* Section: Accessibility & Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Section: Layout Enhancements (focus outlines for all controls) */
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Section: Hero content (typography scales) */
@media (min-width: 900px) {
  header h1 { letter-spacing: .3px; }
}
