/* Section: Tokens & Palette */
:root{
  --bg: #0a0b10;
  --bg-2: #0f111a;
  --surface: rgba(255,255,255,.08);
  --surface-2: rgba(255,255,255,.14);
  --text: #e8f5ff;
  --muted: #a6b4c8;
  --accent: #00e5ff;
  --accent-2: #7c5cff;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --radius: 14px;
}

/* Section: Background & Layout (mobile-first) */
html, body {
  height: 100%;
}
* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 420px) { html { font-size: 15px; } }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(0, 240, 255, .08) 0 20%, transparent 20%),
    linear-gradient(135deg, #04060f 0%, #0a0b10 60%, #050812 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-blend-mode: overlay;
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: .2px;
}
main { padding: 1rem 0; }

/* Section: Container & Helpers */
.container {
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(15,15,20,.5);
  border: 1px solid rgba(120,180,255,.25);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(0, 230, 255, .15);
  color: #d9fbff;
  border: 1px solid rgba(0,230,255,.4);
}
.image-frame { 
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  display: block;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  box-shadow: 0 0 12px rgba(0,255,255,.4);
}

/* Section: Glass Panels (fallback supported) */
.content {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.05);
}
@supports not (backdrop-filter: blur(12px)) {
  .content { background: rgba(255,255,255,.16); }
}
.header-content { display: grid; gap: .5rem; }

/* Section: Header & Typography */
header {
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.75));
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
}
header h1 {
  font-size: clamp(1.25rem, 1.2vw + 1rem, 2rem);
  margin: 0 0 .25rem;
  line-height: 1.12;
}
header .meta { color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; }

/* Section: Content & Headings */
main article {
  display: block;
}
h2 {
  font-size: clamp(1.5rem, 1.1vw + 1rem, 2.25rem);
  margin: .75rem 0 .5rem;
  color: #eaffff;
}
h3 {
  font-size: clamp(1.1rem, .8vw + .9rem, 1.5rem);
  margin: .75rem 0 .25rem;
}
p {
  font-size: clamp(0.95rem, .4vw + .9rem, 1.125rem);
  line-height: 1.6;
  color: #eaf6ff;
  margin: .5rem 0;
}
ol, ul { padding-left: 1.25em; margin: .5rem 0 1rem; color: #eaffff; }
li { margin: .25rem 0; }

/* Section: Layout Utilities (responsive) */
.container.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .container.grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 900px) {
  .container.grid { grid-template-columns: 1.1fr .9fr; }
}

/* Section: Print & Motion */
@media print {
  body { background: #fff; color: #000; }
  .content, .product-ad { background: transparent; border: none; box-shadow: none; }
  nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Buttons & Links */
a, button, .btn, .cta {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease;
}
a:hover { text-decoration: underline; }
.btn { display: inline-block; padding: .7em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #041018;
  border: 0;
  box-shadow: 0 6px 14px rgba(0, 210, 255, .25);
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(124,115,255,.7);
}
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0,0,0,.4);
}
.cta { display:inline-block; padding: .6em 1em; border-radius: 999px; }

/* Section: Specific blocks (Product Ad and Footer) */
.product-ad {
  margin: 1rem 0;
  backdrop-filter: blur(6px);
  background: rgba(2,8,20,.6);
  padding: .75rem;
  border-radius: 12px;
  border: 1px solid rgba(64,180,255,.3);
}
.product-ad a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; justify-content: center; }
footer { padding: 1rem 0 2rem; text-align: center; color: var(--muted); }

/* Section: Lists & Inline Helpers */
ul, ol { margin-block: 0.25rem; }

/* Section: Header/Nav minor tweaks */
nav a { color: var(--text); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

/* Section: Aside (paths for future layouts) */
aside { display: block; }

/* Section: Image helpers (paired with content) */
.image-frame { isolation: isolate; }

/* End of stylesheet */