:root {
  --bg: #0b0f14;
  --bg-2: #0e1a20;
  --text: #e6f5fb;
  --muted: #a9c9d8;
  --accent: #1ee7d2;
  --accent-2: #00e0ff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow: 0 6px 14px rgba(0,0,0,.25);
  --radius: 12px;
  --focus-ring: 2px solid rgba(0, 230, 210, 0.95);
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  background: 
    linear-gradient(135deg, rgba(10,14,20,.92), rgba(12,18,28,.92) 60%, rgba(10,14,20,.92)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px),
    radial-gradient(circle at 20% 0%, rgba(0, 255, 230, .08), transparent 40%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

header, main, footer {
  width: 100%;
}

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

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

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
}

.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  color: var(--bg-2);
  background: rgba(30, 231, 210, .25);
  border: 1px solid rgba(30,231,210,.5);
}

/* Glass panels and surface styling */
.content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) * 1.25);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.12); }
}

.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25);
  background: #111;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* Typography and hero pattern */
header {
  display: block;
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 0 auto 0.5rem;
}
header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.04;
  margin: 0 0 0.25rem;
  letter-spacing: .2px;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

/* Main article styling with responsive typographic scale */
main {
  display: block;
}
article {
  max-width: clamp(680px, 90vw, 1000px);
  margin: 0 auto;
  padding: 0 0 1rem;
}
h2 {
  font-size: clamp(1.4rem, 3.4vw, 2.25rem);
  margin: .75rem 0 0.25rem;
  color: var(--text);
}
h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin: .75rem 0 0.25rem;
  color: var(--text);
}
p {
  color: #e8f5fb;
  margin: .55rem 0;
}
blockquote {
  margin: .75rem 0;
  padding: .5rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: #eaffff;
}
ul {
  padding-left: 1.25rem;
  margin: .5rem 0;
  color: var(--muted);
}
li { margin: .25rem 0; }

/* Featured product ad in footer */
.product-ad {
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: block;
  text-align: left;
}
.product-ad h3 {
  font-size: 1rem;
  margin: 0 0 .25rem;
}
.product-ad a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem;
  margin-top: .25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0bd6cc, #08c6c2);
  color: #04150f;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.15);
}
footer {
  padding: 1rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: .25rem 0; }

/* Interaction: buttons and links */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: var(--text);
}
a:hover, a:focus, a:focus-visible {
  text-decoration: underline;
}
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}
.btn, button, .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.25);
  color: #eaffff;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover, button:hover, .cta:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, rgba(26,231,210,.95), rgba(0,213,208,.95));
  color: #041d1a;
  border-color: rgba(0,0,0,.25);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.btn + .btn {
  margin-left: .5rem;
}
.cta {
  padding: .6rem 1rem;
  border: 1px solid rgba(0,255,230,.8);
  color: #eaffff;
  background: rgba(0, 255, 230, .15);
}
.cta:hover {
  background: rgba(0,255,230,.28);
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Print styles for readability */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card, .content { background: white; border: none; box-shadow: none; }
}
