@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --background: hsl(0, 0%, 4%);
  --foreground: hsl(45, 30%, 90%);
  --card: hsl(0, 0%, 8%);
  --gold: hsl(38, 72%, 50%);
  --gold-light: hsl(42, 80%, 65%);
  --gold-dark: hsl(35, 60%, 35%);
  --muted: hsl(45, 10%, 55%);
  --primary-foreground: hsl(0, 0%, 4%);
  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

/* ── Logo ── */
.logo {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Video Background ── */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
}

.video-bg video.hidden { opacity: 0; }
.video-bg video.visible { opacity: 1; }

.video-overlay {
  position: absolute;
  inset: 0;
  background: hsla(0, 0%, 4%, 0.3);
  z-index: 1;
}

.video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), transparent 50%, hsla(0, 0%, 4%, 0.4));
  z-index: 1;
}

/* ── Layout ── */
.page {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  position: relative;
  z-index: 20;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 1rem;
}

/* ── Title ── */
.title-block {
  text-align: center;
  margin-bottom: 0.75rem;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  line-height: 1.1;
}

/* ── Sword divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.75rem;
}

.divider-line {
  height: 1px;
  background: hsla(38, 72%, 50%, 0.3);
  animation: sword-slash 1.5s ease-out 0.8s forwards;
  width: 0;
}

.divider-icon {
  color: var(--gold);
  font-size: 1.5rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ── Role Card ── */
.role-card {
  max-width: 48rem;
  width: 100%;
  backdrop-filter: blur(12px);
  background: hsla(0, 0%, 8%, 0.4);
  border: 1px solid hsla(38, 72%, 50%, 0.3);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid hsla(38, 72%, 50%, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.role-item:hover {
  border-color: hsla(38, 72%, 50%, 0.6);
  background: hsla(38, 72%, 50%, 0.05);
}

.role-item svg {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  transition: color 0.3s;
}

.role-item:hover svg {
  color: var(--gold-light);
}

.role-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--foreground);
  letter-spacing: 0.05em;
}

.role-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ── CTA ── */
.cta-wrapper {
  margin-top: 1rem;
}

.cta-button {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--primary-foreground);
  padding: 1.1rem 2.5rem;
  border-radius: 0.25rem;
  border: 2px solid var(--gold-light);
  cursor: pointer;
  transition: transform 0.3s;
  animation: pulse-glow-fast 1.2s ease-in-out infinite;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* ── Footer ── */
.footer-banner {
  position: relative;
  z-index: 20;
  border-top: 1px solid hsla(38, 72%, 50%, 0.2);
  background: hsla(0, 0%, 4%, 0.8);
  backdrop-filter: blur(4px);
}

.footer-banner p {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: blink-text 0.5s linear infinite;
}

/* ── Animations ── */
@keyframes pulse-glow-fast {
  0%, 100% {
    box-shadow: 0 0 10px hsla(38, 72%, 50%, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 40px hsla(38, 72%, 60%, 1),
      0 0 120px hsla(38, 72%, 50%, 0.5);
    transform: scale(1.06);
  }
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes sword-slash {
  0% { width: 0; opacity: 0; }
  50% { opacity: 1; }
  100% { width: 120px; opacity: 0.6; }
}

.anim-1 { animation: float-up 1s ease-out forwards; }
.anim-2 { animation: float-up 1s ease-out 0.2s forwards; opacity: 0; }
.anim-3 { animation: float-up 1s ease-out 0.4s forwards; opacity: 0; }
.anim-4 { animation: float-up 1s ease-out 0.6s forwards; opacity: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .role-card { padding: 1rem; }
}
