/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #0b0f14;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.74);
  --muted2: rgba(255,255,255,0.62);

  --cta-bg: rgba(36, 92, 140, 0.34);
  --cta-bg-hover: rgba(64, 140, 200, 0.42);
  --cta-border: rgba(255,255,255,0.16);
  --cta-glow: rgba(140, 200, 255, 0.30);
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: url("bg.jpg") center / cover no-repeat;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Cinematic darkening */
.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(255,255,255,0.10), transparent 55%),
    radial-gradient(circle at 20% 70%, rgba(40,90,140,0.10), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.82));
}

/* Subtle grain layer */
.grain{
  position: absolute;
  inset: -20px;
  background: url("grain.png") center / cover no-repeat;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

/* ===== Content ===== */
.content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  padding: 64px 28px;
  display: grid;
  gap: 44px;
  justify-items: start;
  align-items: center;
}

.header { max-width: 720px; }

/* Title */
.title {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 250;
  letter-spacing: 0.10em;
  line-height: 1.06;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 10px 28px rgba(0,0,0,0.40);
}

.title .x {
  font-weight: 600;
  opacity: 0.95;
}

/* Subtitle */
.subtitle {
  font-size: clamp(16px, 2.0vw, 20px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 34ch;
}

/* ===== Actions ===== */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Primary CTA */
.cta {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.05em;

  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  backdrop-filter: blur(8px);

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.cta:hover,
.cta:focus-visible {
  background: var(--cta-bg-hover);
  box-shadow: 0 0 28px var(--cta-glow);
  transform: translateY(-1px);
}

.cta:active { transform: translateY(0); }

/* Secondary */
.secondary{
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,0.86);
  font-weight: 400;
  letter-spacing: 0.03em;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.secondary:hover,
.secondary:focus-visible{
  background: rgba(0,0,0,0.28);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.footer a {
  font-size: 13px;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer a:hover,
.footer a:focus-visible {
  color: rgba(255,255,255,0.92);
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .content { padding: 56px 22px; gap: 36px; }
  .subtitle { max-width: 38ch; }
}

@media (max-width: 520px) {
  .hero { background-position: 62% center; }
  .content { padding: 44px 18px; gap: 28px; }
  .actions { gap: 12px; }
  .cta { padding: 15px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .secondary { transition: none; }
}
