/* Production-ready stylesheet for the provided landing page */

/* Tokens and palette (tokenized, sage pastel greens) */
:root{
  --bg: #0b0f12;
  --bg-2: #0a1f12;
  --surface: rgba(18, 40, 28, 0.22);       /* frosted glass base */
  --surface-2: rgba(255, 255, 255, 0.08);  /* subtle light overlay */
  --text: #e8f7e8;
  --muted: #b8d9b9;
  --accent: #88c99a;        /* pastel sage */
  --accent-2: #6bbf82;       /* deeper sage for emphasis */
  --card: rgba(18, 46, 30, 0.34);
  --border: rgba(120, 210, 170, 0.4);
  --shadow: 0 8px 28px rgba(0,0,0,.25);
  --radius: 14px;
  --focus: #ffffff;
}

/* Base, layout, and accessibility */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
html, body {
  margin: 0;
  padding: 0;
  background: #0b0f12;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  font-size: clamp(14px, 1.2vw + 12px, 18px);
  line-height: 1.5;
  /* Layered background: gradient + subtle sage glow + scanline-like texture */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(150, 255, 210, 0.08) 0 20%, transparent 21%),
    radial-gradient(circle at 75% 60%, rgba(120, 240, 190, 0.08) 0 25%, transparent 26%),
    linear-gradient(135deg, rgba(6,12,8,0.92), rgba(8,16,12,0.98)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 2px);
  background-blend-mode: screen, screen, normal;
  text-shadow: 0 0 0 transparent; /* performance-friendly placeholder */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glass panels (forward-compatible with and without backdrop-filter) */
.glass {
  background: rgba(9, 18, 12, 0.22);
  border: 1px solid rgba(120, 210, 170, 0.40);
  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)) and not (-webkit-backdrop-filter: blur(12px)) {
  .glass {
    background: rgba(9, 18, 12, 0.75); /* fallback: more opaque when backdrop-filter not supported */
    border-color: rgba(120, 210, 170, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; transform: none !important; }
}

/* Page structure */
header, main, footer, aside, article, nav, .content { 
  /* neutral stacking context and spacing */
  position: relative;
}
header, main, footer { padding: 1rem; }
main { padding-block: 1rem; }
aside { padding: 0.5rem; }

/* Header (hero) styling with clear hierarchy for h1, supporting text, CTAs */
header {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(14px, 4vw, 40px);
}
header h1 {
  font-size: clamp(1.6rem, 2.6vw, 3.5rem);
  line-height: 1.07;
  margin: 0.25em 0 0.25em;
  letter-spacing: .2px;
  font-weight: 700;
  color: var(--text);
}
header .meta {
  color: var(--muted);
  font-size: clamp(12px, 1vw, 14px);
  margin-block: .25em;
}
nav {
  margin-top: .5rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25em .6em;
  border-radius: 6px;
  border: 1px solid rgba(136,201,154,0.4);
}
nav a:hover { text-decoration: underline; }
nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Main content container and typography */
.container {
  width: 100%;
  max-width: clamp(640px, 90vw, 1100px);
  margin-inline: auto;
  padding: 0 1rem;
}
.content { padding: 1rem 0; }
h2, h3 { color: var(--text); margin-top: 0.75em; margin-bottom: .5em; }
p { color: #eaf7e9; margin: 0.5em 0; }
blockquote { margin: .75em 0; padding: .5em 1em; border-left: 3px solid var(--accent-2); color: #eafff5; background: rgba(120,210,170,0.08); border-radius: 6px; }

/* Lists and typography tweaks */
ul { padding-left: 1.25rem; margin: .5em 0 1em; }
li { margin: .25em 0; color: #e9f7e9; }
strong { color: #eafff4; }

/* Image frame styling */
.image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(120, 210, 170, 0.5);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  margin: 0.5rem 0 1rem;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  will-change: transform;
}
.image-frame:hover img { transform: scale(1.02); transition: transform 0.3s ease; }

/* Card, grid, and utility classes (responsive grid utilities) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(120, 210, 170, 0.45);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .15em .5em;
  font-size: .75rem;
  border-radius: 999px;
  background: rgba(136, 201, 154, 0.25);
  border: 1px solid rgba(136, 201, 154, 0.5);
  color: #eafff0;
}
.container > .grid { margin-top: .5rem; }

/* Buttons and links variants (solid and outline) */
a, button, .btn, .cta {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  outline: none;
}
a.btn, a.cta, button.btn, button.cta { /* anchor-like controls keep visuals minimal by default */ }
.btn {
  display: inline-block;
  padding: .75em 1.25em;
  border-radius: 10px;
  border: 1px solid rgba(136, 201, 154, 0.6);
  background: linear-gradient(135deg, rgba(120,210,170,0.25), rgba(80,170,140,0.35));
  color: var(--text);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(120,210,170,0.38); }
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(136, 201, 154, 0.8);
}
.btn--outline:hover {
  background: rgba(136, 201, 154, 0.15);
}
.cta { /* emphasis variant for primary actions */ }

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* Footer and product ad styling (glass panels) */
footer {
  padding: 1rem;
  margin-top: 1rem;
}
.product-ad, .sponsored-page {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
  margin: .25rem;
}
.product-ad a, .sponsored-page a { display: block; text-align: center; padding: .75em; border-radius: 12px; color: var(--text); text-decoration: none; background: rgba(9,18,12,0.28); border: 1px solid rgba(120, 210, 170, 0.5); }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(9,18,12,0.38); text-decoration: underline; }

/* Print styles: basic readability */
@media print {
  body {
    background: white;
    color: #000;
  }
  a { color: #000; text-decoration: underline; }
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; border: 1px solid #ccc; }
  header, main, footer { padding: 0.5in; }
  .container { max-width: 100%; padding: 0; }
}

/* Layout helpers for responsive spacing (logical properties where sensible) */
.section { padding-block: 1rem; }

/* Accessibility enhancements for focus visibility on keyboard navigation */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Misc small utilities (compact utility names) */
.m0 { margin: 0; }
.p0 { padding: 0; } 

/* End of stylesheet */