/* Section: Tokens & Base Palette */
:root {
  --peach: #ff8a69;
  --peach-2: #ffc6a1;
  --peach-3: #ffd7c3;
  --cyan: #00e5ff;
  --cyan-2: #00c6ff;

  --bg: #0b0b0f;
  --bg-2: #141923;
  --surface: rgba(255,255,255,0.08);
  --surface-2: rgba(255,255,255,0.22);
  --text: #e9fbff;
  --muted: #a6d6e8;
  --border: rgba(255,255,255,0.28);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --focus: 2px solid var(--cyan);
  --focus-outline: 2px solid rgba(0, 230, 255, 0.9);
}

/* Section: Layout & Core */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.5;
  font-size: clamp(14px, 0.9vw + 12px, 18px);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(255, 138, 105, 0.10), transparent 40%),
    linear-gradient(135deg, #2a0e0a 0%, #1a0c0a 40%, #2a0e0a 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal, overlay;
  overflow-x: hidden;
}

/* Section: Background & Surfaces (glass + subtle atmosphere) */
header, main, footer, aside, article { display: block; }
header { padding: 2rem 1rem 1.25rem; text-align: center; }
main { padding: 1rem; }
footer { padding: 1rem; }

/* Section: Glass panels (fallback included) */
.glass {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .glass { background: rgba(255,255,255,0.14); }
}

/* Section: Image frame styling */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.image-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: auto;
  transition: transform 0.3s ease;
}
.image-frame:hover img { transform: scale(1.02); }

/* Section: Content containers & utilities */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: var(--shadow);
}
.tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #062b2e;
  background: linear-gradient(135deg, var(--cyan), #5afaff);
  border: 1px solid rgba(0,0,0,0.05);
  margin-right: 0.4em;
}
.content { padding: 0.25rem 0 0; color: var(--text); }

/* Section: Typography & hierarchy */
h1, h2, h3 {
  margin: 0.25rem 0;
  line-height: 1.25;
}
h1 { font-size: clamp(1.4rem, 1.2vw + 1.2rem, 2.6rem); font-weight: 700; letter-spacing: .2px; }
h2 { font-size: clamp(1.15rem, 0.9vw + 0.9rem, 2rem); font-weight: 700; color: #eaffff; }
h3 { font-size: clamp(1rem, 0.8vw + 0.8rem, 1.5rem); font-weight: 600; color: #eaffff; }
p { margin: .6rem 0; color: rgba(233,251,255,0.95); }

/* Section: Links, buttons, CTAs */
a, button, .btn, .cta {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
a { color: var(--cyan); }
a:hover, a:focus { text-decoration: underline; outline: none; }

.btn, .cta, button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.15);
  background: var(--cyan);
  color: #041016;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  user-select: none;
}
.btn--outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 230, 255, 0.75);
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 230, 255, 0.25);
}
.btn:active, .cta:active {
  transform: translateY(0);
  background: #00b8d9;
}
.btn:focus-visible, .cta:focus-visible, a:focus-visible, button:focus-visible {
  outline: var(--focus) auto;
  outline-offset: 2px;
}
.btn:focus-visible { outline: 2px solid rgba(0, 230, 255, 0.9); outline-offset: 2px; }

/* Section: Lists */
ul { padding-left: 1.25rem; margin: .75rem 0; }
li { margin: 0.25rem 0; }

/* Section: Product Ad block in footer */
.product-ad { padding: .75rem; margin: .5rem 0; background: rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.25); border-radius: 12px; }
.product-ad a { display: block; padding: .5rem; color: #eaffff; text-align: center; }
.product-ad a p { margin: 0; font-weight: 600; }

/* Section: Footer-specific blocks */
footer { display: grid; gap: 0.75rem; justify-items: center; }

/* Section: Accessibility helpers */
.subtle { color: var(--muted); }

/* Section: Print (readability) */
@media print {
  body { color: #000; background: #fff; }
  a, .btn { text-decoration: underline; color: #000; }
  .glass { background: #fff; border: 1px solid #aaa; box-shadow: none; backdrop-filter: none; }
}

/* Section: Responsive Utilities */
@media (min-width: 640px) {
  main { padding: 1.25rem; }
}
@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
 
/* Section: Section Defaults (semantic sections styling) */
header { background: rgba(0,0,0,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); }
header h1 { color: #eaffff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* Section: Specific selectors respecting provided names */
.image-frame, .image-frame img { will-change: transform; }
.content { /* ensures readable blocks inside articles */ max-width: 72ch; }

/* Section: Utility-like defaults to ensure spacing for content blocks */
main > article { padding: .5rem; }
article > h1 { font-weight: 700; }

/* Section: Nav styling (for accessibility in header) */
nav { margin-top: .25rem; }
nav a { padding: .25rem .5rem; border-radius: 6px; border: 1px solid rgba(0,230,255,.5); }
nav a:hover { background: rgba(0,230,255,.15); }

/* Section: Minor aesthetic helpers (soft cyan glow accents) */
.glow { text-shadow: 0 0 8px rgba(0, 229, 255, 0.6); color: #eaffff; }