/* Palette & Base: Future cyberpunk trim with pastel greens + rose gold */

/* Section: Tokens */
:root{
  --bg: #0b0f14;
  --bg-2: #0e141a;
  --text: #eafff2;
  --muted: #a7d6b2;
  --accent: #9af0bd;        /* pastel green */
  --accent-2: #e6b7a1;      /* rose gold highlight (soft) */
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.28);
  --shadow: 0 8px 22px rgba(0,0,0,.28);
  --focus: 0 0 0 4px rgba(150, 255, 210, .55);
  --text-on-glass: #eafff2;
  --link: #e2ffd9;
  --ring: rgba(180, 255, 210, .9);
}

/* Section: Global & Utilities */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #0a1117 0%, #0b151b 60%, #0a0f12 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
  /* layered chrome-like glow + subtle scanlines */
  background-image:
    radial-gradient(circle at 20% -10%, rgba(120, 255, 210, .18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(230, 210, 190, .10), transparent 40%),
    linear-gradient(135deg, rgba(0,0,0,0) 0 0),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px);
  background-size: cover;
  filter: saturate(110%);
  opacity: .95;
}

/* Section: Layout primitives */
.container { width: 100%; max-width: clamp(540px, 75vw, 1100px); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }

/* Section: Glass panels (structure) */
html, body, header, nav, main, article, aside, footer {
  /* Glass-like surface; provides fallback without backdrop-filter if needed */
  background: rgba(15, 22, 22, 0.28);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 0.75rem;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}
@supports not (backdrop-filter: blur(12px)) {
  html, body, header, nav, main, article, aside, footer {
    background: rgba(12, 18, 18, 0.66);
    border-color: rgba(255,255,255,0.4);
  }
}
header { padding: 1.25rem; margin-block: .5rem 1rem; }
main { padding: 0.75rem 1rem 1.25rem; }
footer { padding: 1rem; margin-top: .75rem; display: block; }

/* Section: Typography & headings */
h1, h2 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; color: var(--text-on-glass); }
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 3.5rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.4vw + .8rem, 2rem); color: #eafff0; }
p { margin: 0 0 1rem; color: #eafaf0; line-height: 1.5; }
.meta { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas; font-size: .92rem; color: var(--muted); margin: .25rem 0 0; }

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

/* Section: Content blocks */
.content { color: var(--text); }
blockquote { margin: .75rem 0; padding-left: 1rem; border-left: 3px solid rgba(154, 240, 210, .6); color: #eafff2; opacity: .95; }

/* Lists */
ol.step-list { padding-left: 1.25em; margin: .25rem 0 1rem; }
ol.step-list li { margin: .4em 0; }
ul.checklist { padding-left: 1.25em; margin: .25rem 0 1rem; }
ul.checklist li { margin: .25rem 0; }

/* Section: Interactive elements */
a, button, .btn, .cta { color: var(--text); text-decoration: none; border: 0; outline: none; font: inherit; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
a { color: var(--link); }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); outline-offset: 2px; }

/* Buttons variations */
.btn, .cta { padding: .62em 1.02em; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); display: inline-block; }
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.65); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, rgba(155, 255, 210, .38), rgba(180, 210, 170, .22)); border-color: rgba(180,255,210,.75); color: var(--text); }
.btn.primary:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(170, 240, 210, .72); }

/* Card and tag utility */
.card { background: var(--card); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.tag { display: inline-block; padding: .25em .6em; border-radius: 999px; font-size: .75rem; border: 1px solid rgba(180,255,210,.5); background: rgba(180, 255, 210, .15); color: #e8fff0; }

/* Section: Layout helpers for content areas used in the page */
.product-ad, .sponsored-page { display: inline-block; width: 48%; vertical-align: top; margin: 0 .5% 0 0; }
.product-ad a, .sponsored-page a { display: block; padding: .5rem; text-align: center; border-radius: 10px; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); }

/* Image-friendly layout tweaks for article visuals */
.featured-image { width: 100%; margin: .75rem 0 1rem; }

/* Footer baseline text */
footer p { margin: .5rem 0 0; color: var(--muted); }

/* Section: Print (basic readability) */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; color: #000; }
}
