/* Theme Tokens */
:root {
  --bg: #0b1118;
  --bg-2: #0a1b1b;
  --surface: rgba(12, 24, 32, 0.6);
  --glass: rgba(10, 20, 28, 0.22);
  --text: #eaffff;
  --muted: #9de7e7;
  --accent: #00e6c3;
  --accent-2: #ff3a3a;
  --card: rgba(15, 23, 42, 0.6);
  --shadow: 0 8px 28px rgba(0,0,0,0.5);
  --radius: 14px;
  --focus: 0 0 0 3px rgba(0, 230, 200, 0.55);
  --maxw: clamp(320px, 90vw, 1100px);
  --gap: 1rem;
}

/* Base & Layout */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(0, 230, 200, 0.15) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.28)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-size: cover, cover, 100% 100%;
  background-blend-mode: overlay, overlay, normal;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6faff;
    --bg-2: #eef6ff;
    --surface: rgba(240, 248, 255, 0.9);
    --glass: rgba(255, 255, 255, 0.92);
    --card: rgba(255, 255, 255, 0.92);
    --text: #0b1a23;
    --muted: #4b5563;
    --accent: #006d6d;
    --accent-2: #b91c1c;
  }
  body {
    background-image:
      linear-gradient(135deg, rgba(0, 110, 110, 0.15) 0%, rgba(0,0,0,0) 60%),
      linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
      none;
  }
}
:focus { outline: none; }

/* Section: Typography Helpers */
h1, h2, h3 { margin: 0 0 .5rem; }
p { margin: 0 0 1rem; color: rgba(234, 255, 255, 0.95); }
blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent-2);
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  color: var(--text);
}

/* Section: Global Components */

header {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  background: rgba(8, 16, 24, 0.6);
  border-bottom: 1px solid rgba(0, 255, 230, 0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0;
}
header h1 {
  font-size: clamp(1.8rem, 2.6vw + 1rem, 3.8rem);
  line-height: 1.05;
  color: #eaffff;
  margin: 0 0 .25rem;
  letter-spacing: .5px;
  text-shadow: 0 0 14px rgba(0,255,255,0.6);
}
header .meta {
  font-size: 0.92rem;
  color: var(--muted);
}

main { padding: 1rem; }

/* Section: Content Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1rem; }

/* Article area with glass panels */
article {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  align-items: start;
  justify-items: center;
}

/* Image frame (supports .image-frame or .featured-image) */
.image-frame,
.featured-image {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: #0b1620;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content block styling (for potential .content usage) */
.content {
  width: 100%;
  max-width: var(--maxw);
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(12,24,32,0.28);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

/* Lists & inline helpers */
ul, li { margin: 0; padding: 0; list-style-position: outside; }
li { padding-left: 1.25rem; color: rgba(234,255,255,0.95); }

/* Content hierarchy styling for article text */
article h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2.2rem);
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
}
article p { color: rgba(234,255,255,0.95); }

/* Section: Utilities & Cards */
.grid { display: grid; gap: var(--gap); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }

/* Card-style container (glass panel) */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Tag pills */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: rgba(0, 230, 200, 0.18);
  color: var(--accent);
}

/* Section: Interactive Elements */
a, button, .btn, .cta {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }

/* Button variants */
.btn, button, .cta {
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 200, 0.6);
  background: rgba(0, 230, 200, 0.15);
}
.btn.primary {
  background: var(--accent);
  color: #002824;
  border-color: rgba(0, 230, 200, 0.8);
}
.btn.outline {
  background: transparent;
  border-color: rgba(0, 230, 200, 0.8);
  color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Section: Footer & Ads */
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
.product-ad, .sponsored-page {
  width: 100%;
  max-width: var(--maxw);
  margin: 0.5rem auto;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 230, 0.6);
  background: rgba(2, 24, 34, 0.5);
  color: var(--text);
  text-align: center;
  text-decoration: none;
}
.product-ad a:hover, .sponsored-page a:hover { transform: translateY(-2px); background: rgba(2,24,34,0.7); }

/* Global links footer note */
footer p { margin: 0.25rem 0 0; }

/* Section: Forms (basic, for future inputs) */
input, select, textarea {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Section: Helpers for layout in absence of explicit wrappers */
.main-rail { display: grid; gap: var(--gap); place-items: center; }

/* Section: Print (basic readability) */
@media print {
  body { background: white; color: black; }
  a { color: black; text-decoration: none; }
}
  
/* Section: Motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}