html, body {
  height: 100%;
}
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #062f2b;         /* deep teal/turquoise base */
  --bg-2: #0b605d;        /* teal accent for depth */
  --text: #eaffff;         /* high-contrast on glass */
  --muted: #b7d9dc;        /* secondary text */
  --accent: #ff6f61;        /* coral accent */
  --accent-2: #2bd4c0;      /* turquoise accent */
  --surface: rgba(255,255,255,0.14);
  --surface-strong: rgba(255,255,255,0.22);
  --glass: rgba(255,255,255,0.15);
  --ring: 2px solid color-m-m; /* placeholder, overridden below if needed */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.25);
  --shadow-soft: 0 4px 18px rgba(0,0,0,.18);
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  /* Layered background: gradient base + turquoise clouds hints + subtle scanlines */
  background: 
    repeating-linear-gradient(to bottom,
      rgba(255,255,255,0.04) 0 1px,
      transparent 1px 2px),
    radial-gradient(circle at 20% 12%, rgba(43,212,192,.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(255,111,97,.25) 0%, transparent 40%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #062e2a 100%);
  background-size: cover;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { margin-block: 0.5em; padding-left: 1.25rem; }
li { margin: 0.25em 0; }

header, main, footer, aside, article {
  display: block;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: clamp(320px, 88vw, 1100px);
  margin-inline: auto;
  padding: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}
.image-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .4s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Glass/ frosted panels with graceful fallback */
.backdrop {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  .backdrop { background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.15); color: #003033; }
}

/* Header hero styling */
header {
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 1rem auto;
}
header h1 {
  margin: 0.25rem 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: .5px;
}
header .meta {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.8vw, 1rem);
  margin-top: .25rem;
}

/* Main content and typography */
main { padding: 0 0.5rem; }
article {
  margin: 1rem auto;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
article + article { margin-top: .75rem; }

[data-section="intro"] { padding: .5rem 0; }

/* Content region */
.content {
  color: var(--text);
}
.content p { margin: .5rem 0 1rem; }
.content h2 { font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem); margin: .75rem 0 .5rem; }
.content blockquote {
  margin: .5rem 0; padding: .75rem 1rem;
  border-left: 4px solid var(--accent-2);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
  color: var(--text);
  font-style: italic;
}

/* Section-specific glass panels */
section { padding: .75rem 0; }

/* Product/ad in footer */
.product-ad {
  display: grid; place-items: center;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(2, 164, 152, 0.22);
  border: 1px solid rgba(255,255,255,.5);
}
.product-ad a {
  display: block;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(255,255,255,.5);
}
footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}
footer p { margin: .25rem 0; color: var(--muted); }

/* CTA/link/button styles */
a, button, .btn, .cta {
  -webkit-tap-highlight-color: transparent;
}
.btn {
  display: inline-block;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
.btn:active { transform: translateY(0); }
.btn--solid { background: linear-gradient(135deg, #0dc7b3 0%, #038f87 100%); border: 1px solid rgba(255,255,255,.8); color: #001; }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,.7); color: var(--text); }

/* Links focus states for accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Typography helpers for responsive scale */
h2 { font-size: clamp(1.1rem, 0.9rem + 1.4vw, 1.8rem); margin: .75rem 0 .5rem; line-height: 1.25; }
p { margin: 0.5rem 0 1rem; }

/* Images in content blocks */
.content img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

/* Print styles for basic readability */
@media print {
  body { background: #fff; color: #000; }
  header, footer { display: none; }
  article { background: #fff; border: none; padding: 0; }
  a { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
