/* Cyberpunk, frost-glass landing page styling (mobile-first) */

/* 1) Light reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }

/* 2) Color palette and carbon-fiber backdrop (purple navy hacker theme) */
:root{
  --bg: #0a0b1a;
  --bg2: #0b1020;
  --card: rgba(12, 14, 32, 0.66);
  --card-border: rgba(255,255,255,0.16);
  --text: #e9eaff;
  --muted: #c4c8ff;
  --accent: #8a5cff;      /* purple core */
  --accent-dark: #6a3bd4;
  --focus: 0 0 0 3px rgba(138,92,246,.6);
  --shadow: 0 20px 40px rgba(0,0,0,.45);
  --glow: 0 0 40px rgba(138,92,246,.25);
}
body {
  color: var(--text);
  background: var(--bg);
  /* Purple carbon-fiber pattern (diagonal crosshatch) */
  background-image:
    linear-gradient(135deg, rgba(120,0,180,.25) 25%, transparent 25%),
    linear-gradient(315deg, rgba(120,0,180,.25) 25%, transparent 25%),
    linear-gradient(45deg, rgba(80,0,120,.25) 25%, transparent 25%),
    linear-gradient(225deg, rgba(80,0,120,.25) 25%, transparent 25%);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px, 7px 7px, 21px 21px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle glow to reinforce hacker vibe */
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}

/* 3) Layout containers (mobile-first) */
main {
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  width: 100%;
}
.image-frame {
  width: min(92vw, 720px);
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(10,12,28,.66); /* frosted glass base */
  border: 1px solid var(--card-border);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  box-shadow: var(--shadow);
  /* Subtle inner glow to mimic neon hardware panels */
  outline: 1px solid rgba(255,255,255,.04);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  /* slight digital artifact edge */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
footer {
  padding: 1.75rem 1rem;
  text-align: center;
  color: #d9dcff;
}
.product-ad {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(9,12,32,.68);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
}
.product-ad h3 { font-size: .95rem; margin: 0; color: #e9e6ff; }
.product-ad p { margin: 0; color: #e8e9ff; font-weight: 700; }
.product-ad a { color: inherit; text-decoration: none; }
.product-ad a:focus-visible, a:focus-visible { outline: none; box-shadow: var(--focus); }

/* 4) Buttons / CTAs (prominent, accessible) */
.btn, a.btn {
  display: inline-block;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #3a1fa8 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(106,58,212,.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, a.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(106,58,212,.6); }
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
a { color: #b9c0ff; text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

/* 5) Focus styles for keyboard users across interactive elements */
:focus-visible { outline: none; box-shadow: var(--focus); }

/* 6) Accessibility niceties for motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 7) Responsive tweaks (tablet/desktop) */
@media (min-width: 768px) {
  main { padding: 3rem 2rem; }
  .image-frame { width: min(860px, 66vw); padding: 1.75rem; border-radius: 18px; }
  footer { padding: 2rem 0; }
}
@media (min-width: 1024px) {
  .image-frame { padding: 2rem; }
  .product-ad { font-size: 1.02rem; }
}
