/* Section: Base palette and layered background */
:root {
  --bg: #0a111a;
  --bg-2: #0b1420;
  --text: #eafffb;
  --muted: #a6d8cf;
  --accent: #2ffcc4;      /* seafoam */
  --accent-2: #ff2ea3;    /* fuchsia */
  --glass: rgba(16, 26, 40, 0.22);
  --glass-strong: rgba(16, 26, 40, 0.28);
  --border: rgba(255, 255, 255, 0.32);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --focus: 0 0 0 3px rgba(47, 252, 196, 0.6);
  --radius: 12px;
}
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial;
  font-size: 16px;
  line-height: 1.65;
  background:
    linear-gradient(135deg, rgba(8,12,20,.98) 0%, rgba(10,18,30,.98) 60%, rgba(8,12,20,.98) 100%),
    repeating-linear-gradient(to bottom, rgba(0,255,204,.04) 0 2px, transparent 2px 4px);
  background-blend-mode: overlay;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (prefers-color-scheme: light) {
  :root { --text: #0b1220; --bg: #f6f7fb; --muted: #4b5563; }
  body { background: #f6f7fb; color: #0b1220; }
}

/* Section: Layout helpers */
.container { width: min(92%, 1120px); margin-inline: auto; padding: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Section: Section elements styling */
html, body, header, nav, main, article, footer, aside { display: block; }
header, main, footer { padding: 1rem; }

/* Section: Header / hero */
header { text-align: center; padding: 1.25rem 1rem 1.25rem; }
header h1 { margin: 0 0 .25rem; font-size: clamp(1.6rem, 1vw + 1.6rem, 2.8rem); line-height: 1.08; letter-spacing: .2px; }
header .meta { color: var(--muted); font-size: 0.95rem; }

/* Section: Core content visuals */
.image-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.28); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: Content area (glass panels) */
.content { padding: 0.75rem; border-radius: 12px; background: rgba(12, 22, 34, 0.22); border: 1px solid rgba(255,255,255,0.28); box-shadow: 0 6px 20px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Section: Specific component targets */
.product-ad { display: grid; gap: .5rem; padding: .8rem; border-radius: 12px; background: rgba(12, 22, 34, 0.28); border: 1px solid rgba(255,255,255,.32); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.product-ad h3 { margin: 0; font-size: 1.05rem; }
.product-ad a { color: var(--text); text-decoration: none; display: block; padding: .25rem 0; }
.product-ad a:hover, .product-ad a:focus-visible { text-decoration: underline; color: var(--accent); }

/* Section: Typography helpers for article content */
h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 0.8rem + 2vw, 2.4rem); margin: 1.25rem 0 .25rem; }
h3 { font-size: clamp(1.15rem, 0.8rem + 1.5vw, 1.6rem); margin: 1rem 0 .25rem; color: var(--text); }
p { margin: .75rem 0; color: var(--text); }
ul { margin: .75rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Link and button styles (interactive states) */
a, button, .btn, .cta {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  outline-offset: 0;
  border-radius: 6px;
}
a:hover { text-decoration: underline; color: var(--accent); }

/* Button variants */
.btn { display: inline-block; padding: .55rem .95rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.28); cursor: pointer; }
.btn--solid { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #041018; font-weight: 700; }
.btn--outline { background: transparent; border: 1px solid rgba(127,255,245,.6); color: var(--text); font-weight: 600; }

/* Section: Accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  header, nav, aside { display: none; }
}

/* Section: Helpers for potential usage in page flow */
.content + .content { margin-top: 1rem; }

/* Section: Misc (fallback for backdrop-filter support) */
@supports not (backdrop-filter: blur(12px)) {
  .card, .glass, .content, .product-ad { background: rgba(12, 22, 34, 0.66); }
}
