/* Minimal, responsive CSS for the provided HTML landing page */
/* Light reset and CSS variables for a blue-sunset / hacker aesthetic */

:root{
  --green: #2bd36f;
  --green-soft: #6affb5;
  --bg-from: #0b1b3a;
  --bg-mid:  #1a2a60;
  --bg-to:   #5a2bdc;
  --bg-accent: #ff7a7a;
  --glass: rgba(255,255,255,.08);
  --text: #eafff0;
  --text-dim: rgba(234,255,235,.85);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-from) 0%, var(--bg-mid) 40%, var(--bg-to) 100%);
  /* subtle blue-sunset glow */
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: mobile-first, focus on hero (image) and frosted glass feel */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 1.5rem;
  min-height: 60vh;
}

.image-frame {
  width: min(94vw, 860px);
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  padding: 0; /* keep frosted container snug around image */
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 12px 34px rgba(0,0,0,.35), 0 0 0 2px rgba(43,211,111,.15);
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Frosted image inside the glass frame */
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.15);
}

/* Footer area with frosted glass product ad */
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--text-dim);
  background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,.0) 60%);
  border-top: 1px solid rgba(0,0,0,.15);
}

/* Frosted glass card for the product ad */
.product-ad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Section heading inside ad */
.product-ad h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .2px;
  color: #daffea;
}

/* The CTA button is the anchor inside the ad; style to read as a prominent CTA */
.product-ad a {
  display: inline-block;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 199, 130, .6), rgba(43,211,111,.4));
  color: #041c0b;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(43,211,111,.45);
}
.product-ad a:hover { transform: translateY(-1px); }
.product-ad a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 6px 16px rgba(43,211,111,.6);
}
.product-ad a p { margin: 0; padding: 0; color: inherit; }

/* Ensure the internal <p> doesn't disrupt layout when styling is inherited */
.product-ad a p { font-weight: 700; }

/* Text in the footer (copyright) */
footer p {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: rgba(234,255,235,.92);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  main { padding: 4rem 2rem; min-height: 66vh; }
  .image-frame { border-radius: 28px; }
  footer { padding: 3rem 2rem 4rem; }
  .product-ad { flex-direction: row; align-items: center; justify-content: center; gap: 1.5rem; }
  .product-ad h3 { font-size: 1.15rem; }
}
