/* maroon carbon-fiber hacker theme with frosted glass, mobile-first */

/* Core color tokens */
:root{
  --bg: #2a0d0e;            /* deep maroon base */
  --bg-dark: #210b0b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f0f0;
  --muted: #e5d6d6;
  --accent: #b01e1e;          /* maroon accent */
  --accent-dark: #7a0f0f;
  --shadow: rgba(0,0,0,.6);
  --focus: rgba(183, 43, 43, 0.95);
}

/* Reset and base */
*,
*::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background-color: var(--bg);
  /* maroon carbon fiber-esque texture */
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px);
  background-size: 12px 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
}

/* Header (frosted glass) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(188, 34, 34, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand {
  font-weight: 900;
  color: #f0e6e6;
  text-shadow: 0 0 12px rgba(183, 43, 43, 0.9);
  letter-spacing: .5px;
  font-size: 1.05rem;
}

/* Main container */
main { width: 100%; flex: 1 1 auto; }

/* Hero layout */
.hero { padding: 2rem 1rem; display: flex; justify-content: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 1rem;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  image-rendering: crisp-edges;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
}

.hero-content h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 8px rgba(191, 72, 72, 0. eight);
}

.hero-content h2 {
  font-size: .95rem;
  font-weight: 500;
  color: #f0e9e0;
  margin: 0;
  opacity: 0.95;
}

/* CTA button (prominent centerpiece) */
.cta {
  display: inline-block;
  align-self: flex-start;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  color: #0b0b08;
  background: linear-gradient(135deg, #d55e5e 0%, #b14a4a 60%, #7a1e1e 100%);
  box-shadow: 0 6px 16px rgba(183, 43, 43, 0.6);
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(183, 43, 43, 0.8); }
.cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Responsive two-column layout on larger screens */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
  .hero-content { padding: 2rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content h2 { font-size: 1.02rem; }
  .hero-image { border-radius: 16px; }
}

/* Footer advertisement + closing note */
.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.92rem;
  color: #f0e0e0;
  background: rgba(0,0,0,.5);
  border-top: 1px solid rgba(183, 34, 34, 0.25);
}
.advertisement {
  color: #f3d9c0;
  margin-bottom: .25rem;
}
.advertisement a {
  color: #ffd59a;
  font-weight: 700;
  text-decoration: none;
}
.advertisement a:hover { text-decoration: underline; }
.thank-you { margin: .25rem 0 0; color: #f7e7dc; }

/* Accessibility: focus for links */
a:focus-visible {
  outline: 3px solid rgba(183, 43, 43, 0.95);
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}